Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <h1>Atmospheric Perspective: Boat Fading into Distance</h1>

<svg version="1.1" xmlns="" xmlns:xlink="" x="0px" y="0px"
width="400px" height="300px" viewBox="0 0 99.984 77.851" enable-background="new 0 0 99.984 77.851" xml:space="preserve">
<g class="sail">
  <path d="M21.971,55.244c0,0-0.907-29.936,22.043-55.244c11.43,13.97,21.59,24.492,21.59,24.492l0.544,35.651 L21.971,55.244z"/>
  <path d="M17.707,54.337L0.199,52.523c0,0-2.54-16.691,10.522-29.301c4.808,7.529,6.531,10.704,6.531,10.704 L17.707,54.337z"/>
  <path d="M69.232,60.144c0,0-1.814-29.119,9.343-44.269c10.342,7.892,18.869,14.786,18.869,14.786l2.54,25.49 L69.232,60.144z"/>
<g class="hull">
  <path d="M86.649,58.691l-1.361,0.182l-0.544,4.082c0.544-0.182,0.998-0.272,1.451-0.362L86.649,58.691z"/>
  <path d="M91.094,16.963h-0.271l-0.907,6.985c0.182,0.091,0.272,0.182,0.453,0.272L91.094,16.963z"/>
  <path d="M93.181,62.32l0.544-0.182l0.363-1.27c0,0-13.97,5.986-43.634,5.986c-29.663,0-45.811-11.974-45.811-11.974 l0.454,1.995c0,0,0.726,0.907,4.989,3.267c0.635,1.542,1.36,3.084,2.177,4.354c7.167,1.905,21.228,4.445,39.823,4.445 C69.686,68.942,87.012,64.226,93.181,62.32z"/>
  <path d="M52.087,69.759c-19.957,0-33.473-2.812-39.551-4.354c2.54,4.173,5.624,6.985,7.348,8.437 c2.449,1.905,6.35,3.991,7.62,3.991c2.902,0.091,58.147-0.182,58.147-0.182l2.631-4.717l4.173-9.524 C85.742,65.404,69.051,69.759,52.087,69.759z"/>
  <path d="M58.709,3.084H57.53l-0.182,11.521c0.726,0.998,1.27,1.451,1.905,2.269L58.709,3.084z"/>
  <path d="M14.169,22.406h-0.182l-0.091,4.898c0.182,0.182,0.272,0.363,0.363,0.544L14.169,22.406z"/>
  <path d="M59.798,60.324l-3.266-0.362v5.987c1.089,0,2.268-0.091,3.356-0.091L59.798,60.324z"/>
  <path d="M35.85,61.141h-9.616v1.996c2.903,0.726,6.169,1.36,9.616,1.905V61.141z"/>
  <path d="M14.622,54.609l-0.997-0.091l-0.091,4.264c0.362,0.182,0.726,0.363,1.088,0.545V54.609z"/>

<p>Comment and un-comment the <code>fill</code> lines in the .scss to see different versions of the boat fading into the distance. By fading the colors (by mixing them with their complements), the boat appears to fade into the distance.</p>

<!--<p>This demo accompanies my "Color in the Real World" presentation at SassConf 2014. Slides are at <a href=""></a> but may be of limited value without having seen the talk.</p>-->


                $sail: #A22;
$hull: #633c09;

.hull {
  fill: $hull;
//  fill: mix($hull, skyblue, 70%);

.sail {
  fill: $sail;
//  fill: mix($sail, skyblue, 70%);
//  fill: mix($sail, complement($sail), 70%);

/* set up styles ---------------------------- */

h1, h2, p, svg {
  margin: 1rem;

body {
  background-color: rgb(128,128,128);

svg {
  stroke-width: 0;