Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 612 612">
    <g class="shards">
      <path fill="#419189" d="M561.401,161.855l-38.927,13.862l8.905-36.395L561.401,161.855z"/>
      <path fill="#DDC158" d="M592.982,251.298l-20.488,35.863l-16.977-33.405L592.982,251.298z"/>
      <path fill="#DDC158" d="M35.435,377.622l-12.957,22.679L10.54,378.49L35.435,377.622z"/>
      <path fill="#2F8650" d="M161.625,238.652L180.779,69.46l77.622,113.783L161.625,238.652z"/>
      <path fill="#48B26B" d="M180.779,69.46l90.987,58.895l-13.365,54.888L180.779,69.46z"/>
      <path fill="#357D76" d="M360.065,32.706l-35.867,129.523l-46.427-98.291L360.065,32.706z"/>
      <path fill="#4BA59C" d="M324.197,162.229l-63.64-57.156l17.213-41.136L324.197,162.229z"/>
      <path fill="#357D76" d="M38.429,389.114l159.242-36.848L119.55,458.849L38.429,389.114z"/>
      <path fill="#4BA59C" d="M197.671,352.266L173.5,453.36l-53.949,5.487L197.671,352.266z"/>
      <path fill="#2F8650" d="M286.183,510.805l159.633,6.228l-94.534-88.024L286.183,510.805z"/>
      <path fill="#3B9B5D" d="M445.816,517.032l-41.732-92.63l-52.802,4.606L445.816,517.032z"/>
      <path fill="#DDC158" d="M180.869,411.374l-62.819,72.648l19.148,9.058L180.869,411.374z"/>
      <path fill="#BEA84D" d="M180.869,411.374l-23.565,118.688l-20.106-36.982L180.869,411.374z"/>
      <path fill="#A39041" d="M118.05,484.022l39.254,46.04l-20.106-36.982L118.05,484.022z"/>
      <path fill="#DDC158" d="M288.519,599.282l87.777-157.563h-72.283L288.519,599.282z"/>
      <path fill="#BEA84D" d="M288.519,599.282l-40.457-202.821l55.951,45.258L288.519,599.282z"/>
      <path fill="#357D76" d="M376.296,441.718l-128.234-45.256l55.95,45.256H376.296z"/>
      <path fill="#BEA84D" d="M479.823,153.019l10.98,91.731l-123.3-46.937L479.823,153.019z"/>
      <path fill="#A39041" d="M490.804,244.75l20.512-149.86l-31.491,58.129L490.804,244.75z"/>
      <path fill="#DDC158" d="M511.315,94.889L367.504,197.813l112.32-44.794L511.315,94.889z"/>
      <path fill="#419189" d="M522.194,203.945l50.595,6.924l-51.13,44.406L522.194,203.945z"/>
      <path fill="#357D76" d="M572.789,210.869l-68.357-28.677l17.763,21.752L572.789,210.869z"/>
      <path fill="#4BA59C" d="M504.432,182.192l17.227,73.083l0.536-51.33L504.432,182.192z"/>
      <path fill="#419189" d="M146.275,164.564l-15.777-48.539l62.254,26.685L146.275,164.564z"/>
      <path fill="#357D76" d="M130.498,116.025l3.909,73.987l11.868-25.448L130.498,116.025z"/>
      <path fill="#4BA59C" d="M134.407,190.012l58.345-47.303l-46.477,21.856L134.407,190.012z"/>
      <path fill="#3B9B5D" d="M415,107.027l-9.176,59.454l-51.348-61.111L415,107.027z"/>
      <path fill="#2F8650" d="M405.823,166.481l35.183-79.94L415,107.027L405.823,166.481z"/>
      <path fill="#48B26B" d="M441.006,86.541l-86.528,18.83L415,107.027L441.006,86.541z"/>
      <path fill="#419189" d="M582.132,384.955l-6.541,42.385l-36.604-43.567L582.132,384.955z"/>
      <path fill="#357D76" d="M575.591,427.341l25.082-56.991l-18.541,14.605L575.591,427.341z"/>
      <path fill="#4BA59C" d="M600.673,370.35l-61.687,13.424l43.146,1.181L600.673,370.35z"/>
      <path fill="#419189" d="M521.7,459.133l16.91,49.377l-64.084-26.289L521.7,459.133z"/>
      <path fill="#357D76" d="M538.61,508.51l-5.183-75.587l-11.728,26.21L538.61,508.51z"/>
      <path fill="#4BA59C" d="M533.428,432.923l-58.901,49.297l47.174-23.087L533.428,432.923z"/>
      <path fill="#DDC158" d="M391.599,27.388h46.803l-23.402,70.68L391.599,27.388z"/>
      <path fill="#48B26B" d="M107.729,332.175l45.539-10.79l-6.454,74.168L107.729,332.175z"/>
      <path fill="#48B26B" d="M0.615,276.023l28.672-6.793l-8.244,29.077L0.615,276.023z"/>
      <path fill="#3B9B5D" d="M551.171,489.911l15.304-44.202l15.657,26.97L551.171,489.911z"/>
      <path fill="#3B9B5D" d="M359.13,76.909l15.304-44.203l15.657,26.971L359.13,76.909z"/>
      <path fill="#4BA59C" d="M490.803,84.829l15.304-44.203l31.363,35.885L490.803,84.829z"/>
      <path fill="#BEA84D" d="M241.194,0.514l37.814,19.312l-48.107,47.45L241.194,0.514z"/>
      <path fill="#4BA59C" d="M470.995,229.621v75.908l111.19,49.302L470.995,229.621z"/>
      <path fill="#419189" d="M470.995,229.621l-40.718,80.865l40.718-4.957V229.621z"/>
      <path fill="#357D76" d="M430.277,310.486l151.908,44.345l-111.19-52.171L430.277,310.486z"/>
      <path fill="#BEA84D" d="M471.281,319.007l-78.777,53.094l89.521-0.892L471.281,319.007z"/>
      <path fill="#A39041" d="M392.504,372.101l38.227,92.109l51.294-93.001L392.504,372.101z"/>
      <path fill="#A39041" d="M471.281,319.007l81.536,120.903l-70.793-68.701L471.281,319.007z"/>
      <path fill="#DDC158" d="M430.73,464.21l122.087-24.3l-70.793-68.701L430.73,464.21z"/>
      <path fill="#BEA84D" d="M68.449,253.329l46.472,41.281l-15.108-56.566L68.449,253.329z"/>
      <path fill="#A39041" d="M114.921,294.61l52.21-39.181l-67.318-17.385L114.921,294.61z"/>
      <path fill="#A39041" d="M68.449,253.329l63.436-71.293l-32.072,56.008L68.449,253.329z"/>
      <path fill="#DDC158" d="M167.131,255.43l-35.246-73.394l-32.072,56.007L167.131,255.43z"/>
      <path fill="#4BA59C" d="M193.946,595.211l20.987-60.352l47.303,44.724L193.946,595.211z"/>
      <path fill="#4BA59C" d="M214.933,534.859l-28.088-55.099l74.081,61.016L214.933,534.859z"/>
      <path fill="#419189" d="M260.926,540.776l1.31,38.807l-47.303-44.724L260.926,540.776z"/>
      <path fill="#357D76" d="M193.946,595.211l-7.102-115.451l28.089,55.1L193.946,595.211z"/>
      <path fill="#4BA59C" d="M159.33,324.316L50.331,269.229v57.594L159.33,324.316z"/>
      <path fill="#419189" d="M159.33,324.316l-135.29,44.468l26.291-41.961L159.33,324.316z"/>
      <path fill="#357D76" d="M50.331,269.229L24.04,368.783l26.291-41.96V269.229z"/>
      <path fill="#419189" d="M512.08,516.702l-12.938,49.651l-31.197-34.564L512.08,516.702z"/>
      <path fill="#DDC158" d="M480.661,504.978l-12.413,47.63l-29.923-33.157L480.661,504.978z"/>
      <path fill="#DDC158" d="M135.358,76.871l-37.037,35.531L89.853,66.63L135.358,76.871z"/>
      <path fill="#357D76" d="M104.698,73.653l-12.413,47.629L62.362,88.126L104.698,73.653z"/>
      <path fill="#3B9B5D" d="M100.977,177.316l-51.055,1.099l36.617-38.835L100.977,177.316z"/>
      <path fill="#2F8650" d="M49.922,178.416l79.861,17.993l-28.806-19.093L49.922,178.416z"/>
      <path fill="#48B26B" d="M129.783,196.41l-43.245-56.83l14.439,37.736L129.783,196.41z"/>
    </g>
    <g class="crystal">
      <path fill="#BA27E4" d="M296.251,473.487l114.409-0.148l77.014-164.617L301.442,198.885L296.251,473.487z"/>
      <path fill="#C878E0" d="M301.442,198.885l206.532,73.481l-20.3,38.121L301.442,198.885z"/>
      <path fill="#592171" d="M418.819,126.749l-219.146-2.056l101.768,74.192L418.819,126.749z"/>
      <path fill="#A939D4" d="M420.946,125.403l87.027,146.963l-206.532-73.482L420.946,125.403z"/>
      <path fill="#E0A3EF" d="M199.674,124.693l-97.186,143.875l198.954-69.683L199.674,124.693z"/>
      <path fill="#9021C4" d="M196.071,473.514l105.371-0.494V198.885l-198.954,69.683L196.071,473.514z"/>
      <path fill="#C878E0" d="M301.442,198.885L119.551,307.117l-17.063-38.549L301.442,198.885z"/>
    </g>
    <g class="shadow" opacity="0.12">
      <path d="M241.942,321.639h-0.828l-28.543-129.607l23.166-1.264v-33.775h-94.729V189.5l11.996,0.844
      c3.582,0.285,6.135,1.129,7.654,2.533c1.512,1.412,2.959,4.084,4.344,8.021l41.777,168.447h60.809l35.162-125.807h1.238
      l33.922,125.807h59.566l39.297-168.869c1.926-6.188,5.648-9.566,11.17-10.133l13.648-0.844v-32.508h-83.145v33.775l21.096,1.264
      l-28.129,130.453h-0.826l-43.02-157.049h-40.125L241.942,321.639z"/>
      <path fill="#231F20" d="M207.495,406.074c-3.986,5.006-5.977,11.195-5.977,18.576c0,7.379,1.746,13.182,5.24,17.402
      c3.492,4.221,8.977,6.334,16.455,6.334c3.736,0,7.062-0.596,9.973-1.783s4.979-2.346,6.205-3.473l-3.492-7.6
      c-3.801,2.754-7.602,4.131-11.398,4.131c-3.801,0-6.619-1.018-8.459-3.051c-1.838-2.031-2.848-4.705-3.033-8.021
      c5.148,0,9.773-0.623,13.881-1.875c2.451-0.752,4.535-1.721,6.25-2.91c1.717-1.186,3.156-2.828,4.322-4.924
      c1.162-2.096,1.746-4.52,1.746-7.27c0-4.131-1.35-7.334-4.045-9.617c-2.697-2.281-6.344-3.426-10.939-3.426
      C217.054,398.568,211.478,401.072,207.495,406.074z M212.642,420.711c0.184-3.879,1.195-7.209,3.033-9.994
      c1.84-2.779,4.475-4.172,7.906-4.172c3.676,0,5.516,1.908,5.516,5.721c0,1.939-0.951,3.611-2.852,5.021
      c-1.898,1.406-3.967,2.312-6.203,2.719C217.804,420.412,215.339,420.648,212.642,420.711L212.642,420.711z"/>
      <path fill="#231F20" d="M249.687,406.074c-3.984,5.006-5.975,11.195-5.975,18.576c0,7.379,1.746,13.182,5.238,17.402
      c3.494,4.221,8.979,6.334,16.455,6.334c3.736,0,7.062-0.596,9.975-1.783c2.908-1.188,4.979-2.346,6.205-3.473l-3.494-7.6
      c-3.801,2.754-7.6,4.131-11.398,4.131c-3.801,0-6.619-1.018-8.457-3.051c-1.838-2.031-2.85-4.705-3.033-8.021
      c5.146,0,9.773-0.623,13.881-1.875c2.449-0.752,4.535-1.721,6.25-2.91c1.715-1.186,3.156-2.828,4.32-4.924s1.746-4.52,1.746-7.27
      c0-4.131-1.348-7.334-4.045-9.617c-2.697-2.281-6.342-3.426-10.938-3.426C259.247,398.568,253.669,401.072,249.687,406.074z
      M254.835,420.711c0.184-3.879,1.195-7.209,3.033-9.994c1.838-2.779,4.473-4.172,7.906-4.172c3.676,0,5.514,1.908,5.514,5.721
      c0,1.939-0.951,3.611-2.85,5.021c-1.9,1.406-3.967,2.312-6.203,2.719C259.995,420.412,257.53,420.648,254.835,420.711
      L254.835,420.711z"/>
      <path fill="#231F20" d="M290.591,438.957c-0.428,0.406-1.102,0.672-2.021,0.799l-3.033,0.279v7.131h21.879v-7.504l-5.24-0.281
      h-0.092v-10.416c2.145-0.311,4.227-0.75,6.252-1.312l10.479,19.514h13.42v-7.504l-5.607-0.281l-9.01-16.512
      c4.598-3.691,7.295-8.727,8.092-15.105l4.412-0.189v-7.596h-19.029v7.314l3.494,0.188c1.162,0,1.746,0.535,1.746,1.598
      c0,0.373-0.092,0.875-0.275,1.5c-0.922,2.941-2.635,5.316-5.148,7.129c-2.514,1.814-5.455,2.877-8.824,3.191v-40.623H285.72v7.787
      l3.219,0.188c0.857,0.062,1.453,0.279,1.791,0.656c0.336,0.375,0.506,1.064,0.506,2.062v45.689
      C291.235,437.783,291.021,438.551,290.591,438.957z"/>
      <path fill="#231F20" d="M334.347,380.275v7.787l3.219,0.188c1.531,0.125,2.299,0.875,2.299,2.252v46.25
      c0,1.814-0.889,2.816-2.666,3.004l-3.035,0.279v7.131h21.879v-7.504l-5.24-0.281v-59.105H334.347z"/>
      <path fill="#231F20" d="M381.411,459.174c-2.697,0-4.811-0.297-6.342-0.891c-1.533-0.596-2.299-1.736-2.299-3.424v-4.504
      l-8.732,0.752v13.039c4.045,2.064,9.697,3.096,16.961,3.096c7.262,0,12.684-1.752,16.27-5.254
      c3.584-3.504,5.377-9.037,5.377-16.605v-45.404h-16.178v7.691l2.941,0.188c0.857,0,1.455,0.203,1.791,0.609
      c0.338,0.406,0.508,1.143,0.508,2.205v16.98c0,2.566-0.873,4.754-2.621,6.566c-1.746,1.814-4.061,2.723-6.939,2.723
      c-2.881,0-4.779-0.846-5.701-2.533c-0.918-1.689-1.377-4.189-1.377-7.506v-26.924h-16.18v7.691l2.943,0.188
      c1.529,0.064,2.297,0.938,2.297,2.627v18.857c0,10.818,4.75,16.229,14.248,16.229c6.557,0,11.521-2.439,14.893-7.316v7.129
      C393.271,454.576,389.317,459.174,381.411,459.174L381.411,459.174z"/>
    </g>
    <g class="text">
      <path d="M238.942,315.639h-0.828l-28.543-129.607l23.166-1.264v-33.775h-94.729V183.5l11.996,0.844
      c3.582,0.285,6.135,1.129,7.654,2.533c1.512,1.412,2.959,4.084,4.344,8.021l41.777,168.447h60.809l35.162-125.807h1.238
      l33.922,125.807h59.566l39.297-168.869c1.926-6.188,5.648-9.566,11.17-10.133l13.648-0.844v-32.508h-83.145v33.775l21.096,1.264
      l-28.129,130.453h-0.826l-43.02-157.049h-40.125L238.942,315.639z"/>
      <path d="M204.495,400.074c-3.986,5.006-5.977,11.195-5.977,18.576c0,7.379,1.746,13.182,5.24,17.402
      c3.492,4.221,8.977,6.334,16.455,6.334c3.736,0,7.062-0.596,9.973-1.783s4.979-2.346,6.205-3.473l-3.492-7.6
      c-3.801,2.754-7.602,4.131-11.398,4.131c-3.801,0-6.619-1.018-8.459-3.051c-1.838-2.031-2.848-4.705-3.033-8.021
      c5.148,0,9.773-0.623,13.881-1.875c2.451-0.752,4.535-1.721,6.25-2.91c1.717-1.186,3.156-2.828,4.322-4.924
      c1.162-2.096,1.746-4.52,1.746-7.27c0-4.131-1.35-7.334-4.045-9.617c-2.697-2.281-6.344-3.426-10.939-3.426
      C214.054,392.568,208.478,395.072,204.495,400.074z M209.642,414.711c0.184-3.879,1.195-7.209,3.033-9.994
      c1.84-2.779,4.475-4.172,7.906-4.172c3.676,0,5.516,1.908,5.516,5.721c0,1.939-0.951,3.611-2.852,5.021
      c-1.898,1.406-3.967,2.312-6.203,2.719C214.804,414.412,212.339,414.648,209.642,414.711L209.642,414.711z"/>
      <path d="M246.687,400.074c-3.984,5.006-5.975,11.195-5.975,18.576c0,7.379,1.746,13.182,5.238,17.402
      c3.494,4.221,8.979,6.334,16.455,6.334c3.736,0,7.062-0.596,9.975-1.783c2.908-1.188,4.979-2.346,6.205-3.473l-3.494-7.6
      c-3.801,2.754-7.6,4.131-11.398,4.131c-3.801,0-6.619-1.018-8.457-3.051c-1.838-2.031-2.85-4.705-3.033-8.021
      c5.146,0,9.773-0.623,13.881-1.875c2.449-0.752,4.535-1.721,6.25-2.91c1.715-1.186,3.156-2.828,4.32-4.924s1.746-4.52,1.746-7.27
      c0-4.131-1.348-7.334-4.045-9.617c-2.697-2.281-6.342-3.426-10.938-3.426C256.247,392.568,250.669,395.072,246.687,400.074z
      M251.835,414.711c0.184-3.879,1.195-7.209,3.033-9.994c1.838-2.779,4.473-4.172,7.906-4.172c3.676,0,5.514,1.908,5.514,5.721
      c0,1.939-0.951,3.611-2.85,5.021c-1.9,1.406-3.967,2.312-6.203,2.719C256.995,414.412,254.53,414.648,251.835,414.711
      L251.835,414.711z"/>
      <path d="M287.591,432.957c-0.428,0.406-1.102,0.672-2.021,0.799l-3.033,0.279v7.131h21.879v-7.504l-5.24-0.281
      h-0.092v-10.416c2.145-0.311,4.227-0.75,6.252-1.312l10.479,19.514h13.42v-7.504l-5.607-0.281l-9.01-16.512
      c4.598-3.691,7.295-8.727,8.092-15.105l4.412-0.189v-7.596h-19.029v7.314l3.494,0.188c1.162,0,1.746,0.535,1.746,1.598
      c0,0.373-0.092,0.875-0.275,1.5c-0.922,2.941-2.635,5.316-5.148,7.129c-2.514,1.814-5.455,2.877-8.824,3.191v-40.623H282.72
      v7.787l3.219,0.188c0.857,0.062,1.453,0.279,1.791,0.656c0.336,0.375,0.506,1.064,0.506,2.062v45.689
      C288.235,431.783,288.021,432.551,287.591,432.957z"/>
      <path d="M331.347,374.275v7.787l3.219,0.188c1.531,0.125,2.299,0.875,2.299,2.252v46.25
      c0,1.814-0.889,2.816-2.666,3.004l-3.035,0.279v7.131h21.879v-7.504l-5.24-0.281v-59.105H331.347z"/>
      <path d="M378.411,453.174c-2.697,0-4.811-0.297-6.342-0.891c-1.533-0.596-2.299-1.736-2.299-3.424v-4.504
      l-8.732,0.752v13.039c4.045,2.064,9.697,3.096,16.961,3.096c7.262,0,12.684-1.752,16.27-5.254
      c3.584-3.504,5.377-9.037,5.377-16.605v-45.404h-16.178v7.691l2.941,0.188c0.857,0,1.455,0.203,1.791,0.609
      c0.338,0.406,0.508,1.143,0.508,2.205v16.98c0,2.566-0.873,4.754-2.621,6.566c-1.746,1.814-4.061,2.723-6.939,2.723
      c-2.881,0-4.779-0.846-5.701-2.533c-0.918-1.689-1.377-4.189-1.377-7.506v-26.924h-16.18v7.691l2.943,0.188
      c1.529,0.064,2.297,0.938,2.297,2.627v18.857c0,10.818,4.75,16.229,14.248,16.229c6.557,0,11.521-2.439,14.893-7.316v7.129
      C390.271,448.576,386.317,453.174,378.411,453.174L378.411,453.174z"/>
    </g>
  </svg>

<h1>Resize me!</h1>
              
            
!

CSS

              
                svg {
  max-width: 600px;
  margin: auto;
  display: block;
}

h1 {
  text-align: center;
  color: #BA27E4;
  font-size: 1.5em;
  font-family: sans-serif;
}

.text path {
  fill: #FFFFFF;
}

@media (min-width: 480px) and (max-width: 640px) {
  .shards {
    display: none;
  }
}

@media (max-width: 480px) {
  .shards {
    display: none;
  }
  
  .text path {
    fill: #BA27E4;
  }
  
  .crystal {
    display: none
  }
}
              
            
!

JS

              
                // Use Full Page to best visualization
// Design by jugoncalv.es
              
            
!
999px

Console