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.
a(href="//se7ensky.com" title="SE7ENSKY Frontend studio" target="_blank")
svg.logo(xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 164 80" x="0" y="0" version="1.1")
clipPath#clip-y
path(id="y" d="M132.359,39.828c0.311,0.836,3.854,11.175,8.303,9.604c1.655-0.584,2.423-5.254,3.926-9.247 c1.381-3.669,3.303-8.659,3.42-8.724c0.41,1.511-0.628,16.61,2.757,17.657c1.777,0.55,3.356-1.419,3.944-2.791 c1.906-4.453,3.295-12.382,3.879-12.623c0.105,1.48,1.185,17.737-0.181,28.396c-1.455,11.357-7.995,15.03-7.995,15.03 c0.283,0.393,1.881-0.496,3.598-2.189c1.094-1.079,1.78-2.198,1.78-2.198c0.244,0.209-0.894,2.038-2.338,3.315 c-0.746,0.66-1.856,1.538-2.919,1.896c0.523,1.021,2.315,2.1,3.058,1.594c7.886-5.374,9.481-17.01,9.743-22.652 c0.284-6.097-1.008-25.515-0.905-27.336c0.119-2.088,0.529-4.943-1.105-5.628c-0.204,0.05-1.801-0.565-2.535,0.48 c-0.207,0.295-5.92,18.591-6.175,18.845c-0.407,0.407-1.024-16.299-1.216-17.103c-0.195-0.819-0.87-2.136-1.709-2.211 c-1.333-0.119-2.38,0.941-4.107,5.443c-2.357,6.143-4.888,14.543-5.499,14.63c-1.733,0.247-4.921-6.509-5.608-8.749 c0.024-0.038-0.024,0.037,0,0c-1.569,1.187-2.1,3.125-2.194,4.343")
clipPath#clip-k2
path(id="k2" d="M127.333,25.95c-0.323,7.864,0.172,14.408-0.375,22.027c0.22,0.877,0.77,1.504,2.968,0.981 c0,0,2.064-7.742,2.387-8.754c0.171-0.419,0.29-0.878,0.297-0.859c0.481-1.398,0.802-2.237,1.865-4.078l0,0 c4.041-6.404,8.909-8.864,8.909-8.864c0-1.047-1.438-2.65-2.827-2.355c-2.303,0.488-5.801,4.784-9.736,11.882 c0.496-4.551,0.941-12.53,0.655-17.323c-0.093-1.558,0.076-4.134-1.909-3.92c-1.811,0.196-2.409,3.061-2.227,5.188")
clipPath#clip-k1
path(id="k1" d="M128.25,24.25c0.548-0.923,0.859-1.766,0.742-2.804c-0.102-0.902-1.087-1.142-1.655-1.616 c0.003,0.043,0,0,0.004,0.043c-2.639,4.56-9.488,17.04-9.842,17.33c0,0-0.135,0.321-0.405,0.782 c-0.354,0.651-0.248,0.473-0.578,1.141c-0.362,0.734-0.35,0.7-0.766,1.406c-0.026,0.043-0.455,0.952-0.484,0.997 c0.034,0.027,0.077,0.061-0.001,0.001c-0.947,1.754-4.429,7.395-0.722,9.421c0.305,0.167,0.612,0.284,0.918,0.376 c0.054-0.26,0.148-0.512,0.318-0.734c0.031-0.041,0.056-0.085,0.077-0.126c0.009-0.031,0.019-0.062,0.027-0.093 c0.049-0.197,0.089-0.403,0.159-0.594c0.061-0.167,0.124-0.541,0.135-0.437c0.003-0.107,0.008-0.214,0.011-0.321 c0.008-0.271,0.067-0.529,0.151-0.775c-0.142-0.073-0.273-0.175-0.382-0.332c-0.471-0.68,1.115-3.833,1.542-4.779l1.918-4.23 c0,0,6.1-10.421,7.611-12.574")
clipPath#clip-s2
path(id="s2" fill-rule="evenodd" clip-rule="evenodd" d="M119.219,39.047c-0.744-0.672-1.25-1.076-1.812-1.67 c-0.569-0.511-2.704-2.612-2.826-4.269c-0.09-1.23,0.529-3.548,2.046-4.803c2.247-1.859,4.566-2.193,4.566-2.193 c0.523-0.531-1.396-2.936-3.384-2.884c-3.525,0.092-7.132,5.759-7.437,8.341c-0.028,0.775-0.087,1.427-0.022,2.462l0.223,1.558 c0.57,3.119,3.174,4.712,4.37,5.686c0.188,0.158,0.546,0.391,0.546,0.391c0.393,0.275,0.453,0.378,0.949,0.725 c0.378,0.264,0.121,0.088,1.061,0.745c0.023-0.049-0.019,0.041,0,0c0.677,0.388,1.657,1.693,1.378,2.931 c-0.441,1.957-2.166,2.938-2.921,1.848c-0.067-0.097-0.089-0.248-0.082-0.432l-0.883-0.103l0,0l-1.148-0.192 c0,0-0.606-0.021-0.883-0.128c-0.253,1.563,0.032,3.044,1.582,3.891c2.15,1.175,4.428,0.373,5.476-0.788 C125.036,44.601,120.734,40.625,119.219,39.047")
clipPath#clip-n2
path(id="n2" fill-rule="evenodd" clip-rule="evenodd" d="M90.809,46.061c-0.021,0.578-0.015,1.01,0.032,1.194 c0.357,1.378,1.677,1.516,3.169,0.987c0.525-0.342,0.224-9.487,6.662-16.397c0,0-1.727,8.532-0.419,14.342 c0.249,1.107,1.29,3.338,2.485,3.438c3.101,0.262,7.4-12.967,7.835-14.036c0.005,0.025,0,0,0,0l0,0c0,0,0.609-1.99,1.017-3.209 c0.039-0.117,0.072-0.219,0.113-0.333c0-0.172-0.095-0.233-0.145-0.346c-0.324-0.185-0.527-0.263-0.897-0.303 c-0.09,0.033,0.092-0.023,0,0c-0.006,0.03-0.286,0.144-0.289,0.171c-0.875,1.016-5.991,11.449-6.454,12.158 c-1.884-1.099,1.884-15.964-1.204-16.959c-2.119-0.682-6.135,6.037-7.236,7.624")
clipPath#clip-n1
path(id="n1" d="M95.477,34.393c0.216-1.092,1.792-8.269,1.568-9.555c-0.16-0.918-2.116-1.304-3.329-1.001 c-0.412,0.103-0.659,1.501-1.028,3.296l-1.109,10.065c0.036-0.067,0.016-0.029,0,0.002c0,0.499-1.003,9.029-0.737,10.056 c0.357,1.378,1.677,1.516,3.169,0.987c0.259-0.168,0.443-2.477,0.818-5.617C94.939,41.582,95.465,35.461,95.477,34.393")
clipPath#clip-e22
path(id="e22" fill-rule="evenodd" clip-rule="evenodd" d="M91.883,36.613c2.188-3.794,3.219-8.283,4.63-12.426 c-0.7-0.427-1.932-0.567-2.797-0.351c-0.789,0.198-0.968,5.138-2.581,8.551c-0.617,1.305-7.577,14.33-12.408,12.929 c-1.316-0.382-3.152-1.22-2.669-5.444l0,0l0.471-3.951c0,0-0.002,0.016,0,0c0.228-1.816,0.633-3.287,1.138-4.475l-3.693-0.865l0,0 c-1.197,2.795-1.619,5.541-1.703,6.215c-0.099,0.039,0,0,0,0c0,0.022,0,0,0,0l-0.3,3.807l0,0c0.007,3.307,1.169,9.51,7.49,8.691 c5.383-0.698,10.624-9.173,12.119-12.097")
clipPath#clip-e21
path(id="e21" fill-rule="evenodd" clip-rule="evenodd" d="M72.271,36.796c-0.672,0.263-3.067,0.249-3.067,0.249 c-0.127,0.644-0.296,2.625,0.469,3.245c0.656,0.532,2.299,0.312,2.299,0.312c0,0.098-0.002-0.103,0,0 c0.13-0.021,1.833-0.269,1.967-0.291c1.312-0.219,1.312-0.219,2.12-0.44c0.012-0.25-0.032,0.279,0,0c0,0,3.674-0.875,7.433-3.559 c2.932-2.094,5.538-6.945,3.665-9.945c-0.574-0.921-2.951-3.223-6.596-2.355c-3.524,0.839-5.592,4.041-6.787,7.05l1.775,0.516 l1.873,0.491c1.761-4.852,5.135-5.488,6.227-4.393c1.261,1.264,0.188,3.665-1.884,5.548c-2.151,1.954-4.605,2.515-5.234,2.696")
clipPath#clip-x37
path(id="_x37_" fill-rule="evenodd" clip-rule="evenodd" d="M74.932,26.52c-0.421-1.557-0.534-2.469-1.791-2.683 c-6.186,0.449-11.825,1.014-18.181,0c-0.155,0.719,0.19,2.69,1.139,3.321c3.686,0.942,8.018,0.76,11.358,0.535 c-2.517,3.205-5.148,7.211-6.735,11.5c-2.198,5.941-3.51,15.462-0.285,20.851c0.653,1.093,2.338,1.448,4.117,0 c0.001-0.105-0.805-1.595-0.744-2.259c0.279,0.344,0.406,1.268,1.005,1.507c-0.803-3.111-4.254-9.878,1.633-22.342 C68.807,31.954,74.932,26.52,74.932,26.52z")
clipPath#clip-e12
path(id="e12" fill-rule="evenodd" clip-rule="nonezero" d="M41.682,35.038c1.047-3.455,3.273-7.138,6.383-8.052 c1.194-0.351,1.949,0.124,2.308,0.748c0.04-0.025,0.073-0.058,0.115-0.081c0.81-0.44,1.543-0.763,2.491-0.8 c0.278-0.011,0.543,0.044,0.794,0.13c-0.006-0.031-0.007-0.061-0.014-0.092c-0.612-2.927-4.523-3.648-6.962-2.756 c-5.66,1.706-8.063,7.09-9.96,12.801l-0.159,3.128c-0.174,1.466,0.541,9.335,7.084,9.335c7.956,0,15.234-11.058,15.232-17.797 c0-1.183-1.832-2.094-2.984-2.094c0,6.438-7.542,18.571-13.19,15.598c-1.989-1.047-2.384-5.24-1.832-6.281")
clipPath#clip-e11
path(id="e11" fill-rule="evenodd" clip-rule="nonezero" d="M53.76,26.891c-0.612-2.927-4.523-3.648-6.962-2.756 c-2.549,0.768-4.433,2.286-5.912,4.24h4.75c0.735-0.639,1.545-1.129,2.43-1.389c1.884-0.554,2.689,0.948,2.546,1.849 c-0.339,2.135-2.612,3.561-8.763,6.133l-5.007,1.959c-0.001,0.003-0.002,0.005-0.003,0.008c-1.513,0.656-2.553,1.01-4.011,1.721 l-3.555,1.836c-6.825,3.686-14.471,9.156-14.517,15.111c0.781-0.675,1.832-1.104,3.162-1.104c0.25,0,0.488,0.02,0.719,0.049 c0.753-3.709,10.044-10.235,12.516-11.821c0.043-0.011,0.051-0.057,0.097-0.065c0.026,0.007,0.033,0.033,0.065,0.033 c0.074,0.088,0.143,0.213,0.208,0.353c0.481-0.151,1.015-0.236,1.603-0.236c0.884,0,1.642,0.193,2.284,0.517 c-0.397-1.352-0.859-2.27-0.888-2.348c0.525-0.415,1.55-0.694,2.157-0.918c-0.001,0.006-0.001,0.014-0.001,0.021 c0.113-0.055,0.236-0.097,0.367-0.129c0.049-0.022,0.091-0.054,0.142-0.072c0.834-0.294,1.67-0.548,2.52-0.743 c0.16-0.066,0.333-0.108,0.515-0.127c0.061-0.024,0.134-0.032,0.201-0.049c0.183-0.072,0.372-0.121,0.565-0.15 c0.039-0.011,0.073-0.029,0.116-0.034C52.74,34.284,54.612,30.968,53.76,26.891z M21.207,50.082 c2.677-3.175,6.333-5.371,9.815-7.742c0.066,0.009,0.063,0.087,0.129,0.097C27.642,44.79,24.239,47.251,21.207,50.082z")
clipPath#clip-s1
path(id="s1" fill-rule="evenodd" clip-rule="evenodd" d="M30.537,41.618c0.347,0.364,0.617,0.782,0.863,1.217 c0.466,0.825,0.822,2.968,0.65,3.98c-0.709,4.17-4.657,6.543-8.792,8.532c-1.117,0.537-4.337,1.484-4.642,0.015 c-0.1-0.484,0.031-1.048,0.319-1.66c-1.012-0.337-2.051-0.583-3.064-0.921c-0.167-0.026-0.337-0.05-0.501-0.078 c-0.655,1.619-0.833,3.291-0.318,4.992c1.191,3.934,11.059,3.21,18.778-4.912c4.383-4.611,0.771-11.579,0.691-11.8l-1.695-2.325 C24.077,28.144,6.739,29.303,6.739,20.663c-0.349-4.746,9.009-9.246,10.714-9.826c-0.176-0.328-7.399,2.289-10.958,6.755L6.379,17.5 c6.082-7.864,18.588-10.125,29.04-9.737c8.836,0.328,12.944,3.675,13.961,5.579c0,0,0.266-0.143,0.454-0.374 c0.467-3.211,0.048-4.188-2.338-6.543c-6.979-5.932-20.292-5.092-32.628-0.821C0.653,10.713,0.575,18.268,0.631,19.632 c0.188,4.578,1.477,8.423,11.148,12.318c7.66,3.085,13.394,4.901,16.139,7.098c0.201,0.133,0.392,0.277,0.564,0.437 c0.3,0.215,0.922,0.82,1.174,1.078")
path.logo-path.y(id="cy" clip-path="url(#clip-y)" fill="none" stroke="#FFFFFF" stroke-width="5" stroke-miterlimit="10" d="M150.987,78.6 c3.099-1.2,6.699-7.199,8.898-12.998c2.2-5.799,0.9-25.996,0.9-36.194s-4.799,8.399-7.699,15.897s-4.099-9.198-4.099-16.697 s-5.099,9.698-7.599,16.497s-4.099,0-7.099-5.099c-0.633-1.076-0.335-2.678,0.441-4.456")
path.logo-path.k2(id="ck2" clip-path="url(#clip-k2)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M142.958,23.227 c0,0-1.291,0.569-3.169,3.282c-7.212,10.418-11.664,24.304-11.664,24.304l1.292-38.312")
path.logo-path.k1(id="ck1" clip-path="url(#clip-k1)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M128.387,20.87 c-3.658,5.982-14.393,23.747-14.393,26.235c0,0.105-0.005,1.325,0,1.423")
path.logo-path.s2(id="cs2" clip-path="url(#clip-s2)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M114,47.41 c0.124,2.674,1.893,2.395,1.893,2.395s4.099-0.3,4.099-4.599s-7.799-5.899-7.799-14.198c0-4.699,6.543-7.632,8.996-7.781")
path.logo-path.n2(id="cn2" clip-path="url(#clip-n2)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M111.767,31.71 c-3.924,6.647-7.318,15.995-8.972,15.995c-2.6,0,0.5-15.997-1.1-18.597c-1.402-2.278-7.641,13.258-9.163,17.135")
path.logo-path.n1(id="cn1" clip-path="url(#clip-n1)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M91.75,49.813l2.946-24.204l1.387-5.276 ")
path.logo-path.e22(id="ce22" clip-path="url(#clip-e22)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M95.403,23.227l-4.206,11.281 c0,0-6.999,12.698-13.498,12.698c-7.805,0-1.868-16.189-1.868-16.189")
path.logo-path.e21(id="ce21" clip-path="url(#clip-e21)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M75.378,32.234 c2.052-6.625,10.22-11.225,10.22-2.826s-17.997,9.198-17.997,9.198")
path.logo-path.x37(id="c7" clip-path="url(#clip-x37)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M64.452,61.583 C59.833,56.318,60.418,46.671,61,44c1.8-7.899,11.3-18.991,11.3-18.991s-2.6,0.1-5.599,0.6c-2.999,0.5-10.098-0.4-10.098-0.4 s0.365,3.062,0.305,5.891")
path.logo-path.e12(id="ce12" clip-path="url(#clip-e12)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M56.947,30.131 c-0.039,1.839-0.274,3.989-0.944,6.077c-1.7,5.299-14.897,19.097-16.997,6.599c-1.46-8.516,2.785-14.37,5.411-16.723")
path.logo-path.e11(id="ce11" clip-path="url(#clip-e11)" fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" d="M42.562,27.938 c1.69-1.514,3.367-2.519,4.542-3.028c2.999-1.3,12.498,4.199-7.899,12.798c-15.474,6.468-20.789,12.204-22.109,15.951")
path.logo-path.s1(id="cs1" clip-path="url(#clip-s1)" fill="none" stroke="#FFFFFF" stroke-width="7" stroke-miterlimit="10" d="M17.538,52.644 c-1.205,2.356-0.459,5.064,0.371,5.46c2.1,1,15.497-2,15.497-10.998c0-16.297-29.719-14.382-29.719-26.98 c0-4.947,4.75-9.062,12.938-12.062C24.89,5.034,35.248,3.567,42.188,6c3.027,1.061,6.588,5.282,7.815,7.5")
logoW = 400px
logoH = 195px
strokeLine = 140
t = .4s
delay = 0.3s
body
background-color #ff7700
.logo
position absolute
top 50%
left 50%
width logoW
height logoH
margin-left (@width/(-2))
margin-top (@height/(-2))
.logo-path
stroke #fff
stroke-dasharray strokeLine, strokeLine
stroke-dashoffset -(strokeLine)
animation-duration t
animation-fill-mode forwards
animation-timing-function linear
fill transparent
animation-name logo-animation
&.s1
stroke-dashoffset -130px
animation-delay delay
&.e11
animation-delay t * 1 + delay
stroke-dashoffset -60px
&.e12
animation-delay t * 2 + delay
stroke-dashoffset -50px
&.x37
animation-delay t * 3 + delay
stroke-dashoffset -65px
&.e21
animation-delay t * 4 + delay
stroke-dashoffset -40px
&.e22
animation-delay t * 5 + delay
stroke-dashoffset -50px
&.n1
animation-delay t * 6 + delay
stroke-dashoffset -30px
&.n2
animation-delay t * 7 + delay
stroke-dashoffset -60px
&.s2
animation-delay t * 8 + delay
stroke-dashoffset -40px
&.k1
animation-delay t * 9 + delay
stroke-dashoffset -35px
&.k2
animation-delay t * 10 + delay
stroke-dashoffset -75px
&.y
animation-delay t * 11 + delay
stroke-dashoffset -140px
animation-duration t * 3
@keyframes logo-animation
100%
stroke-dashoffset 0
Also see: Tab Triggers