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.
Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.
Upgrade to PROIf 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.
Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.
Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:
Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.
This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.
Upgrade to PRO
<svg id="mainSVG" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 800 600">
<g id="typo">
<g display="inline">
<polygon fill="#FFFFFF" points="542.914,317.478 540.979,317.478 540.979,320.873 537.11,320.873 537.11,322.813 540.979,322.813
540.979,326.693 542.914,326.693 542.914,322.813 546.782,322.813 546.782,320.873 542.914,320.873 "/>
<path fill="#FFFFFF" d="M541.946,312.143c-5.342,0-9.672,4.343-9.672,9.7s4.33,9.7,9.672,9.7s9.672-4.343,9.672-9.7
S547.288,312.143,541.946,312.143z M541.946,330.088c-4.533,0-8.221-3.699-8.221-8.245s3.688-8.245,8.221-8.245
s8.221,3.699,8.221,8.245S546.48,330.088,541.946,330.088z"/>
</g>
<g display="inline">
<g>
<path fill="#FFFFFF" d="M597.535,275.627l1.165-1.169c-2.816-2.824-7.381-2.824-10.197,0l1.165,1.169
C591.841,273.449,595.363,273.449,597.535,275.627z"/>
<path fill="#FFFFFF" d="M595.642,277.527l0.969-0.972c-0.329-0.33-0.715-0.614-1.158-0.829c-1.675-0.811-3.615-0.419-4.86,0.829
l0.969,0.972C592.689,276.397,594.515,276.397,595.642,277.527z"/>
</g>
<path fill="#FFFFFF" d="M599.717,283.765l-5.268-5.283c-0.413-0.414-1.082-0.414-1.494,0l-8.91,8.935
c-0.413,0.414-0.413,1.085,0,1.498l5.268,5.283c0.413,0.414,1.081,0.414,1.494,0l8.91-8.935
C600.129,284.849,600.129,284.179,599.717,283.765z M587.979,291.035l-2.731-2.739l2.081-2.087l2.731,2.739L587.979,291.035z
M594.3,281.007c-0.385,0.386-1.01,0.386-1.395,0s-0.385-1.013,0-1.399s1.01-0.386,1.395,0S594.685,280.621,594.3,281.007z"/>
</g>
<g display="inline">
<g>
<g>
<g>
<path fill="#FFFFFF" d="M588.716,348.398c-1.64,0.418-2.862,0.446-3.752,0.446c-2.585,0-5.572-1.31-5.572-4.988
c0-3.665,2.571-5.072,6.128-5.072c0.639,0,1.987,0.07,2.932,0.432l-0.208,2.118c-0.806-0.474-1.751-0.627-2.362-0.627
c-2.098,0-3.821,0.878-3.821,3.149c0,1.909,1.348,3.066,3.237,3.066c0.348,0,0.681-0.056,0.917-0.167v-1.923H584.7v-1.839
h4.016L588.716,348.398L588.716,348.398z"/>
<path fill="#FFFFFF" d="M595.18,348.677c-0.014-0.39-0.056-0.766-0.056-1.143h-0.028c-0.57,0.906-1.265,1.31-2.293,1.31
c-1.431,0-2.709-0.711-2.709-2.285c0-2.215,2.404-2.48,3.737-2.48c0.403,0,0.848,0.042,1.167,0.098
c-0.014-0.989-0.75-1.254-1.653-1.254c-0.806,0-1.612,0.153-2.307,0.543l-0.042-1.7c0.889-0.362,1.82-0.515,2.89-0.515
c1.848,0,3.446,0.794,3.446,3.01v2.703c0,0.571,0.028,1.143,0.139,1.714L595.18,348.677L595.18,348.677z M593.457,347.172
c0.945,0,1.542-0.864,1.542-1.714c-0.319-0.014-0.681-0.042-1.056-0.042c-0.848,0-1.515,0.265-1.515,0.962
C592.429,346.879,592.874,347.172,593.457,347.172z"/>
<path fill="#FFFFFF" d="M604.103,343.423c-0.278-0.084-0.556-0.084-0.848-0.084c-1.167,0-1.82,0.85-1.82,2.271v3.066h-2.501
v-7.26h2.279v1.338h0.028c0.431-0.92,1.056-1.505,2.14-1.505c0.292,0,0.597,0.042,0.848,0.084L604.103,343.423z"/>
<path fill="#FFFFFF" d="M607.038,345.778c0.139,1.003,0.903,1.393,2.126,1.393c0.681,0,1.459-0.153,2.209-0.558v1.77
c-0.806,0.321-1.723,0.46-2.654,0.46c-2.39,0-4.21-1.407-4.21-3.804c0-2.397,1.626-3.79,3.876-3.79
c2.682,0,3.654,1.909,3.654,4.069v0.46L607.038,345.778L607.038,345.778z M609.79,344.357c0-0.836-0.389-1.519-1.39-1.519
c-0.903,0-1.334,0.683-1.389,1.519H609.79z"/>
</g>
</g>
</g>
<path fill="#FFFFFF" d="M559.156,343.889c-0.081-0.637-0.234-1.794-1.61-1.794c-1.322,0-1.597,1.089-1.777,1.794H559.156z
M560.932,346.385c-0.305,0.774-0.869,2.222-3.29,2.222c-2.535,0-3.868-1.751-3.868-3.918c0-2.071,1.32-3.756,3.812-3.756
c0.605,0,1.707,0.097,2.56,0.954c0.977,0.993,0.991,2.305,1.004,3.078h-5.422c0.069,0.524,0.301,2.47,2.477,2.47
c1.28,0,1.789-0.65,2.271-1.27L560.932,346.385z"/>
<polygon fill="#FFFFFF" points="544.641,338.503 544.641,348.259 546.593,348.259 546.593,343.87 550.146,343.87 550.146,342.505
546.593,342.505 546.593,339.84 550.697,339.84 550.697,338.503 "/>
<rect x="551.234" y="338.516" fill="#FFFFFF" width="1.844" height="9.744"/>
<path fill="#FFFFFF" d="M571.01,344.739c0,1.601,0.548,2.733,1.692,2.733c1.156,0,1.707-1.187,1.707-2.636
c0-1.573-0.509-2.759-1.707-2.759C571.574,342.077,571.01,343.207,571.01,344.739 M576.349,344.725
c0,1.975-1.141,3.864-3.728,3.864c-2.147,0-3.551-1.504-3.551-3.794c0-2.8,2.007-3.823,3.604-3.85
C574.546,340.917,576.349,342.16,576.349,344.725"/>
<path fill="#FFFFFF" d="M569.901,338.692c-0.504,0.291-0.761,0.508-1.192,0.901l-0.245,0.228c0,0,0.228,0.323,0.252,0.356
c-1.124,2.343-1.714,3.463-2.496,3.66c-0.151-1.282-1.436-2.001-2.939-2.544c0.117-0.179,0.296-0.448,0.296-0.448l-0.74,0.065
l-1.995,0.081l0.343,0.546c0.17,0.291,0.323,0.457,0.617,0.742l0.218,0.211c0,0,0.306-0.204,0.361-0.243
c1.848,0.524,2.589,0.944,2.71,1.595c-1.119,0.054-1.824,0.881-2.655,2.023c-0.111-0.073-0.381-0.255-0.381-0.255l-0.077,0.56
l-0.299,1.343l0.444,0.031c0.451,0.022,0.696-0.043,1.046-0.155l0.495-0.153c0,0-0.321-0.462-0.338-0.485
c0.042-0.066,0.089-0.138,0.089-0.138c0.743-1.178,1.066-1.615,1.682-1.646c0.093,1.084,0.956,1.857,2.439,3.127
c0,0,0.208,0.179,0.394,0.342c-0.06,0.086-0.197,0.294-0.197,0.294l0.413,0.151l0.17,0.082l1.576,0.848l-0.066-0.713
c-0.075-0.594-0.186-0.902-0.407-1.422l-0.183-0.44c0,0-0.409,0.299-0.418,0.308c-0.283-0.222-0.837-0.655-0.837-0.655
c-1.201-0.925-1.677-1.341-1.751-1.917c1.289-0.194,2.204-1.633,3.405-3.907c0.13,0.088,0.316,0.212,0.316,0.212l0.095-0.537
l0.208-0.827l0.42-1.667L569.901,338.692z"/>
</g>
<g display="inline">
<g>
<path fill="#FFFFFF" d="M615.381,260.405c0-6.878-5.56-12.453-12.418-12.453c-6.858,0-12.418,5.576-12.418,12.453
c0,5.957,4.172,10.935,9.745,12.161l2.673,5.896l2.673-5.896C611.209,271.34,615.381,266.362,615.381,260.405z M602.963,270.99
c-5.82,0-10.555-4.749-10.555-10.585s4.735-10.585,10.555-10.585s10.555,4.749,10.555,10.585
C613.518,266.241,608.783,270.99,602.963,270.99z"/>
</g>
<g>
<path fill="#FFFFFF" d="M605.618,252.589l-11.328,7.954c-0.295,0.207-0.367,0.616-0.16,0.912l1.289,1.846
c0.79-0.555,1.879-0.362,2.432,0.43s0.361,1.884-0.429,2.439l1.295,1.855c0.207,0.296,0.614,0.368,0.909,0.161l11.328-7.954
c0.295-0.207,0.367-0.616,0.16-0.912l-1.295-1.855c-0.79,0.555-1.879,0.362-2.432-0.43s-0.361-1.884,0.429-2.439l-1.289-1.846
C606.321,252.454,605.914,252.382,605.618,252.589z"/>
</g>
</g>
<g display="inline">
<path fill="#FFFFFF" d="M584.597,263.277c-2.957,0-5.353,2.404-5.353,5.369s2.397,5.369,5.353,5.369
c2.957,0,5.353-2.404,5.353-5.369S587.553,263.277,584.597,263.277z M584.597,273.209c-2.509,0-4.55-2.047-4.55-4.563
s2.041-4.563,4.55-4.563s4.55,2.047,4.55,4.563S587.106,273.209,584.597,273.209z"/>
<ellipse fill="#FFFFFF" cx="584.597" cy="266.162" rx="0.803" ry="0.805"/>
<polygon fill="#FFFFFF" points="585.4,268.109 585.4,267.572 583.794,267.572 583.258,267.572 583.258,268.109 583.794,268.109
583.794,270.793 583.258,270.793 583.258,271.33 583.794,271.33 585.4,271.33 585.935,271.33 585.935,270.793 585.4,270.793 "/>
</g>
<g display="inline">
<path fill="#FFFFFF" d="M551.344,250.244c0,0-2.016,0.18-2.092,2.952c0,0-0.046,3.936,3.955,4.273c0,0,4.414,0.625,4.673-4.089
c0.092-1.669-0.84-3.384-0.84-3.384h-3.558v3.093h1.1v-1.47h1.863c0,0,0.764,1.567-0.091,2.757
c-0.502,0.697-1.417,1.354-2.52,1.348c-3.543-0.022-3.482-2.802-3.466-2.848c0.015-0.046-0.152-1.286,1.13-2.129L551.344,250.244z
"/>
<g>
<path fill="#FFFFFF" d="M553.711,236.351l-2.092,3.614l1.817-0.031v1.516c-4.444,0.077-4.184,3.997-4.184,3.997
c-0.015,0.582,0.032,4.111,4.566,4.012c4.184-0.092,4.047-3.828,4.047-3.828c-0.015-4.196-3.833-4.104-3.833-4.104v-1.593h1.741
L553.711,236.351z M556.746,245.435c0,0,0.241,2.181-3.113,2.249c-3.353,0.069-3.273-2.249-3.273-2.249s-0.275-2.181,3.285-2.204
C553.644,243.231,556.758,243.116,556.746,245.435z"/>
</g>
<path fill="#FFFFFF" d="M552.776,279.207c0,0-0.376-1.469-2.225-1.537c-2.526-0.093-2.356,2.759-2.356,2.759v3.314l8.69,0.006
v-1.77h-3.851c0,0,0.171-0.5,0.109-0.985l3.71-2.265v-1.931L552.776,279.207z M552.456,281.979h-2.984c0,0-0.446-2.501,1.38-2.478
C552.579,279.523,552.456,281.979,552.456,281.979z"/>
<path fill="#FFFFFF" d="M553.894,270.61c-3.707-0.044-3.585,3.128-3.585,3.128c-0.04,2.879,2.079,3.487,3.585,3.47
c1.506-0.018,3.155-0.827,3.262-3.416c0.108-2.589-1.99-2.984-1.99-2.984l-0.197,0.413c1.237,0.773,1.147,2.067,1.147,2.067
c-0.036,2.031-2.151,2.175-2.151,2.175s0,0-0.036,0C553.894,275.464,553.894,270.61,553.894,270.61z M551.341,273.84
c-0.007-1.43,1.607-1.45,1.607-1.45v3.048C552.821,275.418,551.348,275.196,551.341,273.84z"/>
<path fill="#FFFFFF" d="M551.96,265.054l0.105,0.412c0,0-0.856,0.324-0.874,1.577c0,0-0.077,1.318,0.848,1.376
c0.559,0.035,0.786-0.657,0.944-1.349c0.157-0.692,0.384-2.208,2.001-2.173c0,0,2.124-0.237,2.114,2.707
c-0.009,2.673-1.913,2.629-1.913,2.629l-0.096-0.438c0,0,1.014-0.228,1.092-1.831c0,0,0.086-1.296-0.874-1.42
c-0.883-0.114-1.075,1.323-1.075,1.323s-0.166,2.331-1.948,2.173c-1.749-0.155-2.044-1.893-2.018-2.734
C550.291,266.447,550.737,265.203,551.96,265.054z"/>
<path fill="#FFFFFF" d="M550.332,261.277c-0.009,2.225,1.682,2.62,1.682,2.62l0.197-0.413c0,0-0.966-0.61-0.949-1.768
c0.018-1.157,0.841-1.651,1.826-1.624c0,0-1.081,3.175,1.217,4.056c0,0,2.577,0.808,2.774-1.893c0,0,0.125-1.238-0.868-2.171
h0.635v-1.562h-3.928C552.918,258.522,550.344,258.172,550.332,261.277z M556.094,261.447c-0.063,1.221-1.315,1.095-1.315,1.095
c-1.736-0.385-0.734-2.458-0.734-2.458l1.548-0.009C556.085,260.837,556.094,261.447,556.094,261.447z"/>
</g>
<g display="inline">
<ellipse fill="#FFFFFF" cx="536.958" cy="264.865" rx="1.607" ry="1.611"/>
<path fill="#FFFFFF" d="M539.227,272.517h0.061l0.266-3.075c0.668,0.297,1.277,0.704,1.802,1.199l1.278-1.282
c-1.424-1.361-3.333-2.214-5.441-2.274c-0.078-0.002-0.156-0.006-0.235-0.006c-1.092,0-2.133,0.215-3.087,0.602
c-0.969,0.393-1.845,0.966-2.59,1.678l1.278,1.281c0.525-0.494,1.132-0.901,1.8-1.198l0.238,3.074h0.091
c0.621-0.503,1.41-0.806,2.27-0.806S538.607,272.014,539.227,272.517z"/>
<ellipse fill="#FFFFFF" cx="526.515" cy="275.337" rx="1.607" ry="1.611"/>
<path fill="#FFFFFF" d="M534.146,273.061V273l-3.066-0.267c0.296-0.67,0.702-1.28,1.196-1.807l-1.278-1.282
c-1.357,1.428-2.208,3.342-2.267,5.457c-0.002,0.079-0.006,0.157-0.006,0.236c0,1.095,0.214,2.139,0.6,3.095
c0.392,0.972,0.964,1.85,1.673,2.597l1.278-1.281c-0.493-0.526-0.899-1.136-1.194-1.805l3.066-0.239v-0.091
c-0.502-0.622-0.803-1.414-0.803-2.276S533.644,273.683,534.146,273.061z"/>
<ellipse fill="#FFFFFF" cx="536.958" cy="285.809" rx="1.607" ry="1.611"/>
<path fill="#FFFFFF" d="M534.688,278.156h-0.061l-0.266,3.075c-0.668-0.297-1.277-0.704-1.802-1.199l-1.278,1.282
c1.424,1.361,3.333,2.214,5.441,2.274c0.078,0.002,0.156,0.006,0.235,0.006c1.092,0,2.133-0.215,3.087-0.602
c0.969-0.393,1.845-0.966,2.59-1.678l-1.278-1.281c-0.525,0.494-1.132,0.901-1.8,1.198l-0.238-3.074h-0.091
c-0.621,0.503-1.41,0.806-2.27,0.806S535.308,278.659,534.688,278.156z"/>
<ellipse fill="#FFFFFF" cx="547.4" cy="275.337" rx="1.607" ry="1.611"/>
<path fill="#FFFFFF" d="M542.918,269.644l-1.278,1.281c0.493,0.526,0.899,1.136,1.194,1.805l-3.066,0.239v0.091
c0.502,0.622,0.803,1.414,0.803,2.276s-0.302,1.654-0.803,2.276v0.061l3.066,0.266c-0.296,0.67-0.702,1.28-1.196,1.807
l1.278,1.282c1.357-1.428,2.208-3.342,2.267-5.457c0.002-0.079,0.006-0.157,0.006-0.236c0-1.095-0.214-2.139-0.6-3.095
C544.199,271.27,543.627,270.391,542.918,269.644z"/>
<polygon fill="#FFFFFF" points="536.957,272.517 536.958,272.517 536.958,272.517 "/>
</g>
<g display="inline">
<path fill="#FFFFFF" d="M614.707,325.386c-2.923,0-5.293,2.373-5.293,5.3s2.37,5.3,5.293,5.3c2.923,0,5.293-2.373,5.293-5.3
C620,327.759,617.63,325.386,614.707,325.386z M614.707,335.191c-2.481,0-4.499-2.021-4.499-4.505s2.018-4.505,4.499-4.505
s4.499,2.021,4.499,4.505S617.188,335.191,614.707,335.191z"/>
<path fill="#FFFFFF" d="M617.274,329.256l-2.388,0.934c-0.056-0.02-0.116-0.033-0.179-0.033c-0.008,0-0.015,0.002-0.023,0.002
l-2.375-1.903c-0.171-0.137-0.421-0.109-0.558,0.062c-0.137,0.171-0.109,0.422,0.062,0.559l2.375,1.902
c0.044,0.248,0.259,0.438,0.52,0.438c0.204,0,0.379-0.117,0.467-0.286l2.389-0.934c0.204-0.08,0.305-0.31,0.225-0.515
C617.709,329.277,617.479,329.176,617.274,329.256z"/>
</g>
<g display="inline">
<path fill="#FFFFFF" d="M544.018,286.248h4.857l1.563,5.976h0.024v-5.976h2.786v8.479h-4.773l-1.647-6.146h-0.024v6.146h-2.786
V286.248z"/>
<path fill="#FFFFFF" d="M554.051,286.248h7.327v2.041h-4.154v1.202h3.973v2.041h-3.973v1.154h4.24v2.041h-7.413V286.248z"/>
<path fill="#FFFFFF" d="M565.488,291.666h0.024l1.357-5.418h3.112l1.321,5.418h0.023l1.042-5.418h2.895l-2.035,8.479h-3.488
l-1.418-5.539h-0.023l-1.345,5.539h-3.561l-1.974-8.479h3.04L565.488,291.666z"/>
<path fill="#FFFFFF" d="M582.282,288.569c-0.727-0.255-1.587-0.425-2.508-0.425c-0.508,0-1.393,0.012-1.393,0.559
c0,1.105,4.446,0.06,4.446,3.328c0,2.272-2.241,2.842-4.119,2.842c-1.248,0-2.277-0.121-3.488-0.4v-2.199
c0.872,0.365,1.938,0.559,2.906,0.559c0.763,0,1.454-0.158,1.454-0.583c0-1.142-4.446-0.109-4.446-3.401
c0-2.332,2.422-2.746,4.349-2.746c0.909,0,1.914,0.109,2.798,0.292v2.174H582.282z"/>
</g>
<g display="inline">
<path fill="#FFFFFF" d="M537.936,242.072c-5.859,0-10.612,3.776-10.612,8.427c0,2.744,1.654,5.182,4.213,6.721
c1.395,1.281,1.258,3.339-0.676,5.247c2.346,0,6.078-1.389,6.908-3.553c0.057,0,0.112,0,0.168,0
c5.858,0,10.612-3.769,10.612-8.419C548.548,245.843,543.794,242.072,537.936,242.072z M532.258,253.396
c-0.596,0-1.184-0.155-1.478-0.318l0.24-0.978c0.317,0.163,0.804,0.326,1.307,0.326c0.542,0,0.828-0.225,0.828-0.566
c0-0.326-0.248-0.512-0.874-0.737c-0.866-0.303-1.431-0.784-1.431-1.544c0-0.892,0.743-1.575,1.973-1.575
c0.588,0,1.021,0.124,1.331,0.264l-0.263,0.954c-0.209-0.101-0.58-0.248-1.091-0.248c-0.51,0-0.758,0.233-0.758,0.505
c0,0.333,0.294,0.48,0.967,0.736c0.92,0.342,1.353,0.823,1.353,1.56C534.362,252.651,533.689,253.396,532.258,253.396z
M539.648,253.318l-0.077-2.002c-0.023-0.628-0.046-1.389-0.046-2.149h-0.023c-0.163,0.667-0.379,1.412-0.58,2.025l-0.634,2.04
h-0.921l-0.557-2.025c-0.17-0.613-0.348-1.358-0.472-2.041h-0.015c-0.031,0.706-0.054,1.513-0.093,2.164l-0.093,1.986h-1.091
l0.333-5.229h1.571l0.51,1.745c0.162,0.605,0.325,1.257,0.441,1.87h0.023c0.147-0.605,0.325-1.295,0.495-1.877l0.557-1.738h1.54
l0.286,5.229L539.648,253.318L539.648,253.318z M542.986,253.396c-0.596,0-1.184-0.155-1.478-0.318l0.24-0.978
c0.317,0.163,0.804,0.326,1.307,0.326c0.541,0,0.828-0.225,0.828-0.566c0-0.326-0.248-0.512-0.874-0.737
c-0.867-0.303-1.431-0.784-1.431-1.544c0-0.892,0.743-1.575,1.973-1.575c0.588,0,1.021,0.124,1.331,0.264l-0.263,0.954
c-0.209-0.101-0.58-0.248-1.091-0.248c-0.51,0-0.758,0.233-0.758,0.505c0,0.333,0.294,0.48,0.967,0.736
c0.92,0.342,1.354,0.823,1.354,1.56C545.09,252.651,544.417,253.396,542.986,253.396z"/>
</g>
<g display="inline">
<path fill="#FFFFFF" d="M356.306,246.32v16.82h-6.591v-16.82H356.306z"/>
<path fill="#FFFFFF" d="M357.462,250.447h5.854v2.22h0.049c0.738-1.801,2.435-2.516,4.181-2.516c3.296,0,4.501,1.727,4.501,4.218
v8.771h-6.198v-7.242c0-0.74,0-1.751-1.082-1.751c-1.107,0-1.107,1.011-1.107,1.751v7.242h-6.198L357.462,250.447L357.462,250.447
z"/>
<path fill="#FFFFFF" d="M382.587,248.203c0.787,0,1.058,0.099,1.353,0.173v-3.428c-0.861-0.222-2.386-0.444-3.837-0.444
c-3.197,0-5.46,1.431-5.534,4.859v1.085h-2.263v3.7h2.263v8.993h4.139h1.85h0.455v-0.165v-2.67v-6.158h2.632v-3.7h-2.632v-0.666
C381.013,248.745,381.8,248.203,382.587,248.203z"/>
<path fill="#FFFFFF" d="M402.036,257.304c0-1.869-2.094-3.892-2.094-3.892c-4.085-4.125-7.499-3.786-7.499-3.786
c-5.769,0.001-9.336,5.757-9.336,5.757c-1.166,1.843-0.309,3.217-0.309,3.217c0.375,0.698,0.998,1.336,1.69,1.89l0.001,0.001
c0.291,0.233,0.594,0.451,0.896,0.651c0.01,0.006,0.019,0.013,0.029,0.019c1.316,0.871,2.6,1.417,2.746,1.478
c0.009,0.004,0.015,0.006,0.015,0.006c0.143,0.064,0.286,0.124,0.429,0.179c0.186,0.072,0.372,0.134,0.558,0.193
c0.243,0.076,0.485,0.143,0.725,0.197c0.709,0.158,1.406,0.226,2.073,0.231c2.934,0.022,5.278-1.171,5.372-1.216
c0.004-0.002,0.004-0.002-0.001,0.001c0.003-0.002,0.006-0.003,0.009-0.005c0.086-0.042,0.169-0.085,0.252-0.127
c0.029-0.015,0.056-0.029,0.085-0.044c0.057-0.029,0.113-0.059,0.168-0.088c0.031-0.017,0.062-0.033,0.093-0.05
c0.051-0.028,0.102-0.055,0.152-0.083c0.03-0.017,0.06-0.033,0.09-0.05c0.051-0.028,0.101-0.057,0.151-0.085
c0.027-0.015,0.054-0.031,0.08-0.046c0.056-0.032,0.11-0.064,0.164-0.096c0.019-0.011,0.038-0.022,0.057-0.034
c0.073-0.044,0.145-0.088,0.215-0.131c0.001,0,0.001-0.001,0.002-0.001c0.069-0.043,0.136-0.086,0.202-0.128
c0.016-0.01,0.032-0.021,0.048-0.031c0.05-0.033,0.1-0.065,0.148-0.098c0.018-0.012,0.036-0.024,0.054-0.037
c0.046-0.031,0.092-0.063,0.137-0.094c0.017-0.012,0.033-0.023,0.05-0.035c0.048-0.034,0.095-0.067,0.141-0.1
c0.012-0.008,0.023-0.017,0.035-0.025c0.177-0.13,0.341-0.257,0.493-0.383c0.004-0.003,0.008-0.007,0.012-0.01
c0.046-0.038,0.091-0.076,0.135-0.114c0.006-0.005,0.012-0.011,0.019-0.016c0.042-0.037,0.084-0.073,0.124-0.11
c0.005-0.005,0.01-0.009,0.015-0.014c0.044-0.04,0.087-0.079,0.128-0.118l0.001-0.001h0.001c0.011,0,0.025,0.001,0.035,0.001
c0.064-0.073,0.125-0.145,0.183-0.216l0,0l0,0l0,0C402.261,258.373,402.036,257.304,402.036,257.304z M391.745,258.466
c-0.914,0.048-0.124-1.116,0.321-1.342c0.798-0.407,1.08-0.081,1.093,0.363C393.167,257.93,392.654,258.417,391.745,258.466z
M399.361,256.087c-0.508,0.186-0.634-0.077-0.548-0.399c0.037-0.134-0.049-0.203-0.168-0.195c-0.291,0-0.703,0.243-1.235,0.73
c-0.616,0.555-0.925,1.014-0.939,1.375c-0.007,0.216,0.233,0.323,0.566,0.332c0,0,0.755-0.107,1.198,0.129
c0.436,0.236,1.229,0.355,0.567,0.641c-0.663,0.284-1.614,0.312-1.614,0.312c-0.683-0.017-1.186-0.144-1.506-0.375
c-0.089-0.054-0.164-0.11-0.224-0.163c-1.236-1.15-1.597-1.451-2.18-1.979c0,0-0.44-0.468-0.839-0.478
c-0.441-0.01-0.815,0.47-0.815,0.47l-1.72,1.932c0,0-0.781,0.989-2.096,0.951c-1.566-0.042-2.058-1.569-2.058-1.569
s-0.23-0.867,0.045-1.792c0,0,0.273-0.756-0.448-0.89c0,0-0.991-0.136-0.471-0.739l1.661-1.612c0,0,0.29-0.384,0.521-0.376
c0.231,0.006,0.373,0.179,0.363,0.38c-0.002,0.088-0.014,0.479-0.027,0.995c0.052-0.007,0.103-0.009,0.151-0.01
c1.338,0.005,1.578,0.514,1.374,0.997c-0.152,0.361-0.736,0.585-1.572,0.487c-0.01,0.292-0.02,0.58-0.027,0.84
c-0.041,1.241,1.272,1.119,2.192,0.392l2.239-1.961c0,0,0.763-0.673,1.495,0.053c0.682,0.616,1.472,1.354,2.213,2.03
c0.058,0.054,0.108,0.035,0.136,0c0.164-0.269,0.378-0.541,0.651-0.817c0.933-0.937,1.874-1.395,2.814-1.367
c0.631,0.017,0.937,0.326,0.917,0.937C399.965,255.622,399.735,255.948,399.361,256.087z"/>
</g>
<path display="inline" fill="#FFFFFF" d="M485.627,290.228l-6.299,3.647v15.35l6.299-3.647l6.299,3.647l6.299-3.647v-15.35
l-6.299,3.647L485.627,290.228z M496.805,292.696v12.06l-4.879,2.825l-5.589-3.236l-0.71-0.411l-0.71,0.411l-4.168,2.413v-12.06
l4.879-2.825l5.589,3.236l0.71,0.411l0.71-0.411L496.805,292.696z"/>
<g display="inline">
<path fill="#FFFFFF" d="M333.062,264.795c-6.961,0-12.605,5.659-12.605,12.64c0,6.981,5.643,12.64,12.605,12.64
s12.605-5.659,12.605-12.64C345.666,270.455,340.023,264.795,333.062,264.795z M333.062,288.18
c-5.908,0-10.714-4.82-10.714-10.744s4.806-10.744,10.714-10.744s10.714,4.82,10.714,10.744S338.969,288.18,333.062,288.18z"/>
<ellipse fill="#FFFFFF" cx="333.062" cy="271.588" rx="1.891" ry="1.896"/>
<polygon fill="#FFFFFF" points="334.952,276.172 334.952,274.908 331.171,274.908 329.91,274.908 329.91,276.172 331.171,276.172
331.171,282.492 329.91,282.492 329.91,283.756 331.171,283.756 334.952,283.756 336.213,283.756 336.213,282.492
334.952,282.492 "/>
</g>
<g display="inline">
<g>
<path fill="#FFFFFF" d="M464.148,300.348c0.334,0.124,0.929,0.357,1.538,0.838c0.842,0.687,1.582,1.773,1.582,3.354
c0,2.57-1.988,4.536-5.413,4.536c-3.482,0-5.354-2.13-5.354-4.604c0-3.024,2.452-3.738,3.163-3.958l0.508,1.814
c-0.189,0.027-0.624,0.11-1.016,0.357c-0.319,0.206-0.9,0.742-0.9,1.746c0,1.581,1.379,2.68,3.57,2.68
c2.336,0,3.628-1.168,3.628-2.694c0-0.907-0.464-1.457-1.001-1.855c-0.45-0.316-0.827-0.44-1.059-0.509L464.148,300.348z"/>
<path fill="#FFFFFF" d="M456.762,297.572h10.245v1.663h-10.245V297.572z"/>
<path fill="#FFFFFF" d="M459.752,289.587h7.255v1.649h-0.74c0.29,0.289,0.914,0.962,0.914,2.227c0,1.127-0.508,1.663-0.842,1.91
c-0.624,0.467-1.306,0.467-2.394,0.467h-4.194v-1.663h4.165c0.29,0,0.537,0,0.725-0.055c0.639-0.179,0.914-0.673,0.914-1.278
c0-0.687-0.392-1.113-0.769-1.333c-0.479-0.247-0.943-0.261-1.959-0.275h-3.076v-1.649H459.752z"/>
<path fill="#FFFFFF" d="M456.762,286.165h3.599c-0.537-0.55-0.827-1.237-0.827-1.993c0-1.553,1.509-3.01,3.816-3.01
c2.365,0,3.874,1.484,3.874,3.12c0,0.907-0.537,1.526-0.972,1.883h0.755v1.636h-10.245L456.762,286.165L456.762,286.165z
M461.116,284.571c0,0.742,0.595,1.622,2.148,1.622c0.45,0,0.755-0.055,0.929-0.11c1.379-0.33,1.379-1.443,1.379-1.581
c0-1.209-1.291-1.608-2.249-1.636C461.885,282.825,461.116,283.677,461.116,284.571z"/>
</g>
<g>
<g>
<g>
<g>
<path fill="#FFFFFF" d="M457.935,253.165c-0.05,1.734,0.836,3.462,2.654,5.183c0.53,0.502,1.058,0.898,1.583,1.195
c0.064,0.059,0.104,0.143-0.002,0.255c-1.311,1.365-2.742,2.819-3.934,4.076c-1.409,1.347-0.107,2.753-0.107,2.753
l3.803,4.128c1.409,1.694,1.648,4.113-0.759,4.038c-0.504-0.017-1.062-0.035-1.631-0.051c0.193-1.542-0.24-2.616-0.941-2.896
c-0.937-0.377-1.923,0.065-1.933,2.534c0,0.087,0.005,0.179,0.017,0.278c-1.001-0.027-1.759-0.049-1.927-0.055
c-0.39-0.014-0.725,0.245-0.738,0.673c-0.011,0.424,0.729,0.958,0.729,0.958l3.129,3.059c1.169,0.957,1.429-0.866,1.429-0.866
c0.261-1.328,1.732-0.825,1.732-0.825c1.788,0.503,3.469,0.082,3.469,0.082s2.965-0.905,3.045-3.791
c0.07-2.423-1.848-3.86-1.848-3.86l-3.745-3.169c0,0-0.934-0.692-0.912-1.495c0.021-0.739,0.925-1.55,0.925-1.55
c1.025-1.075,1.61-1.743,3.839-4.02c0.106-0.105,0.212-0.247,0.316-0.409c0.448-0.592,0.691-1.515,0.727-2.774
c0,0-0.055-1.752-0.604-2.974c-0.549-1.219-0.786,0.239-1.244,1.044c-0.454,0.81-0.249,2.206-0.249,2.206
c-0.021,0.611-0.222,1.056-0.643,1.042c-0.702-0.024-1.594-0.597-2.671-1.727c-0.939-0.981-1.412-1.741-1.413-2.279
c-0.012-0.216,0.121-0.376,0.379-0.311c0.627,0.157,1.136-0.073,0.773-1.009c-0.268-0.687-0.899-1.11-1.428-1.128
C458.574,251.439,457.969,252.003,457.935,253.165 M463.196,266.046c0.439,0.819,2.693,2.27,2.599,0.592
c-0.093-1.677-1.036-2.627-1.896-2.606C463.039,264.051,462.406,264.574,463.196,266.046"/>
</g>
</g>
</g>
</g>
</g>
<g display="inline">
<g>
<path fill="#FFFFFF" d="M457.813,258.979c0-3.385-2.736-6.129-6.111-6.129s-6.111,2.744-6.111,6.129
c0,2.932,2.053,5.381,4.796,5.985l1.315,2.902l1.315-2.902C455.76,264.361,457.813,261.911,457.813,258.979z M451.702,264.189
c-2.864,0-5.195-2.337-5.195-5.21s2.33-5.209,5.195-5.209s5.195,2.337,5.195,5.209S454.566,264.189,451.702,264.189z"/>
</g>
<g>
<path fill="#FFFFFF" d="M453.009,255.133l-5.575,3.915c-0.145,0.102-0.181,0.303-0.079,0.449l0.634,0.908
c0.389-0.273,0.925-0.178,1.197,0.212s0.178,0.927-0.211,1.2l0.637,0.913c0.102,0.146,0.302,0.181,0.447,0.079l5.575-3.915
c0.145-0.102,0.181-0.303,0.079-0.449l-0.637-0.913c-0.389,0.273-0.925,0.178-1.197-0.212s-0.178-0.927,0.211-1.2l-0.634-0.908
C453.354,255.066,453.154,255.031,453.009,255.133z"/>
</g>
</g>
<g display="inline">
<g>
<path fill="#FFFFFF" d="M318.243,277.923l1.165-1.169c-2.816-2.824-7.382-2.824-10.197,0l1.165,1.169
C312.549,275.744,316.071,275.744,318.243,277.923z"/>
<path fill="#FFFFFF" d="M316.35,279.822l0.969-0.972c-0.329-0.33-0.715-0.614-1.158-0.829c-1.675-0.811-3.615-0.419-4.86,0.829
l0.969,0.972C313.397,278.692,315.223,278.692,316.35,279.822z"/>
</g>
<path fill="#FFFFFF" d="M320.425,286.06l-5.268-5.283c-0.413-0.414-1.082-0.414-1.494,0l-8.91,8.935
c-0.413,0.414-0.413,1.085,0,1.498l5.268,5.283c0.413,0.414,1.082,0.414,1.494,0l8.91-8.935
C320.837,287.145,320.837,286.474,320.425,286.06z M308.687,293.33l-2.731-2.739l2.081-2.087l2.731,2.739L308.687,293.33z
M315.008,283.302c-0.385,0.386-1.01,0.386-1.395,0c-0.385-0.386-0.385-1.013,0-1.399s1.01-0.386,1.395,0
C315.393,282.289,315.393,282.916,315.008,283.302z"/>
</g>
<g display="inline">
<path fill="#FFFFFF" d="M484.27,308.75l-10.62,6.717l1.23,1.956c0.054-0.052,0.115-0.1,0.181-0.142
c0.533-0.337,1.238-0.177,1.574,0.358s0.177,1.242-0.357,1.579c-0.066,0.042-0.135,0.076-0.205,0.103l1.23,1.956l12.886-8.15
l-2.233-3.55L484.27,308.75z"/>
</g>
<g display="inline">
<path fill="#FFFFFF" d="M234.307,319.16c-5.015,0-9.08,4.077-9.08,9.106s4.065,9.106,9.08,9.106s9.08-4.077,9.08-9.106
S239.322,319.16,234.307,319.16z M234.307,336.006c-4.256,0-7.718-3.472-7.718-7.74s3.462-7.74,7.718-7.74s7.718,3.472,7.718,7.74
C242.026,332.534,238.563,336.006,234.307,336.006z"/>
<path fill="#FFFFFF" d="M238.712,325.809l-4.097,1.604c-0.096-0.035-0.199-0.057-0.307-0.057c-0.014,0-0.026,0.003-0.04,0.004
l-4.075-3.269c-0.293-0.235-0.722-0.188-0.957,0.107c-0.235,0.295-0.187,0.724,0.106,0.96l4.073,3.268
c0.075,0.427,0.445,0.752,0.892,0.752c0.35,0,0.65-0.201,0.802-0.491l4.098-1.604c0.35-0.137,0.523-0.533,0.387-0.885
C239.457,325.845,239.063,325.671,238.712,325.809z"/>
</g>
<g display="inline">
<g>
<g>
<g>
<path fill="#FFFFFF" d="M259.27,271.266c0.417,1.644,0.445,2.87,0.445,3.762c0,2.592-1.306,5.588-4.974,5.588
c-3.654,0-5.058-2.578-5.058-6.145c0-0.641,0.07-1.993,0.431-2.94l2.112,0.209c-0.473,0.808-0.625,1.756-0.625,2.369
c0,2.104,0.875,3.832,3.14,3.832c1.903,0,3.057-1.352,3.057-3.247c0-0.349-0.056-0.683-0.167-0.92h-1.918v1.519h-1.834v-4.027
H259.27z"/>
<path fill="#FFFFFF" d="M259.548,264.784c-0.389,0.014-0.764,0.056-1.139,0.056v0.028c0.903,0.571,1.306,1.268,1.306,2.299
c0,1.435-0.709,2.717-2.279,2.717c-2.209,0-2.473-2.41-2.473-3.748c0-0.404,0.042-0.85,0.097-1.171
c-0.987,0.014-1.25,0.752-1.25,1.658c0,0.808,0.153,1.616,0.542,2.313l-1.695,0.042c-0.361-0.892-0.514-1.825-0.514-2.898
c0-1.853,0.792-3.455,3.001-3.455h2.695c0.57,0,1.139-0.028,1.709-0.139V264.784z M258.047,266.512
c0-0.947-0.862-1.547-1.709-1.547c-0.014,0.32-0.042,0.683-0.042,1.059c0,0.85,0.264,1.519,0.959,1.519
C257.755,267.543,258.047,267.097,258.047,266.512z"/>
<path fill="#FFFFFF" d="M254.309,255.836c-0.083,0.279-0.083,0.557-0.083,0.85c0,1.17,0.848,1.825,2.265,1.825h3.057v2.508
h-7.239v-2.285h1.334v-0.028c-0.917-0.432-1.501-1.059-1.501-2.146c0-0.293,0.042-0.599,0.083-0.85L254.309,255.836z"/>
<path fill="#FFFFFF" d="M256.658,252.892c1-0.139,1.389-0.906,1.389-2.132c0-0.683-0.153-1.463-0.556-2.216h1.765
c0.32,0.808,0.458,1.728,0.458,2.661c0,2.397-1.403,4.222-3.793,4.222c-2.39,0-3.779-1.63-3.779-3.887
c0-2.689,1.904-3.665,4.057-3.665h0.459L256.658,252.892L256.658,252.892z M255.24,250.133c-0.834,0-1.515,0.39-1.515,1.394
c0,0.906,0.681,1.338,1.515,1.393V250.133z"/>
</g>
</g>
</g>
<path fill="#FFFFFF" d="M254.773,300.91c-0.635,0.082-1.789,0.235-1.789,1.614c0,1.326,1.086,1.601,1.789,1.783V300.91z
M257.263,299.13c0.772,0.305,2.215,0.871,2.215,3.299c
html, body {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
body {
background-color: #42b2cb;
background-image: radial-gradient(#42b2cb 0%,rgba(0,0,0,.6) 100%);
overflow: hidden;
}
svg {
visibility:hidden;
width: 100%;
height: 100%;
}
function random(min, max) {
return (Math.random() * (max - min)) + min;
}
const mainSVG = document.getElementById('mainSVG');
const typoAnim = document.getElementById('typo');
const animation = Circ.easeOut;
const tl = new TimelineMax({
pause: true,
onStart: () => {
//sound.play();
},
onComplete:() => {
//sound.pause();
}
});
//for (let item of typoAnim.children) {
tl.from(typoAnim.children, 20,
{
opacity: 0,
z:0.001,
x: function(){ return random(-500, 500)},
y: function(){ return random(-500, 500)},
ease: animation,
}, 0
);
tl.to(typoAnim.children, 20,
{
opacity: 0,
x: function(){return random(-500, 500)},
y: function(){return random(-500, 500)},
ease: Circ.easeIn,
}, 21
);
//}
TweenMax.set(mainSVG, {visibility:"visible"});
tl.play();
bind
.
Also see: Tab Triggers