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=cont ><svg viewbox="0 0 400 400">
<path fill="#000">
<animate
attributeName="d"
dur="6000ms"
repeatCount="indefinite"
values="
M 68,0
52,15.899 0,47 12,212 47,251.793 120,207 110,325.793 78,328.793 57,296.793 10,318.793
23.239,408.725 43.143,421.587 173,390 188,353 179,151 177.959,96.168 122,87 111,149 82,146 84,88 177,113 181.843,28 117,0,0
Z;M 68,0
52,15.899 0,47 12,212 47,251.793 120,207 110,325.793 78,328.793 57,296.793 10,318.793
23.239,408.725 43.143,421.587 173,390 188,353 179,151 177.959,96.168 122,87 111,149 82,146 84,88 177,113 181.843,28 117,0,0
Z;
M 78,0
15,31.587 0,68.587 25,229.587 7,247.587 6,324.587 66,334.587 77,272.587 106,275.587 104,333.587
6.959,307.755 6.157,393.587 71,421.587 136,405.688 188,374.587 176,209.587 68,214.587 72,137.587 107,124.587 107.535,227.573
156.882,222.671 164.761,12.862 144.857,0,0
Z;M 78,0
15,31.587 0,68.587 25,229.587 7,247.587 6,324.587 66,334.587 77,272.587 106,275.587 104,333.587
6.959,307.755 6.157,393.587 71,421.587 136,405.688 188,374.587 176,209.587 68,214.587 72,137.587 107,124.587 107.535,227.573
156.882,222.671 164.761,12.862 144.857,0,0
Z;
M 78,0 114.167,0 24.667,18.725 0,42.725 0,112.725 14.667,126.725 73.333,109.392 95.333,107.392
107.333,126.725 74,260.725 57.333,318.725 49.333,364.726 54,384.726 95.333,402.059 122,398.059 147.333,259.392 163.333,187.392
168.934,166.671 174,142.725 185.333,80.059 198,18.725 190.667,4.725 163.333,0;M 78,0 114.167,0 24.667,18.725 0,42.725 0,112.725 14.667,126.725 73.333,109.392 95.333,107.392
107.333,126.725 74,260.725 57.333,318.725 49.333,364.726 54,384.726 95.333,402.059 122,398.059 147.333,259.392 163.333,187.392
168.934,166.671 174,142.725 185.333,80.059 198,18.725 190.667,4.725 163.333,0 ;
M 100,5 144.857,0 15,31.587 0,68.587 9,270.587 10.041,325.418 66,334.587 77,272.587 106,275.587
104,333.587 11,308.587 6.157,393.587 71,421.587 136,405.688 188,374.587 176,209.587 139,187.587 68,214.587 72,137.587
107,124.587 128,156.587 175,134.587 164.761,12.862;M 100,5 144.857,0 15,31.587 0,68.587 9,270.587 10.041,325.418 66,334.587 77,272.587 106,275.587
104,333.587 11,308.587 6.157,393.587 71,421.587 136,405.688 188,374.587 176,209.587 139,187.587 68,214.587 72,137.587
107,124.587 128,156.587 175,134.587 164.761,12.862;
M 100,0 28.843,20 0,34 0,202 11.843,279 27.843,292 70.843,277 99.843,280 97.843,338 50.843,337 0,398
55.843,438 105.843,431 162.843,378 179.843,294 173.843,214 135.843,187 86.921,195 67.843,161 72.843,125 165.843,109 179.843,31
156.843,0;M 100,0 28.843,20 0,34 0,202 11.843,279 27.843,292 70.843,277 99.843,280 97.843,338 50.843,337 0,398
55.843,438 105.843,431 162.843,378 179.843,294 173.843,214 135.843,187 86.921,195 67.843,161 72.843,125 165.843,109 179.843,31
156.843,0;
M 100,0 95.843,11 103.843,223 86.843,232 73.182,228.376 67.986,155.124 68.997,23.132 47.998,23.132
1.99,42.63 9.489,221.121 0,305.118 41.998,323.117 101.995,311.117 103.843,332 107.843,363 105.843,394 109.843,406 127.843,406
160.843,399.101 173.843,391 173.843,357 173.843,18 165.843,0;M 100,0 95.843,11 103.843,223 86.843,232 73.182,228.376 67.986,155.124 68.997,23.132 47.998,23.132
1.99,42.63 9.489,221.121 0,305.118 41.998,323.117 101.995,311.117 103.843,332 107.843,363 105.843,394 109.843,406 127.843,406
160.843,399.101 173.843,391 173.843,357 173.843,18 165.843,0;
M 100,0 93.853,0 3.216,55.855 41.341,131 106.008,117.667 104.674,156.333 47.341,181 26.674,203
35.341,268.333 96.008,267 95.341,314.333 78.674,333.667 31.508,328.5 0,391.5 101.008,423 177.508,368 172.508,236 142.508,226.5
136.508,208 159.008,197 172.508,181.5 177.508,36.5 152.508,11 ;M 100,0 93.853,0 3.216,55.855 41.341,131 106.008,117.667 104.674,156.333 47.341,181 26.674,203
35.341,268.333 96.008,267 95.341,314.333 78.674,333.667 31.508,328.5 0,391.5 101.008,423 177.508,368 172.508,236 142.508,226.5
136.508,208 159.008,197 172.508,181.5 177.508,36.5 152.508,11;
M 100,0 44,16.587 1.204,55.672 0,158.587 0,200.587 13.676,209.587 53,199.587 69,139.587 100,139.587
94,191.587 39,292.587 0,362.587 34,429.587 108,405.688 163,405.688 175,373.587 153,332.587 115.5,337.587 96,331.587
164.51,210.793 164.51,119.587 151,6.587 108,0;M 100,0 44,16.587 1.204,55.672 0,158.587 0,200.587 13.676,209.587 53,199.587 69,139.587 100,139.587
94,191.587 39,292.587 0,362.587 34,429.587 108,405.688 163,405.688 175,373.587 153,332.587 115.5,337.587 96,331.587
164.51,210.793 164.51,119.587 151,6.587 108,0;
M 100,0 73.058,122.499 74.809,136.189 73.319,189.189 70.319,344.189 23.319,359.189 57.319,426.189
131.319,402.29 186.319,402.29 198.319,370.189 176.319,329.189 138.819,334.189 132.389,332.21 130.335,308.766 139.319,116.189
145.319,3.189 104.991,0 62.309,27.189 0,62.189 10.809,86.189 36.809,128.189 62.309,121.189 73.058,122.499;M 100,0 73.058,122.499 74.809,136.189 73.319,189.189 70.319,344.189 23.319,359.189 57.319,426.189
131.319,402.29 186.319,402.29 198.319,370.189 176.319,329.189 138.819,334.189 132.389,332.21 130.335,308.766 139.319,116.189
145.319,3.189 104.991,0 62.309,27.189 0,62.189 10.809,86.189 36.809,128.189 62.309,121.189 73.058,122.499;"
/>
</path>
</svg> </div>
* { box-sizing: border-box; }
.cont {
height: 100vh;
padding: 20vmin;
-webkit-filter: contrast(10);
background-color: white;
}
svg {
width: 100%;
height: 100%;
opacity: 0.9;
-webkit-filter: blur(3px);}
Also see: Tab Triggers