Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

Save Automatically?

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.

HTML

              
                <svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 1500 1500" preserveAspectRatio="xMinYMin meet">
<g id="Canada" transform="translate(-959.79,0.708441)">
<a xlink:href="http://travelalberta.com/" title="Alberta" accesskey="a">
<clipPath id="alberta-clipper">
<path id="CA-AB" d="M1932.539,926.551c-147.935,4.966-131.521,6.06-145.106-9.632l-11.449-13.228l-2.938-29.972
c-3.1-31.601-5.69-39.059-18.186-52.284c-4.246-4.497-16.207-17.161-26.585-28.148c-10.377-10.981-23.49-26.52-29.143-34.52
c-5.655-7.995-15.14-18.608-21.082-23.568c-5.938-4.96-12.811-12.952-15.265-17.752c-2.455-4.8-8.894-11.522-14.309-14.942
c-5.415-3.414-10.212-7.437-10.661-8.931c-0.446-1.495-4.219-5.358-8.377-8.592c-4.377-3.396-10.773-12.821-15.178-22.362
c-4.794-10.394-10.899-19.134-16.492-23.626c-4.889-3.929-10.998-9.912-13.581-13.309c-2.583-3.396-9.552-7.583-15.482-9.311
c-10.629-3.091-16.739-11.495-12.134-16.686c1.146-1.3,0.163-8.757-2.186-16.575c-4.176-13.907-1.863-67.178,18.052-415.612
l1.8-31.504l62.377,1.829c34.307,1.003,86.2,1.666,115.316,1.468c29.116-0.197,80.427-0.551,114.02-0.788
c33.592-0.235,61.449-0.232,61.898,0.008c2.198,1.182,4.182,41.569,2.166,44.016c-1.275,1.548-4.877,4.388-8.006,6.308
c-5.915,3.637-24.822,38.285-23.518,43.099c0.409,1.513,5.452,3.476,11.201,4.363c10.06,1.557,10.672,1.335,16.23-5.826
c3.177-4.091,5.818-10.027,5.867-13.188c0.051-3.163,0.777-5.38,1.617-4.929c0.84,0.449,2.655,21.05,4.029,45.765
c3.249,58.354,6.843,121.538,11.835,208.262c2.214,38.491,4.712,82.344,5.552,97.44c4.23,76.159,8.062,144.173,10.209,181.207
c11.329,195.488,10.629,179.827,8.057,180.058C1972.073,925.179,1953.823,925.842,1932.539,926.551z" />
</clipPath>
<image clip-path="url(#alberta-clipper)" width="1024" height="768" xlink:href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/lake-louise.jpg" x="1300" y="150"  role="image" title="Lake Louise"></image>
</a>
<a xlink:href="http://www.hellobc.com/" title="British Columbia" accesskey="b">
<clipPath id="bc-clipper">
<path id="CA-BC" d="M1010.293,33.086c97.05,28.71,159.422,43.963,209.299,53.508c24.44,4.678,45.831,8.972,47.537,9.541
c8.444,2.818,99.449,19.095,132.769,23.742c20.835,2.903,65.524,7.385,99.31,9.952s62.587,5.182,64.001,5.815
c1.417,0.634,2.238,4.273,1.829,8.084c-0.409,3.81-2.76,44.598-5.22,90.635c-2.46,46.04-5.283,97.139-6.271,113.56
c-10.786,179.263-12.238,219.532-8.374,232.402c2.312,7.698,3.088,16.153,1.828,19.966c-3.168,9.578,3.316,19.704,14.715,22.979 c14.244,4.089,38.347,28.154,45.572,45.505c3.954,9.501,9.506,17.344,16.643,23.528c5.888,5.102,11.051,10.423,11.477,11.835
c0.422,1.403,4.363,4.685,8.757,7.292c4.398,2.602,11.126,9.792,14.955,15.977c3.832,6.182,8.166,11.562,9.64,11.96
c3.851,1.03,21.124,19.825,25.95,28.234c2.255,3.928,17.303,21.298,33.44,38.601c16.963,18.19,30.352,34.777,31.736,39.325
c1.321,4.329,3.629,19.276,5.135,33.216c2.823,26.138,6.695,36.601,16.643,44.96c5.794,4.872,6.209,6.997,1.369,7.035
c-2.541,0.021-60.218-0.527-105-0.998c-15.445-0.165-181.935-11.321-250.737-16.806c-11.8-0.946-25.29-1.938-29.978-2.214
c-10.861-0.636-13.289-2.735-16.895-14.549c-2.016-6.623-5.023-10.503-9.646-12.46c-18.593-7.864-25.793-12.439-27.262-17.333
c-0.887-2.954-2.609-5.074-3.826-4.711c-6.209,1.863-19.255-9.067-24.378-20.426c-8.3-18.405-21.849-32.51-41.563-43.28
c-17.647-9.64-17.872-9.892-20.057-22.593c-1.795-10.415-2.952-12.623-6.104-11.677c-2.14,0.647-4.551,0.377-5.351-0.591
c-0.805-0.971-7.888-3.289-15.744-5.161c-7.856-1.874-14.79-4.768-15.41-6.438c-0.618-1.666-2.294-5.195-3.722-7.835
c-3.505-6.486-5.011-10.992-12.867-38.595c-6.559-23.042-6.583-23.919-0.928-32.569c5.351-8.168,5.399-9.457,0.604-16.07
c-2.867-3.954-6.575-11.735-8.244-17.286c-2.299-7.65-6.607-12.91-17.811-21.737c-12.383-9.754-14.967-13.123-15.937-20.784
c-0.64-5.024,0.604-11.835,2.762-15.129c4.354-6.637,2.602-10.498-11.468-25.245c-7.086-7.425-9.709-13.474-18.167-41.879
c-9.56-32.108-9.736-33.478-5.319-41.676c2.511-4.663,9.995-12.623,16.629-17.688c16.33-12.461,26.884-29.967,23.956-39.719
c-3.073-10.228-1.15-23.916,5.23-37.256c4.773-9.974,4.837-12.883,0.612-26.945c-4.287-14.266-5.653-16.188-14.423-20.273
c-11.121-5.183-35.135-29.55-44.393-45.048c-5.446-9.118-6.532-14.704-8.062-41.428c-1.56-27.279-2.597-32.477-8.889-44.523
c-3.917-7.503-11.064-24.392-15.88-37.533c-4.813-13.143-9.993-26.165-11.504-28.938c-1.513-2.775-4.751-9.34-7.201-14.589
c-2.449-5.249-12.204-22.921-21.677-39.27c-9.474-16.352-18.573-32.141-20.221-35.093c-1.874-3.354-6.965-5.778-13.586-6.471
L1010.293,33.086z"/>
</clipPath>
<image clip-path="url(#bc-clipper)" overflow="visible" width="1200" height="800" xlink:href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/lynn-valley.jpg" x="800" y="120">
</image>
</a>
<a xlink:href="http://www.sasktourism.com/" title="Saskatchewan" accesskey="s">
<clipPath id="sk-clipper">
<path id="CA-SK" d="M2366.884,881.509c-0.748-0.367-10.815,1.32-22.369,3.754c-11.555,2.433-24.018,4.861-27.694,5.401
s-14.396,2.497-23.822,4.351c-9.426,1.848-20.14,3.823-23.809,4.388c-3.672,0.559-14.394,2.503-23.83,4.324
c-9.437,1.817-47.297,5.44-84.13,8.054c-36.836,2.617-68.813,4.903-71.062,5.086c-12.386,1.008-19.421,1.5-35.547,2.486
c-9.803,0.602-20.247,1.385-23.21,1.738c-2.963,0.355-14.977,1.283-26.694,2.062c-17.311,1.155-21.298,0.559-21.261-3.18
c0.043-4.291-4.666-93.077-5.415-102.069c-0.187-2.246-1.222-20.153-2.299-39.79c-1.078-19.644-3.035-54.23-4.348-76.87
c-1.312-22.641-3.749-66.509-5.409-97.489c-1.661-30.98-3.252-58.76-3.532-61.73c-0.281-2.976-1.367-20.864-2.412-39.759
c-1.046-18.894-3.241-57.823-4.88-86.507c-1.64-28.684-3.937-69.455-5.104-90.601c-1.169-21.148-3.169-57.201-4.441-80.111
l-2.315-41.665l13.583-2.885c7.471-1.583,19.498-3.725,26.724-4.754c7.228-1.03,21.771-5.621,32.319-10.201
c18.098-7.861,20.172-8.201,36.845-6.022c16.466,2.153,22.773,0.778,21.153-4.617c-0.863-2.878-63.236-13.036-77.793-12.667
c-6.097,0.155-13.68,1.054-16.848,1.998c-3.17,0.943-8.763,0.104-12.426-1.867c-7.343-3.951-15.028-2.612-21.397,3.733
c-4.903,4.883-5.272,4.08-6.797-14.782c-0.877-10.88-0.123-13.885,3.492-13.938c4.118-0.067,23.333-1.778,41.417-3.692
c3.612-0.383,9.02-0.904,12.011-1.164c9.083-0.775,121.533-12,128.758-12.851c3.708-0.438,21.396-2.198,39.31-3.912
c17.91-1.72,37.307-4.064,43.104-5.217c10.148-2.019,10.621-1.771,12.789,6.818c1.238,4.904,5.693,31.128,9.902,58.271
c4.203,27.146,8.649,55.334,9.875,62.647c2.187,13.033,1.069,20.616-3.226,21.907c-3.928,1.177-14.15,22.793-15.067,31.86
c-0.669,6.589,0.451,10.891,4.312,16.567c11.121,16.356,12.776,25.504,6.733,37.17c-3.917,7.57-4.62,11.75-2.311,13.793
c2.69,2.388,4.446,1.203,9.37-6.318c3.331-5.095,7.765-9.771,9.85-10.399c3.846-1.155,6.221,6.931,17.341,59.006
c1.692,7.934,5.535,25.001,8.538,37.916c3.006,12.921,6.532,28.817,7.851,35.336c1.313,6.514,5.166,23.573,8.56,37.917
c3.394,14.335,6.931,30.229,7.855,35.325c0.929,5.097,4.773,22.158,8.541,37.922c3.768,15.757,7.312,31.653,7.877,35.325
c0.564,3.671,4.389,20.738,8.493,37.932c4.109,17.193,7.679,33.079,7.937,35.31c0.251,2.225,3.954,18.701,8.219,36.619
c4.266,17.913,7.958,34.39,8.207,36.62c0.248,2.225,3.943,18.707,8.206,36.619c4.265,17.913,7.983,34.734,8.265,37.382
s2.508,12.34,4.952,21.549C2373.794,878.583,2372.831,884.431,2366.884,881.509z"/>
</clipPath>
<image overflow="visible" width="1700" height="1200" xlink:href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/barn.jpg" x="1350" y="100" clip-path="url(#sk-clipper)" ></image>
</a>
</g>
</svg>
              
            
!

CSS

              
                
svg a image { 
  opacity: 0.5;
  transition: 1s opacity;
}
svg a:hover image {
  opacity: 1;
}
              
            
!

JS

              
                
              
            
!
999px

Console