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.
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:drawsvg="http://www.drawsvg.org" width="100%" height="auto" viewBox="174.90512084960938 290.01397705078125 1091.3916015625 1014.236572265625" preserveAspectRatio="xMinYMin meet">
<defs id="svgEditorDefs">
<marker id="square8" markerHeight="8" markerUnits="strokeWidth" markerWidth="8" orient="auto" refX="0" refY="0" viewBox="-5 -5 10 10">
<rect height="10" style="fill:black;stroke:none;" width="10" x="-5" y="-5" />
</marker>
<marker id="arrow20-16-left" markerHeight="16" markerUnits="strokeWidth" markerWidth="20" orient="auto" refX="3" refY="0" viewBox="0 -5 20 20">
<path d="M 15 -5 L 0 0 L 15 5 z" fill="black" />
</marker>
<linearGradient gradientUnits="objectBoundingBox" id="lgrd2-black-white" spreadMethod="pad" x1="0%" x2="100%" y1="0%" y2="100%">
<stop offset="0%" stop-color="black" />
<stop offset="100%" stop-color="white" />
</linearGradient>
</defs>
<defs id="drawsvgConstraints">
<defs id="constraint1" drawsvg:constraint="{'type':'connectPoints', 'ids':['e2_path','e1_path'], 'priority':0, 'index-p1':8, 'index-p2':4}" />
<defs id="constraint2" drawsvg:constraint="{'type':'connectPoints', 'ids':['e9_path','e7_path'], 'priority':0, 'index-p1':1, 'index-p2':6}" />
<defs id="constraint4" drawsvg:constraint="{'type':'connectPoints', 'ids':['e8_path','e12_path'], 'priority':0, 'index-p1':4, 'index-p2':5}" />
</defs>
<rect id="svgEditorBackground" x="0" y="0" width="2190" height="1420" style="fill: none; stroke: none;" />
<g id="layer2">
<circle id="e4_circle" cx="926.3961181640625" cy="937.2868844069527" style="fill:gray;stroke:none;stroke-width:1px;" r="29.820000" transform="matrix(0.62188 0 0 0.62188 363.64 187.629)" />
<path d="M594.6871680383538,858.1088801894867l-301.46,1.6500000000000001l456.31,415.13l502.44,-8.24l-359.12,-322.88" style="fill:rgb(156,130,69);stroke:black;stroke-width:1px;fill-opacity:0.65;" id="e14_path" />
<path d="M717.6761680383538,1175.0748801894927l-32.761,-160.027l257.816,-4.381l36.407,152.438l-261.461,11.34Z" style="fill:mistyrose;stroke:black;stroke-width:2px;stroke-dashoffset:0;vector-effect:none;" id="e3_path" />
<rect x="-435.653000" y="71.123600" style="fill:lightskyblue;stroke:black;stroke-width:1px;" id="e1_rectangle" width="426.534000" height="319.900000" transform="matrix(0.732294 -0.00285993 0.00285993 0.732294 535.963 271.825)" />
</g>
<path d="M613.2470460383538,645.8785751894868c-1.1,-55.96,27.940061,-64.699604,84.900013,-74.000054c27.080122,-58.759634,69.080122,-78.759634,89.140109,-92.779641c26.94,-10.98,40.94,-15.98,67.94,-13.98c49,5,82,30,104.32,49.16c20.92,22.78,68.14,100.12,82.794599,168.86292c-47.114599,36.97708,-93.114599,69.97708,-144.114599,80.97708c-100,22,-158,11,-177,3c-65,-26,-97.480732,-63.580884,-107.180335,-117.801128Z" style="fill:white;stroke:black;stroke-width:1.6px;" id="e9_path" drawsvg:constraints="['constraint2']" />
<path d="M1042.0761680383546,682.7998801894868q37.044,99.831,42.695,222.892q-75.344,41.439,-174.546,52.113l-21.347,-11.929q18.836,-5.651,30.138,-17.58q-18.208,23.859,-128.084,35.16q-43.229635,4.014296,-94.714931,-27.15266q-25.988999,-22.510905,-22.603244,-45.000018q3.7675400000000003,-25.268931,33.0451,-31.439147q58.617775,-9.685817,106.227744,-26.11868q33.116777,-10.159723,57.42585,-28.063113q26.419463,-15.855082,42.688932,-26.381245q15.262206,-12.52674,19.837689,-26.728898q25.90727,-8.352198,77.844687,-45.284522Z" style="fill:gray;stroke:black;stroke-width:1.6px;" id="e2_path" drawsvg:constraints="['constraint1']" />
<path d="M646.9371680383538,800.3988801894867q18.39,-53.96,72.959361,-74.190639q52.226909,-11.510018,45.020656,58.250639q-2.113126,41.718169,-24.580035,67.23506q3.778135,2.008739,-33.67805699999915,8.170115000000113q-19.371247,4.958147,-24.164434000000853,12.884836999999887" style="fill:gray;stroke:black;stroke-width:1.6px;" id="e1_path" drawsvg:constraints="['constraint1']" />
<path d="M740.0611680383538,852.8778801894867c7.358,0,37.094,-8.89,46.598,-11.036l26.671,-8.278l14.102,-5.212l13.489,-5.824l15.941,-7.971l12.263,-8.584l11.649000000000001,-6.744l16.861,-10.729l12.875,-7.665l10.729,-9.197l1.226,-6.744l1.226,-3.372l5.518,-6.438l-10.423,3.6790000000000003l-9.197,2.453l-10.423,3.066l-12.263,2.453l-12.263,2.453l-11.036,1.226l-15.941,3.066l-12.876,1.226l-7.358,0.6130000000000001l-11.036,0.6130000000000001l-8.584,1.226l-9.81,-0.6130000000000001l-8.89,0.6130000000000001l-11.956,-0.6130000000000001l-11.036,0l-0.6130000000000001,4.905l-1.226,12.263l-1.226,7.971l-1.839,9.197l-3.6790000000000003,11.649000000000001l-4.292,10.116l-5.518,10.117l-5.212,6.744ZM817.0081680383538,811.4918801894868" style="fill:gray;stroke:none;stroke-width:1px;" id="e5_path" />
<ellipse id="e6_ellipse" cx="535.8952260451235" cy="665.8368200267698" style="fill:black;stroke:black;stroke-width:1px;" rx="22.786000" ry="14.516400" transform="matrix(0.744148 -0.00371336 0.688438 0.825596 -191.081 89.9936)" />
<path d="M685.4991680383538,574.0018801894868q3.6790000000000003,16.554,16.554866,21.459378q15.941757,8.88995,25.751143,-7.357965q13.010522,-22.802152,10.775521,-34.244724q-1.154185,-8.919009,-10.895756,-11.166639q-10.137386,0.2763110000000003,-18.698832,9.257319q-5.185941,9.29163,-10.839050999999886,19.929272000000115q-4.121874,0.7176800000000007,-12.034646000000114,2.428046999999886" style="fill:gray;stroke:black;stroke-width:1.6px;" id="e7_path" drawsvg:constraints="['constraint2']" />
<ellipse id="e10_ellipse" cx="704.2782305060005" cy="601.9905538208421" style="fill: gray; stroke: black;stroke-width:1.62px;" rx="30.660000" ry="38.010000" transform="matrix(1.10482 -0.22 0.22 1.10482 -118.307 93)" />
<ellipse id="e2_ellipse" cx="323.991248666885" cy="597.8413772055885" style="fill:black;stroke:none;stroke-width:0.49px;" rx="4.782670" ry="2.564960" transform="matrix(0.14372 -1.48366 1.64433 0.112604 -312.894 988.375)" />
<ellipse id="e1_ellipse" cx="304.52024036610374" cy="635.3383864829323" style="fill:black;stroke:none;stroke-width:0.49px;" rx="4.782670" ry="2.564960" transform="matrix(0.14372 -1.48366 1.64433 0.112604 -312.894 988.375)" />
<path d="M768.6635920383538,594.7841141894868q4.907496,4.906269,17.17,0" style="fill:none;stroke:black;stroke-width:1.6px;" id="e11_path" />
<path d="M768.6635920383538,618.0829061894868q7.36,4.906269,13.491244,0" style="fill:none;stroke:black;stroke-width:1.6px;" id="e4_path" />
<path d="M756.4071680383538,711.2788801894868q12.27,-23.3,30.66,-12.26" style="fill:none;stroke:black;stroke-width:1.6px;" id="e13_path" />
<path d="M682.4871680383538,869.4888801894867l-32.09,-62.95q-7.41,-18.51,-23.45,-17.28q-53.070089,-3.902772,-62.327975,-3.706911l-3.08054,6.175074q64.797177,2.748455,73.434086,7.406586q43.028453,72.206999,42.41243,82.072795Z" style="stroke: black; stroke-width: 1px; fill-opacity: 0.83;fill:rgb(255,192,203);" id="e8_path" drawsvg:constraints="['constraint4']" />
<path d="M674.7241150383538,882.7374461894867" style="fill:none;stroke:black;" stroke-width="0.6171138597571331" id="e10_path" />
<path d="M677.8098510383538,876.5659701894867l-41.347114,-76.521659l-9.256772,-3.7031140000000002l-25.918797,-1.851342l-22.833,-1.234658q-22.832723,-2.126456,-16.91551500000017,-1.528154q48.134847,93.185064,57.02831200000017,113.225495q32.08952,4.937139,57.391429,8.022367q-7.405568,-22.833505,5.553913,-41.347073Z" style="fill:#000000;stroke:black;stroke-width:1px;fill-opacity:1;stroke-opacity:0.27;" id="e12_path" drawsvg:constraints="['constraint4']" />
<circle id="e13_circle" cx="842.361572265625" cy="992.8066719227457" style="fill:black;stroke:white;stroke-width:1px;" r="12.340000" transform="matrix(0.56 0 0 0.56 119.242 256.421)" />
<path d="M1084.281168038356,905.8838801894867q7.413,56.009,0.8240000000000001,118.608q-43.655,28.004,-86.485,14.002l-89.78,-80.719q95.545,-8.237,175.441,-51.891" style="fill:white;stroke:black;stroke-width:1px;fill-opacity:0.65;" id="e16_path" />
<path d="M1085.1051680383562,1023.6678801894867q0.8240000000000001,9.884,-10.708,79.072l-2.471,2.471l-73.306,-66.717q46.949,13.179,85.661,-14.826Z" style="fill:gray;stroke:black;stroke-width:1px;fill-opacity:1;" id="e18_path" />
<line id="e24_line" x1="715.8272094726562" y1="1167.0331523046007" x2="977.919189453125" y2="1155.8678691014757" style="stroke:black;fill:white;stroke-width:2px;fill-opacity:0.65;" />
<path d="M717.2871680383538,1174.0528801894927l50.091,44.427l260.88,-8.123l-48.885,-47.635Z" style="fill:silver;stroke:black;stroke-width:1px;" id="e17_path" />
<symbol xmlns="http://www.w3.org/2000/svg" width="52.769300" height="56.291400" id="f023" preserveAspectRatio="xMidYMid meet" viewBox="0 0 448 512">
<path id="lock" d="M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" />
</symbol>
<g transform="translate(808.7551879882812, 1058.0258280858507)">
<use xlink:href="#f023" id="e1_icon" style="fill:indianred;stroke:black;stroke-width:5pt;" />
</g>
<path d="M742.2311680383538,1171.6888801894927q34.365,-36.076,114.967,-47.04q77.778,-15.44,84.172,-110.962" style="fill:none;stroke:black;stroke-width:0px;" id="chain1" />
<text font-size="36" font-family="Times New Roman" fill="indianred">
<textPath id="c1" xlink:href="#chain1">
<tspan dx="0"> ᴑ </tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ </tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<animate dur="5s" repeatCount="indefinite" attributeName="startOffset" values="-60%;100%" />
</textPath>
</text>
<path d="M972.2001680383538,1138.9358801894912q-66.522,-13.113,-87.31,-51.812q-31.023,-65.563,-149.036,-72.279" style="fill:none;stroke:black;stroke-width:0px;" id="chain2" />
<text font-size="36" font-family="Times New Roman" fill="indianred">
<textPath id="c2" xlink:href="#chain2">
<tspan dx="0"> ᴑ </tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ </tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<animate dur="10s" repeatCount="indefinite" attributeName="startOffset" values="-90%;100%" />
</textPath>
</text>
<path d="M706.4301680383538,1118.7868801894904s69.721,-31.662,91.788,-105.221" style="fill:none;stroke:black;stroke-width:0px;" id="chain3" />
<text font-size="36" font-family="Times New Roman" fill="indianred">
<textPath id="c3" xlink:href="#chain3">
<tspan dx="0"> ᴑ </tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ </tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<tspan dx="-15"> -</tspan>
<tspan dx="-15"> ᴑ</tspan>
<animate dur="3s" repeatCount="indefinite" attributeName="startOffset" values="1%;18%" />
</textPath>
</text>
<path transform="translate(-110, 0)" d="M872.94367,413.60496l599.97114-1.428" style="fill:none;stroke:black;stroke-width:0px;" id="payment" />
<text class = "coin" font-size="27" font-family="serif" fill="#585858">
<textPath id="pnd" href="#payment">
Can I pay in Pandacoin (PND)?
<animate dur="18s" repeatCount="indefinite" attributeName="startOffset" values="100%;100%;100%;1%;0%;" />
</textPath>
</text>
<g id="container">
<circle id="sunBeam" r="40.000000" cy="161.426000" cx="-306.921000" transform="matrix(0.732294 -0.00285993 0.00285993 0.732294 535.963 271.825)">
<animate attributeName="opacity" from="1" to="0" dur="3s" repeatCount="indefinite" />
<animate attributeName="r" attributeType="XML" from="45" to="100" begin="0s" dur="3s" fill="remove" repeatCount="indefinite" />
</circle>
<circle id="sun" r="40.000000" cy="161.426000" cx="-306.921000" transform="matrix(0.732294 -0.00285993 0.00285993 0.732294 535.963 271.825)" />
</g>
<path d="M-436.244287,390.990055l-7.178,15.38l431.324,1.025l3.076-16.405" style="fill:burlywood;stroke:black;stroke-width:1px;" id="e15_path" transform="matrix(0.732294 -0.00285993 0.00285993 0.732294 535.963 271.825)" />
<path d="M-435.903287,71.086055l5.81-10.253l427.564,0.342l-6.152,9.57Z" style="fill:burlywood;stroke:black;stroke-width:1px;" id="e19_path" transform="matrix(0.732294 -0.00285993 0.00285993 0.732294 535.963 271.825)" />
<path d="M-453.311287,214.646055l-1.367-168.838l57.42-0.684q47.848,90.229-25.976,185.927q54.001,88.177,26.66,199.597l-57.419-0.683Z" style="fill:salmon;stroke:black;stroke-width:0.5;" id="e20_path" transform="matrix(0.732294 -0.00285993 0.00285993 0.732294 535.963 271.825)" />
<path d="M-453.420287,230.177055l29.906,0.684l4.614,7.519l-34.52-0.854Z" style="fill:mediumaquamarine;stroke:black;stroke-width:0.6;" id="e23_path" transform="matrix(0.732294 -0.00285993 0.00285993 0.732294 535.963 271.825)" />
<path d="M2823.844778,215.32961l-1.367-168.838l57.42-0.684q47.848,90.229-25.976,185.927q54.001,88.177,26.66,199.597l-57.419-0.683Z" style="fill:salmon;stroke:black;stroke-width:0.5;" id="e21_path" transform="matrix(-0.732294 0.00285993 0.00285993 0.732294 2601.27 263.759)" />
<path d="M-3.308397,230.01328l-30.077,1.709l-5.127,7.86l35.203-2.051Z" style="fill:mediumaquamarine;stroke:black;stroke-width:0.6;" id="e24_path" transform="matrix(0.732294 -0.00285993 0.00285993 0.732294 535.963 271.825)" />
<path d="M828.102,1105.626l12.935,0.1l-2.515-7.725a5.555,5.555,0,1,0,-7.545,0Z" style="fill:mintcream;stroke:black;stroke-width:1px;" id="e22_path" />
<text x="300" y="1250" class = "references">Reference: We Bare Bears</text>
<style>
.references { font: italic 15px serif; fill: #585858; }
</style>
</svg>
<style>
#container {
width: 50%;
margin: 0 auto;
}
#sun {
fill: #ffe160;
}
#sunBeam {
fill: #ffe160;
stroke: #fbeC5d;
stroke-width: 3;
stroke-linecap: round;
}
#lock{
animation: animateLock 2s infinite;
}
@keyframes animateLock {
0% {
transform: scale(.93);
}
50% {
transform: scale(1);
}
100% {
transform: scale(.93);
}
}
</style>
Also see: Tab Triggers