HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="container">
<svg id="stackInd" data-stack-total="48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 150 520" enable-background="new 0 0 150 520" xml:space="preserve" width="100" height="348">
<defs>
<path id="moneySingle" class="f-seaweed" d="M13.908,494.081c-1.123,3.559,0.267,5.216,3.119,6.665c8.131,4.137,16.174,8.461,24.098,12.992
c2.875,1.638,5.436,1.883,8.624,1.117c28.318-6.841,56.668-13.557,85.037-20.203c2.429-0.565,3.401-1.595,2.934-4.011
c-0.104-0.515-0.106-1.061-0.176-1.82c-0.803,0.145-1.493,0.238-2.165,0.396c-29.58,7.004-59.157,14.021-88.753,20.963
c-1.092,0.257-2.525,0.057-3.523-0.465c-7.44-3.897-14.812-7.933-22.212-11.918C18.603,496.566,16.309,495.355,13.908,494.081"/>
<g id="moneyFace">
<path fill="#FFFFFF" d="M14.05,96.85c12.693-3.03,24.936-5.961,37.187-8.872c17.188-4.087,34.391-8.117,51.56-12.289
c2.344-0.568,4.208-0.375,6.339,0.816c8.589,4.808,17.291,9.41,25.952,14.089c0.612,0.331,1.212,0.69,2.316,1.321
c-8.241,1.976-15.97,3.836-23.706,5.677c-21.835,5.197-43.68,10.364-65.502,15.615c-2.049,0.491-3.706,0.295-5.586-0.75
c-8.602-4.781-17.301-9.389-25.962-14.065C15.889,97.981,15.16,97.512,14.05,96.85"/>
<path id="moneyTop_1_" class="f-seaweed" d="M135.037,90.575c-8.661-4.679-17.363-9.281-25.952-14.088
c-2.134-1.193-3.995-1.386-6.339-0.816c-17.169,4.17-34.372,8.2-51.563,12.287c-12.248,2.912-24.489,5.843-37.184,8.873
c1.108,0.662,1.839,1.131,2.596,1.542c8.661,4.676,17.363,9.284,25.962,14.065c1.883,1.045,3.536,1.241,5.586,0.749
c21.825-5.25,43.667-10.417,65.505-15.614c7.735-1.84,15.465-3.701,23.702-5.678C136.248,91.266,135.649,90.905,135.037,90.575z
M66.896,105.855c-1.839,0.436-3.703,0.797-5.523,1.291c-4.069,1.106-8.087,1.263-12.36,1.15c-5.047-0.132-9.22-1.472-13.35-3.949
c-2.526-1.516-5.182-2.825-8.043-4.37c1.475-1.233,4.302-1.138,2.105-4.062c9.848-2.346,19.513-4.649,29.379-7.001
c-2.413,3.444-2.168,5.145,1.252,7.474c4.67,3.179,10.039,4.372,15.55,4.994c2.012,0.228,4.048,0.283,6.126,0.852
C76.984,103.441,71.945,104.653,66.896,105.855z M86.116,100.234l-2.033,0.466l-2.103-1.273c-0.885,0.129-1.854,0.2-2.896,0.215
c-1.048,0.012-2.137-0.028-3.273-0.132l-1.478-1.957c1.192,0.092,2.256,0.138,3.191,0.138c0.936-0.003,1.823-0.096,2.661-0.285
c1.886-0.421,2.03-1.106,0.449-2.042c-1.067-0.632-2.492-0.912-4.284-0.851l-2.269,0.08c-1.017,0.038-1.945,0.013-2.787-0.08
c-0.834-0.091-1.647-0.26-2.435-0.505c-1.164-0.35-2.197-0.806-3.092-1.358c-0.646-0.402-1.123-0.794-1.44-1.18
c-0.311-0.383-0.461-0.742-0.451-1.076c0.009-0.334,0.169-0.644,0.483-0.923c0.311-0.279,0.769-0.516,1.381-0.712l-1.572-0.949
l1.896-0.388l1.6,0.954c0.873-0.122,1.783-0.177,2.73-0.168c0.951,0.011,1.908,0.075,2.871,0.196l0.835,1.643
c-1.154-0.109-2.1-0.161-2.84-0.15c-0.737,0.009-1.399,0.074-1.986,0.196c-0.644,0.138-1.001,0.35-1.07,0.639
c-0.069,0.292,0.163,0.601,0.693,0.922c0.411,0.251,0.857,0.42,1.337,0.515c0.48,0.093,1.155,0.121,2.024,0.086l2.441-0.086
c1.669-0.064,3.264,0.074,4.782,0.427c1.528,0.353,2.932,0.899,4.225,1.649c0.8,0.461,1.412,0.921,1.829,1.372
c0.421,0.45,0.644,0.883,0.668,1.292c0.022,0.416-0.147,0.794-0.515,1.147c-0.373,0.351-0.932,0.656-1.688,0.913L86.116,100.234z
M121.856,92.766c-9.941,2.369-19.723,4.701-29.699,7.083c2.441-3.455,2.194-5.133-1.217-7.472
c-4.589-3.141-9.863-4.321-15.273-4.98c-1.871-0.231-3.757-0.347-5.712-1.009c4.688-1.144,9.374-2.3,14.068-3.426
c2.63-0.627,5.281-1.146,7.902-1.818c3.207-0.824,6.373-1.968,9.681-0.447c0.157,0.071,0.357,0.035,0.54,0.042
c2.331,0.061,4.958-0.554,6.932,0.317c4.999,2.208,9.713,5.084,14.85,7.861C122.591,90.006,119.955,90.199,121.856,92.766z"/>
</g>
</defs>
<use id="moneyMain" xlink:href="#moneyFace" y="394px" />
</svg>
<svg id="stackIndOrig" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 150 520" enable-background="new 0 0 150 520" xml:space="preserve" width="100" height="348">
<path fill="#FFFFFF" d="M14.05,96.85c12.693-3.03,24.936-5.961,37.187-8.872c17.188-4.087,34.391-8.117,51.56-12.289
c2.344-0.568,4.208-0.375,6.339,0.816c8.589,4.808,17.291,9.41,25.952,14.089c0.612,0.331,1.212,0.69,2.316,1.321
c-8.241,1.976-15.97,3.836-23.706,5.677c-21.835,5.197-43.68,10.364-65.502,15.615c-2.049,0.491-3.706,0.295-5.586-0.75
c-8.602-4.781-17.301-9.389-25.962-14.065C15.889,97.981,15.16,97.512,14.05,96.85"/>
<path class="f-seaweed" d="M13.927,100.369c-1.136,3.458,0.082,5.145,3.013,6.629c8.859,4.493,17.508,9.4,26.304,14.018
c1.137,0.598,2.769,0.844,4.011,0.556c24.851-5.792,49.687-11.682,74.519-17.567c5.315-1.26,10.609-2.587,15.831-3.863v-5.035
c-0.464,0.056-0.818,0.067-1.151,0.147c-28.253,6.709-56.527,13.326-84.729,20.244c-4.776,1.173-8.68,0.965-12.992-1.61
C30.688,109.09,22.29,104.885,13.927,100.369"/>
<path class="f-seaweed" d="M13.896,124.825c-1.202,3.619,0.349,5.261,3.245,6.746c8.84,4.535,17.501,9.419,26.294,14.04
c1.062,0.559,2.608,0.732,3.785,0.455c24.851-5.803,49.686-11.693,74.518-17.58c5.319-1.263,10.623-2.587,15.751-3.838v-5.015
c-0.408,0-0.594-0.036-0.76,0.003c-29.304,6.976-58.614,13.927-87.896,20.99c-2.817,0.678-5.124,0.405-7.672-1.021
C32.188,134.578,23.087,129.783,13.896,124.825"/>
<path class="f-seaweed" d="M137.711,144.369c-0.998,0.16-1.619,0.218-2.216,0.362c-29.549,7-59.091,14.024-88.652,20.949
c-1.239,0.293-2.871,0.039-4.004-0.559c-9.11-4.781-18.142-9.711-27.205-14.583c-0.58-0.311-1.227-0.503-1.729-0.709
c-1.243,3.441,0.308,5.029,3.122,6.468c8.596,4.403,17.075,9.03,25.52,13.721c1.88,1.045,3.53,1.257,5.579,0.752
c9.625-2.374,19.284-4.613,28.925-6.912c19.459-4.64,38.909-9.309,58.382-13.875c1.751-0.408,2.538-1.025,2.297-2.834
C137.626,146.359,137.711,145.546,137.711,144.369"/>
<path class="f-seaweed" d="M137.579,152.155c-1.284,0.283-2.25,0.476-3.204,0.703c-29.119,6.935-58.234,13.896-87.372,20.743
c-1.327,0.312-3.078-0.016-4.306-0.659c-8.803-4.615-17.514-9.393-26.263-14.107c-0.845-0.455-1.723-0.847-2.596-1.272
c-0.859,3.201-0.003,5.007,3.016,6.521c8.872,4.459,17.505,9.396,26.308,14c1.211,0.632,2.953,0.874,4.277,0.562
c29.144-6.835,58.253-13.811,87.406-20.621c2.382-0.556,3.235-1.459,2.881-3.741C137.632,153.67,137.639,153.042,137.579,152.155"
/>
<path class="f-seaweed" d="M13.908,116.512c-1.123,3.561,0.267,5.219,3.119,6.669c8.131,4.131,16.174,8.46,24.098,12.988
c2.875,1.642,5.436,1.886,8.624,1.117c28.318-6.841,56.668-13.553,85.037-20.198c2.429-0.57,3.401-1.598,2.934-4.011
c-0.104-0.521-0.106-1.061-0.176-1.822c-0.803,0.145-1.493,0.237-2.165,0.396c-29.58,7.001-59.157,14.023-88.753,20.964
c-1.092,0.257-2.525,0.053-3.523-0.466c-7.44-3.897-14.812-7.935-22.212-11.919C18.603,118.999,16.309,117.788,13.908,116.512"/>
<path class="f-seaweed" d="M13.852,165.774c-0.885,3.256,0.022,5.044,3.013,6.552c8.868,4.474,17.505,9.399,26.311,14.001
c1.221,0.64,2.978,0.896,4.312,0.582c28.805-6.736,57.581-13.583,86.364-20.406c4.334-1.024,4.535-1.353,3.434-6.031
c-3.06,0.69-6.132,1.355-9.191,2.085c-26.929,6.421-53.851,12.879-80.801,19.207c-1.472,0.347-3.408,0.009-4.773-0.698
c-8.416-4.37-16.732-8.939-25.083-13.434C16.269,167.001,15.079,166.411,13.852,165.774"/>
<path class="f-seaweed" d="M137.561,127.693c-1.218,0.27-2.263,0.481-3.299,0.729c-29.125,6.934-58.24,13.891-87.384,20.743
c-1.249,0.295-2.903-0.021-4.062-0.631c-8.874-4.665-17.667-9.476-26.492-14.235c-0.815-0.441-1.656-0.83-2.849-1.424
c0.445,2.394-0.842,4.506,1.835,5.904c9.456,4.919,18.772,10.095,28.206,15.05c1.058,0.557,2.617,0.668,3.8,0.392
c25.639-5.995,51.259-12.069,76.882-18.143c4.516-1.07,9.016-2.217,13.362-3.287V127.693z"/>
<path class="f-seaweed" d="M13.854,141.222c-0.932,3.392,0.066,5.151,3.048,6.654c8.861,4.464,17.498,9.38,26.288,13.995
c1.161,0.61,2.802,0.941,4.045,0.649c28.871-6.764,57.717-13.629,86.562-20.479c4.402-1.048,4.412-1.073,3.624-5.948
c-0.787,0.11-1.594,0.147-2.366,0.331c-29.015,6.896-58.04,13.78-87.036,20.762c-2.269,0.546-4.07,0.35-6.104-0.771
C32.684,151.311,23.366,146.353,13.854,141.222"/>
<path class="f-seaweed" d="M13.952,108.339c-1.353,3.615,0.329,5.175,3.104,6.604c8.668,4.47,17.238,9.135,25.776,13.85
c1.724,0.954,3.255,1.083,5.115,0.639c28.677-6.857,57.365-13.66,86.051-20.465c4.114-0.978,4.262-1.189,3.364-5.936
c-0.771,0.151-1.557,0.27-2.328,0.454c-29.398,6.963-58.79,13.946-88.207,20.836c-1.233,0.289-2.858,0.028-3.995-0.565
c-8.881-4.654-17.687-9.455-26.517-14.208C15.543,109.133,14.749,108.747,13.952,108.339"/>
<path class="f-seaweed" d="M13.962,173.941c-1.133,3.458,0.084,5.145,3.016,6.629c8.858,4.494,17.508,9.4,26.301,14.018
c1.139,0.598,2.771,0.844,4.011,0.555c24.856-5.79,49.686-11.68,74.521-17.567c5.316-1.26,10.61-2.587,15.832-3.863v-5.035
c-0.465,0.058-0.819,0.067-1.155,0.147c-28.252,6.709-56.526,13.326-84.726,20.244c-4.776,1.174-8.681,0.965-12.992-1.61
C30.726,182.664,22.328,178.457,13.962,173.941"/>
<path class="f-seaweed" d="M13.931,198.397c-1.202,3.618,0.351,5.261,3.244,6.745c8.841,4.535,17.502,9.417,26.298,14.04
c1.061,0.559,2.604,0.731,3.781,0.455c24.854-5.802,49.687-11.693,74.521-17.58c5.315-1.263,10.622-2.587,15.747-3.836v-5.017
c-0.408,0-0.59-0.036-0.757,0.003c-29.304,6.976-58.613,13.927-87.898,20.991c-2.818,0.678-5.121,0.405-7.67-1.023
C32.226,208.148,23.125,203.355,13.931,198.397"/>
<path class="f-seaweed" d="M137.748,217.942c-1.001,0.16-1.619,0.217-2.219,0.361c-29.545,7.001-59.088,14.024-88.651,20.95
c-1.237,0.292-2.869,0.038-4.005-0.559c-9.109-4.783-18.139-9.713-27.204-14.583c-0.577-0.314-1.224-0.505-1.729-0.712
c-1.239,3.442,0.308,5.03,3.126,6.471c8.595,4.403,17.074,9.028,25.516,13.72c1.88,1.045,3.53,1.258,5.583,0.753
c9.625-2.375,19.284-4.616,28.924-6.913c19.457-4.638,38.907-9.308,58.382-13.874c1.751-0.411,2.539-1.026,2.298-2.837
C137.66,219.929,137.748,219.116,137.748,217.942"/>
<path class="f-seaweed" d="M137.616,225.725c-1.286,0.283-2.25,0.477-3.204,0.706c-29.121,6.932-58.234,13.893-87.375,20.743
c-1.327,0.311-3.078-0.019-4.305-0.659c-8.803-4.616-17.515-9.396-26.261-14.109c-0.844-0.455-1.726-0.847-2.595-1.271
c-0.863,3.201-0.003,5.005,3.013,6.518c8.871,4.462,17.508,9.398,26.31,14.002c1.212,0.634,2.953,0.875,4.277,0.562
c29.141-6.835,58.254-13.811,87.403-20.621c2.382-0.556,3.239-1.459,2.884-3.741C137.667,227.244,137.673,226.613,137.616,225.725"
/>
<path class="f-seaweed" d="M13.946,190.085c-1.127,3.56,0.267,5.217,3.116,6.667c8.134,4.133,16.177,8.46,24.098,12.99
c2.877,1.641,5.438,1.886,8.623,1.117c28.322-6.841,56.672-13.555,85.04-20.2c2.43-0.568,3.402-1.597,2.935-4.01
c-0.104-0.521-0.106-1.061-0.179-1.822c-0.804,0.144-1.491,0.238-2.162,0.395c-29.583,7.001-59.16,14.023-88.756,20.964
c-1.089,0.257-2.526,0.054-3.521-0.464c-7.443-3.899-14.814-7.935-22.211-11.92C18.641,192.572,16.347,191.361,13.946,190.085"/>
<path class="f-seaweed" d="M13.89,239.348c-0.889,3.254,0.021,5.043,3.009,6.553c8.872,4.472,17.508,9.398,26.313,13.999
c1.221,0.64,2.979,0.897,4.312,0.584c28.803-6.738,57.582-13.585,86.365-20.408c4.33-1.026,4.534-1.352,3.433-6.031
c-3.06,0.69-6.132,1.355-9.191,2.087c-26.929,6.42-53.851,12.879-80.801,19.205c-1.472,0.349-3.411,0.01-4.772-0.696
c-8.417-4.372-16.732-8.941-25.083-13.435C16.306,240.575,15.116,239.982,13.89,239.348"/>
<path class="f-seaweed" d="M137.598,201.265c-1.218,0.27-2.263,0.483-3.301,0.729c-29.122,6.935-58.241,13.893-87.382,20.743
c-1.252,0.295-2.902-0.019-4.063-0.631c-8.872-4.667-17.668-9.474-26.492-14.234c-0.816-0.439-1.657-0.829-2.85-1.425
c0.448,2.394-0.838,4.506,1.839,5.903c9.455,4.92,18.77,10.099,28.206,15.054c1.054,0.555,2.613,0.668,3.8,0.392
c25.636-5.997,51.258-12.069,76.878-18.145c4.519-1.07,9.016-2.216,13.365-3.286V201.265z"/>
<path class="f-seaweed" d="M13.893,214.792c-0.932,3.396,0.062,5.153,3.044,6.656c8.865,4.462,17.498,9.38,26.291,13.996
c1.158,0.609,2.803,0.941,4.045,0.646c28.871-6.763,57.714-13.625,86.562-20.476c4.399-1.048,4.409-1.077,3.625-5.95
c-0.788,0.11-1.595,0.147-2.366,0.333c-29.019,6.895-58.043,13.776-87.036,20.762c-2.27,0.546-4.073,0.348-6.107-0.772
C32.718,224.884,23.404,219.926,13.893,214.792"/>
<path class="f-seaweed" d="M13.986,181.912c-1.353,3.615,0.333,5.173,3.107,6.603c8.664,4.471,17.234,9.137,25.776,13.851
c1.723,0.954,3.251,1.083,5.112,0.64c28.676-6.858,57.368-13.66,86.054-20.467c4.114-0.978,4.262-1.189,3.364-5.936
c-0.775,0.152-1.56,0.27-2.329,0.453c-29.401,6.964-58.789,13.946-88.206,20.836c-1.233,0.29-2.859,0.03-3.995-0.565
c-8.881-4.654-17.687-9.454-26.518-14.207C15.574,182.705,14.784,182.32,13.986,181.912"/>
<path class="f-seaweed" d="M13.927,247.768c-1.136,3.458,0.082,5.146,3.013,6.631c8.859,4.494,17.508,9.4,26.304,14.02
c1.137,0.596,2.769,0.841,4.011,0.553c24.851-5.787,49.687-11.679,74.519-17.566c5.315-1.261,10.609-2.589,15.831-3.863v-5.037
c-0.464,0.06-0.818,0.069-1.151,0.147c-28.253,6.709-56.527,13.328-84.729,20.242c-4.776,1.174-8.68,0.967-12.992-1.608
C30.688,256.491,22.29,252.283,13.927,247.768"/>
<path class="f-seaweed" d="M13.896,272.222c-1.202,3.621,0.349,5.266,3.245,6.747c8.84,4.537,17.501,9.42,26.294,14.04
c1.062,0.558,2.608,0.733,3.785,0.458c24.851-5.806,49.686-11.693,74.518-17.58c5.319-1.268,10.623-2.592,15.751-3.841v-5.015
c-0.408,0-0.594-0.038-0.76,0.006c-29.304,6.973-58.614,13.927-87.896,20.988c-2.817,0.678-5.124,0.401-7.672-1.023
C32.188,281.975,23.087,277.18,13.896,272.222"/>
<path class="f-seaweed" d="M137.711,291.766c-0.998,0.163-1.619,0.22-2.216,0.364c-29.549,6.998-59.091,14.027-88.652,20.95
c-1.239,0.295-2.871,0.037-4.004-0.559c-9.11-4.783-18.142-9.71-27.205-14.586c-0.58-0.308-1.227-0.502-1.729-0.71
c-1.243,3.446,0.308,5.034,3.122,6.472c8.596,4.399,17.075,9.031,25.52,13.72c1.88,1.048,3.53,1.255,5.579,0.753
c9.625-2.372,19.284-4.613,28.925-6.91c19.459-4.645,38.909-9.314,58.382-13.877c1.751-0.408,2.538-1.023,2.297-2.837
C137.626,293.755,137.711,292.945,137.711,291.766"/>
<path class="f-seaweed" d="M137.579,299.555c-1.284,0.282-2.25,0.477-3.204,0.703c-29.119,6.935-58.234,13.896-87.372,20.742
c-1.327,0.314-3.078-0.019-4.306-0.658c-8.803-4.613-17.514-9.396-26.263-14.109c-0.845-0.452-1.723-0.848-2.596-1.268
c-0.859,3.194-0.003,5.002,3.016,6.515c8.872,4.462,17.505,9.396,26.308,14.002c1.211,0.634,2.953,0.873,4.277,0.565
c29.144-6.835,58.253-13.814,87.406-20.624c2.382-0.553,3.235-1.456,2.881-3.741C137.632,301.067,137.639,300.439,137.579,299.555"
/>
<path class="f-seaweed" d="M13.908,263.911c-1.123,3.56,0.267,5.216,3.119,6.666c8.131,4.136,16.174,8.46,24.098,12.991
c2.875,1.645,5.436,1.884,8.624,1.117c28.318-6.841,56.668-13.557,85.037-20.196c2.429-0.571,3.401-1.601,2.934-4.012
c-0.104-0.521-0.106-1.061-0.176-1.823c-0.803,0.144-1.493,0.238-2.165,0.395c-29.58,7.003-59.157,14.026-88.753,20.968
c-1.092,0.257-2.525,0.05-3.523-0.471c-7.44-3.897-14.812-7.934-22.212-11.919C18.603,266.396,16.309,265.186,13.908,263.911"/>
<path class="f-seaweed" d="M13.852,313.174c-0.885,3.258,0.022,5.046,3.013,6.553c8.868,4.475,17.505,9.396,26.311,14.002
c1.221,0.641,2.978,0.897,4.312,0.578c28.805-6.735,57.581-13.582,86.364-20.404c4.334-1.023,4.535-1.35,3.434-6.032
c-3.06,0.69-6.132,1.356-9.191,2.084c-26.929,6.421-53.851,12.886-80.801,19.212c-1.472,0.345-3.408,0.006-4.773-0.697
c-8.416-4.374-16.732-8.943-25.083-13.438C16.269,314.404,15.079,313.808,13.852,313.174"/>
<path class="f-seaweed" d="M137.561,275.09c-1.218,0.27-2.263,0.483-3.299,0.734c-29.125,6.935-58.24,13.889-87.384,20.743
c-1.249,0.295-2.903-0.02-4.062-0.635c-8.874-4.663-17.667-9.477-26.492-14.234c-0.815-0.439-1.656-0.828-2.849-1.425
c0.445,2.397-0.842,4.507,1.835,5.906c9.456,4.921,18.772,10.099,28.206,15.051c1.058,0.559,2.617,0.671,3.8,0.389
c25.639-5.993,51.259-12.069,76.882-18.139c4.516-1.072,9.016-2.222,13.362-3.288V275.09z"/>
<path class="f-seaweed" d="M13.854,288.621c-0.932,3.396,0.066,5.153,3.048,6.653c8.861,4.462,17.498,9.383,26.288,13.996
c1.161,0.608,2.802,0.941,4.045,0.646c28.871-6.76,57.717-13.626,86.562-20.479c4.402-1.049,4.412-1.073,3.624-5.944
c-0.787,0.107-1.594,0.145-2.366,0.327c-29.015,6.897-58.04,13.782-87.036,20.762c-2.269,0.546-4.07,0.352-6.104-0.766
C32.684,298.714,23.366,293.755,13.854,288.621"/>
<path class="f-seaweed" d="M13.952,255.738c-1.353,3.615,0.329,5.175,3.104,6.604c8.668,4.469,17.238,9.138,25.776,13.852
c1.724,0.954,3.255,1.079,5.115,0.64c28.677-6.859,57.365-13.663,86.051-20.468c4.114-0.979,4.262-1.189,3.364-5.938
c-0.771,0.15-1.557,0.27-2.328,0.455c-29.398,6.963-58.79,13.944-88.207,20.835c-1.233,0.289-2.858,0.032-3.995-0.564
c-8.881-4.657-17.687-9.452-26.517-14.208C15.543,256.532,14.749,256.146,13.952,255.738"/>
<path class="f-seaweed" d="M13.962,321.34c-1.133,3.458,0.084,5.146,3.016,6.634c8.858,4.487,17.508,9.396,26.301,14.015
c1.139,0.597,2.771,0.848,4.011,0.553c24.856-5.787,49.686-11.681,74.521-17.567c5.316-1.256,10.61-2.586,15.832-3.86v-5.033
c-0.465,0.057-0.819,0.062-1.155,0.145c-28.252,6.709-56.526,13.324-84.726,20.247c-4.776,1.174-8.681,0.96-12.992-1.613
C30.726,330.063,22.328,325.858,13.962,321.34"/>
<path class="f-seaweed" d="M13.931,345.798c-1.202,3.615,0.351,5.26,3.244,6.741c8.841,4.537,17.502,9.42,26.298,14.04
c1.061,0.559,2.604,0.734,3.781,0.458c24.854-5.806,49.687-11.693,74.521-17.58c5.315-1.262,10.622-2.586,15.747-3.835v-5.021
c-0.408,0-0.59-0.031-0.757,0.006c-29.304,6.973-58.613,13.927-87.898,20.988c-2.818,0.678-5.121,0.407-7.67-1.023
C32.226,355.552,23.125,350.756,13.931,345.798"/>
<path class="f-seaweed" d="M137.748,365.342c-1.001,0.157-1.619,0.22-2.219,0.364c-29.545,6.998-59.088,14.021-88.651,20.944
c-1.237,0.295-2.869,0.037-4.005-0.559c-9.109-4.783-18.139-9.71-27.204-14.58c-0.577-0.313-1.224-0.508-1.729-0.709
c-1.239,3.439,0.308,5.027,3.126,6.465c8.595,4.405,17.074,9.031,25.516,13.726c1.88,1.042,3.53,1.256,5.583,0.747
c9.625-2.372,19.284-4.613,28.924-6.91c19.457-4.639,38.907-9.308,58.382-13.877c1.751-0.408,2.539-1.022,2.298-2.83
C137.66,367.332,137.748,366.516,137.748,365.342"/>
<path class="f-seaweed" d="M137.616,373.125c-1.286,0.282-2.25,0.477-3.204,0.703c-29.121,6.935-58.234,13.896-87.375,20.742
c-1.327,0.314-3.078-0.012-4.305-0.658c-8.803-4.613-17.515-9.39-26.261-14.104c-0.844-0.458-1.726-0.854-2.595-1.273
c-0.863,3.201-0.003,5.002,3.013,6.521c8.871,4.456,17.508,9.396,26.31,13.996c1.212,0.634,2.953,0.879,4.277,0.565
c29.141-6.835,58.254-13.814,87.403-20.618c2.382-0.559,3.239-1.462,2.884-3.74C137.667,374.644,137.673,374.01,137.616,373.125"/>
<path class="f-seaweed" d="M13.946,337.482c-1.127,3.564,0.267,5.222,3.116,6.671c8.134,4.13,16.177,8.461,24.098,12.986
c2.877,1.644,5.438,1.889,8.623,1.116c28.322-6.841,56.672-13.55,85.04-20.196c2.43-0.571,3.402-1.601,2.935-4.011
c-0.104-0.521-0.106-1.061-0.179-1.82c-0.804,0.145-1.491,0.238-2.162,0.396c-29.583,6.998-59.16,14.021-88.756,20.963
c-1.089,0.257-2.526,0.057-3.521-0.465c-7.443-3.897-14.814-7.933-22.211-11.918C18.641,339.974,16.347,338.763,13.946,337.482"/>
<path class="f-seaweed" d="M13.89,386.744c-0.889,3.258,0.021,5.046,3.009,6.553c8.872,4.475,17.508,9.401,26.313,14.002
c1.221,0.641,2.979,0.897,4.312,0.584c28.803-6.74,57.582-13.588,86.365-20.41c4.33-1.023,4.534-1.35,3.433-6.031
c-3.06,0.689-6.132,1.355-9.191,2.09c-26.929,6.42-53.851,12.879-80.801,19.205c-1.472,0.345-3.411,0.006-4.772-0.697
c-8.417-4.368-16.732-8.943-25.083-13.438C16.306,387.975,15.116,387.385,13.89,386.744"/>
<path class="f-seaweed" d="M137.598,348.666c-1.218,0.271-2.263,0.483-3.301,0.729c-29.122,6.936-58.241,13.889-87.382,20.743
c-1.252,0.295-2.902-0.02-4.063-0.628c-8.872-4.67-17.668-9.478-26.492-14.241c-0.816-0.439-1.657-0.828-2.85-1.418
c0.448,2.392-0.838,4.5,1.839,5.899c9.455,4.921,18.77,10.099,28.206,15.051c1.054,0.559,2.613,0.672,3.8,0.396
c25.636-6,51.258-12.069,76.878-18.145c4.519-1.067,9.016-2.216,13.365-3.289V348.666z"/>
<path class="f-seaweed" d="M13.893,362.191c-0.932,3.396,0.062,5.153,3.044,6.653c8.865,4.469,17.498,9.383,26.291,13.996
c1.158,0.614,2.803,0.941,4.045,0.652c28.871-6.766,57.714-13.632,86.562-20.479c4.399-1.048,4.409-1.073,3.625-5.95
c-0.788,0.107-1.595,0.151-2.366,0.333c-29.019,6.892-58.043,13.776-87.036,20.762c-2.27,0.546-4.073,0.352-6.107-0.771
C32.718,372.284,23.404,367.325,13.893,362.191"/>
<path class="f-seaweed" d="M13.986,329.311c-1.353,3.615,0.333,5.171,3.107,6.603c8.664,4.469,17.234,9.138,25.776,13.852
c1.723,0.954,3.251,1.079,5.112,0.64c28.676-6.859,57.368-13.663,86.054-20.467c4.114-0.979,4.262-1.192,3.364-5.937
c-0.775,0.15-1.56,0.27-2.329,0.451c-29.401,6.967-58.789,13.946-88.206,20.838c-1.233,0.288-2.859,0.031-3.995-0.565
c-8.881-4.65-17.687-9.452-26.518-14.203C15.574,330.107,14.784,329.718,13.986,329.311"/>
<path class="f-seaweed" d="M13.927,395.625c-1.136,3.459,0.082,5.141,3.013,6.628c8.859,4.494,17.508,9.401,26.304,14.015
c1.137,0.603,2.769,0.848,4.011,0.559c24.851-5.793,49.687-11.68,74.519-17.567c5.315-1.261,10.609-2.585,15.831-3.866v-5.033
c-0.464,0.057-0.818,0.069-1.151,0.15c-28.253,6.71-56.527,13.325-84.729,20.241c-4.776,1.174-8.68,0.967-12.992-1.606
C30.688,404.343,22.29,400.138,13.927,395.625"/>
<path class="f-seaweed" d="M13.896,420.077c-1.202,3.622,0.349,5.26,3.245,6.747c8.84,4.532,17.501,9.421,26.294,14.04
c1.062,0.559,2.608,0.734,3.785,0.458c24.851-5.805,49.686-11.698,74.518-17.586c5.319-1.262,10.623-2.586,15.751-3.834v-5.016
c-0.408,0-0.594-0.037-0.76,0c-29.304,6.979-58.614,13.928-87.896,20.994c-2.817,0.678-5.124,0.402-7.672-1.022
C32.188,429.831,23.087,425.036,13.896,420.077"/>
<path class="f-seaweed" d="M137.711,439.622c-0.998,0.163-1.619,0.22-2.216,0.364c-29.549,6.998-59.091,14.021-88.652,20.949
c-1.239,0.289-2.871,0.038-4.004-0.559c-9.11-4.782-18.142-9.715-27.205-14.586c-0.58-0.307-1.227-0.502-1.729-0.709
c-1.243,3.439,0.308,5.027,3.122,6.471c8.596,4.4,17.075,9.025,25.52,13.721c1.88,1.041,3.53,1.255,5.579,0.753
c9.625-2.379,19.284-4.613,28.925-6.917c19.459-4.632,38.909-9.308,58.382-13.87c1.751-0.408,2.538-1.029,2.297-2.837
C137.626,441.611,137.711,440.802,137.711,439.622"/>
<path class="f-seaweed" d="M137.579,447.41c-1.284,0.283-2.25,0.472-3.204,0.703c-29.119,6.936-58.234,13.896-87.372,20.743
c-1.327,0.308-3.078-0.019-4.306-0.659c-8.803-4.619-17.514-9.396-26.263-14.108c-0.845-0.458-1.723-0.848-2.596-1.274
c-0.859,3.201-0.003,5.009,3.016,6.521c8.872,4.462,17.505,9.396,26.308,14.002c1.211,0.634,2.953,0.872,4.277,0.564
c29.144-6.834,58.253-13.813,87.406-20.623c2.382-0.559,3.235-1.456,2.881-3.741C137.632,448.924,137.639,448.296,137.579,447.41"
/>
<path class="f-seaweed" d="M13.908,411.768c-1.123,3.559,0.267,5.216,3.119,6.666c8.131,4.136,16.174,8.46,24.098,12.991
c2.875,1.639,5.436,1.883,8.624,1.117c28.318-6.841,56.668-13.557,85.037-20.203c2.429-0.564,3.401-1.594,2.934-4.011
c-0.104-0.521-0.106-1.061-0.176-1.82c-0.803,0.145-1.493,0.239-2.165,0.396c-29.58,7.005-59.157,14.021-88.753,20.963
c-1.092,0.258-2.525,0.057-3.523-0.464c-7.44-3.898-14.812-7.934-22.212-11.919C18.603,414.253,16.309,413.042,13.908,411.768"/>
<path class="f-seaweed" d="M13.852,461.03c-0.885,3.251,0.022,5.046,3.013,6.553c8.868,4.468,17.505,9.396,26.311,13.996
c1.221,0.64,2.978,0.897,4.312,0.583c28.805-6.734,57.581-13.582,86.364-20.404c4.334-1.022,4.535-1.355,3.434-6.031
c-3.06,0.69-6.132,1.355-9.191,2.084c-26.929,6.421-53.851,12.879-80.801,19.205c-1.472,0.352-3.408,0.013-4.773-0.696
c-8.416-4.368-16.732-8.938-25.083-13.438C16.269,462.254,15.079,461.664,13.852,461.03"/>
<path class="f-seaweed" d="M137.561,422.945c-1.218,0.271-2.263,0.483-3.299,0.729c-29.125,6.936-58.24,13.896-87.384,20.743
c-1.249,0.295-2.903-0.019-4.062-0.628c-8.874-4.663-17.667-9.477-26.492-14.234c-0.815-0.439-1.656-0.828-2.849-1.425
c0.445,2.397-0.842,4.507,1.835,5.906c9.456,4.914,18.772,10.092,28.206,15.05c1.058,0.553,2.617,0.666,3.8,0.39
c25.639-5.994,51.259-12.069,76.882-18.139c4.516-1.073,9.016-2.222,13.362-3.288V422.945z"/>
<path class="f-seaweed" d="M13.854,436.478c-0.932,3.389,0.066,5.146,3.048,6.652c8.861,4.463,17.498,9.384,26.288,13.996
c1.161,0.609,2.802,0.941,4.045,0.646c28.871-6.766,57.717-13.625,86.562-20.479c4.402-1.048,4.412-1.073,3.624-5.949
c-0.787,0.112-1.594,0.15-2.366,0.332c-29.015,6.898-58.04,13.783-87.036,20.762c-2.269,0.547-4.07,0.352-6.104-0.771
C32.684,446.563,23.366,441.605,13.854,436.478"/>
<path class="f-seaweed" d="M13.952,403.596c-1.353,3.615,0.329,5.172,3.104,6.604c8.668,4.469,17.238,9.132,25.776,13.845
c1.724,0.954,3.255,1.086,5.115,0.641c28.677-6.854,57.365-13.657,86.051-20.467c4.114-0.974,4.262-1.187,3.364-5.932
c-0.771,0.151-1.557,0.271-2.328,0.452c-29.398,6.96-58.79,13.945-88.207,20.837c-1.233,0.289-2.858,0.025-3.995-0.564
c-8.881-4.657-17.687-9.458-26.517-14.21C15.543,404.387,14.749,404.004,13.952,403.596"/>
<path class="f-seaweed" d="M13.962,469.195c-1.133,3.459,0.084,5.146,3.016,6.628c8.858,4.494,17.508,9.402,26.301,14.021
c1.139,0.596,2.771,0.841,4.011,0.552c24.856-5.786,49.686-11.68,74.521-17.566c5.316-1.262,10.61-2.586,15.832-3.86v-5.04
c-0.465,0.062-0.819,0.069-1.155,0.15c-28.252,6.71-56.526,13.325-84.726,20.248c-4.776,1.167-8.681,0.96-12.992-1.613
C30.726,477.92,22.328,473.708,13.962,469.195"/>
<path class="f-seaweed" d="M13.927,477.938c-1.136,3.458,0.082,5.146,3.013,6.628c8.859,4.493,17.508,9.401,26.304,14.015
c1.137,0.603,2.769,0.848,4.011,0.559c24.851-5.793,49.687-11.68,74.519-17.567c5.315-1.262,10.609-2.586,15.831-3.866v-5.033
c-0.464,0.057-0.818,0.069-1.151,0.15c-28.253,6.709-56.527,13.324-84.729,20.241c-4.776,1.174-8.68,0.967-12.992-1.607
C30.688,486.656,22.29,482.451,13.927,477.938"/>
<path class="f-seaweed" d="M13.908,494.081c-1.123,3.559,0.267,5.216,3.119,6.665c8.131,4.137,16.174,8.461,24.098,12.992
c2.875,1.638,5.436,1.883,8.624,1.117c28.318-6.841,56.668-13.557,85.037-20.203c2.429-0.565,3.401-1.595,2.934-4.011
c-0.104-0.515-0.106-1.061-0.176-1.82c-0.803,0.145-1.493,0.238-2.165,0.396c-29.58,7.004-59.157,14.021-88.753,20.963
c-1.092,0.257-2.525,0.057-3.523-0.465c-7.44-3.897-14.812-7.933-22.212-11.918C18.603,496.566,16.309,495.355,13.908,494.081"/>
<path class="f-seaweed" d="M13.952,485.909c-1.353,3.615,0.329,5.172,3.104,6.603c8.668,4.469,17.238,9.132,25.776,13.846
c1.724,0.96,3.255,1.086,5.115,0.641c28.677-6.854,57.365-13.657,86.051-20.468c4.114-0.973,4.262-1.186,3.364-5.931
c-0.771,0.15-1.557,0.27-2.328,0.452c-29.398,6.96-58.79,13.945-88.207,20.837c-1.233,0.289-2.858,0.025-3.995-0.564
c-8.881-4.657-17.687-9.459-26.517-14.21C15.543,486.7,14.749,486.317,13.952,485.909"/>
<path id="moneyTop_1_" class="f-seaweed" d="M135.037,90.575c-8.661-4.679-17.363-9.281-25.952-14.088
c-2.134-1.193-3.995-1.386-6.339-0.816c-17.169,4.17-34.372,8.2-51.563,12.287c-12.248,2.912-24.489,5.843-37.184,8.873
c1.108,0.662,1.839,1.131,2.596,1.542c8.661,4.676,17.363,9.284,25.962,14.065c1.883,1.045,3.536,1.241,5.586,0.749
c21.825-5.25,43.667-10.417,65.505-15.614c7.735-1.84,15.465-3.701,23.702-5.678C136.248,91.266,135.649,90.905,135.037,90.575z
M66.896,105.855c-1.839,0.436-3.703,0.797-5.523,1.291c-4.069,1.106-8.087,1.263-12.36,1.15c-5.047-0.132-9.22-1.472-13.35-3.949
c-2.526-1.516-5.182-2.825-8.043-4.37c1.475-1.233,4.302-1.138,2.105-4.062c9.848-2.346,19.513-4.649,29.379-7.001
c-2.413,3.444-2.168,5.145,1.252,7.474c4.67,3.179,10.039,4.372,15.55,4.994c2.012,0.228,4.048,0.283,6.126,0.852
C76.984,103.441,71.945,104.653,66.896,105.855z M86.116,100.234l-2.033,0.466l-2.103-1.273c-0.885,0.129-1.854,0.2-2.896,0.215
c-1.048,0.012-2.137-0.028-3.273-0.132l-1.478-1.957c1.192,0.092,2.256,0.138,3.191,0.138c0.936-0.003,1.823-0.096,2.661-0.285
c1.886-0.421,2.03-1.106,0.449-2.042c-1.067-0.632-2.492-0.912-4.284-0.851l-2.269,0.08c-1.017,0.038-1.945,0.013-2.787-0.08
c-0.834-0.091-1.647-0.26-2.435-0.505c-1.164-0.35-2.197-0.806-3.092-1.358c-0.646-0.402-1.123-0.794-1.44-1.18
c-0.311-0.383-0.461-0.742-0.451-1.076c0.009-0.334,0.169-0.644,0.483-0.923c0.311-0.279,0.769-0.516,1.381-0.712l-1.572-0.949
l1.896-0.388l1.6,0.954c0.873-0.122,1.783-0.177,2.73-0.168c0.951,0.011,1.908,0.075,2.871,0.196l0.835,1.643
c-1.154-0.109-2.1-0.161-2.84-0.15c-0.737,0.009-1.399,0.074-1.986,0.196c-0.644,0.138-1.001,0.35-1.07,0.639
c-0.069,0.292,0.163,0.601,0.693,0.922c0.411,0.251,0.857,0.42,1.337,0.515c0.48,0.093,1.155,0.121,2.024,0.086l2.441-0.086
c1.669-0.064,3.264,0.074,4.782,0.427c1.528,0.353,2.932,0.899,4.225,1.649c0.8,0.461,1.412,0.921,1.829,1.372
c0.421,0.45,0.644,0.883,0.668,1.292c0.022,0.416-0.147,0.794-0.515,1.147c-0.373,0.351-0.932,0.656-1.688,0.913L86.116,100.234z
M121.856,92.766c-9.941,2.369-19.723,4.701-29.699,7.083c2.441-3.455,2.194-5.133-1.217-7.472
c-4.589-3.141-9.863-4.321-15.273-4.98c-1.871-0.231-3.757-0.347-5.712-1.009c4.688-1.144,9.374-2.3,14.068-3.426
c2.63-0.627,5.281-1.146,7.902-1.818c3.207-0.824,6.373-1.968,9.681-0.447c0.157,0.071,0.357,0.035,0.54,0.042
c2.331,0.061,4.958-0.554,6.932,0.317c4.999,2.208,9.713,5.084,14.85,7.861C122.591,90.006,119.955,90.199,121.856,92.766z"/>
</svg>
</div>
<div class="container-btns">
<a href="javascript:;" id="clicky" class="button">Add one</a>
<a href="javascript:;" id="clicky2" class="button">Add lots</a>
</div>
@import 'https://fonts.googleapis.com/css?family=Roboto+Condensed:300';
$primary-color: #588886;
$primary-color-dark: #416866;
@keyframes fadeOn {
50%, 100% { opacity: 1; transform: translateY(0); }
0%, 10% { opacity: 0; transform: translateY(-10px); }
}
svg .f-seaweed {
fill: $primary-color;
}
#stackInd use {
animation-name: fadeOn;
animation-duration: 0.8s;
}
#moneyMain {
transition: 0.8s;
}
// @for $i from 1 through 60 {
// #stackInd:hover use:nth-child(#{$i}) {
// animation-duration: 0.4s + ($i/4);
// }
// }
// pretty styles
body {
background-color: $primary-color;
font-family: "Roboto Condensed", sans-serif;
}
a.button {
margin-bottom: 10px;
padding: 10px 20px;
text-decoration: none;
background-color: $primary-color-dark;
color: #fff;
display: inline-block;
transition: 0.15s;
&:hover {
background-color: #abc3c2;
}
}
.container {
margin: 20px auto;
padding: 20px;
width: 40%;
min-width: 220px;
box-shadow: 10px 10px 0 $primary-color-dark;
background-color: #fff;
text-align: center;
}
.container-btns {
text-align: center;
}
var counter = 0,
stackLength = 0;
function makeElem(counter) {
// create namespaced XML element
var useElem = document.createElementNS('http://www.w3.org/2000/svg', 'use');
// set namespaced attribute href
useElem.setAttributeNS('http://www.w3.org/1999/xlink', 'href', '#moneySingle');
useElem.setAttribute('y', counter);
return useElem;
}
function stackBills (el,money) {
counter = 0;
stackLength = document.getElementById(el).getAttribute("data-stack-total");
for (var i = 0; i <= stackLength; i++) {
setTimeout(function(){
var useElem = makeElem(counter);
document.getElementById(el).appendChild(useElem);
document.getElementById(money).setAttribute("transform", "translate(0 "+ counter +")");
counter -= 8;
}, 700 + (i * 100));
}
}
document.getElementById("clicky").addEventListener("click", function () {
var useElem = makeElem(counter);
document.getElementById("stackInd").appendChild(useElem);
document.getElementById("moneyMain").setAttribute("transform", "translate(0 "+ counter +")");
counter -= 8;
});
document.getElementById("clicky2").addEventListener("click", function () {
stackBills("stackInd","moneyMain")
});
Also see: Tab Triggers