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.
<aside class="cookie-notice">
<div class="cookie-notice__inner">
<div>
<h2 class="cookie-notice__title">Have a cookie!</h2>
<p class="cookie-notice__content">We use cookies to make your experience on this website better. <a target="_blank" rel="noopener noreferrer" href="https://www.freepik.com/free-vector/kawaii-fast-food-cute-cookie-milk-illustration_5769140.htm#query=cookie%20milk&position=21&from_view=search&track=sph">Image by gstudioimagen</a> on Freepik.</p>
<div class="cookie-notice__actions">
<button class="cookie-notice__button">Accept</button>
<button class="cookie-notice__button">Decline</button>
</div>
</div>
<figure role="presentation" class="cookie-notice__graphic-container">
<span class="cookie-notice__shadow"></span>
<svg class="cookie-notice__graphic" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 223.233 228.464">
<path fill="#f8c256" d="M114.184 226.368c-.622 0-1.244-.005-1.868-.017a127.269 127.269 0 0 1-27.877-3.647c-9.71-2.387-18.838-5.863-27.13-10.33a104.407 104.407 0 0 1-16.216-10.97 102.99 102.99 0 0 1-14.132-14.159C5.82 162.03-2.39 128.457 4.454 95.155c6.781-33.002 27.068-60.212 55.661-74.658C73.201 13.661 86.757 6.58 102.414 5.703a98.493 98.493 0 0 1 7.822-.312c5.052 0 10.163.396 15.188 1.178l.188.03.18.062c4.151 1.447 8.552 2.631 12.81 3.776 8.73 2.35 17.76 4.78 25.617 9.668 4.319 2.876 8.905 6.291 13.687 10.186 4.473 3.645 9.13 7.72 13.844 12.112l.118.121a111.703 111.703 0 0 1 12.98 17.35 118.893 118.893 0 0 1 9.78 20.251c11.184 28.35 7.83 62.775-8.989 92.05-16.48 28.686-42.768 47.72-72.124 52.221a95.657 95.657 0 0 1-19.33 1.972" />
<path fill="#351f17" d="M110.238 3.295c-2.656 0-5.344.108-7.992.318-16.088.916-29.832 8.095-43.125 15.04C30.003 33.362 9.31 61.1 2.4 94.731c-6.971 33.935 1.4 68.15 22.969 93.878a104.943 104.943 0 0 0 14.39 14.413 106.635 106.635 0 0 0 16.53 11.18c8.473 4.568 17.765 8.107 27.65 10.536a129.378 129.378 0 0 0 28.335 3.706 98.242 98.242 0 0 0 21.664-1.995c29.947-4.626 56.737-24.023 73.517-53.232 17.124-29.806 20.534-64.893 9.123-93.86a120.915 120.915 0 0 0-9.941-20.571 113.778 113.778 0 0 0-13.222-17.676l-.114-.126-.123-.114c-4.748-4.426-9.44-8.53-13.948-12.204-4.835-3.938-9.475-7.392-13.795-10.27l-.054-.036-.055-.034c-8.121-5.054-17.303-7.524-26.181-9.914-4.22-1.134-8.584-2.309-12.664-3.73l-.359-.126-.376-.057c-5.132-.8-10.35-1.205-15.51-1.205m0 4.19c4.9 0 9.863.376 14.866 1.155 12.67 4.415 26.617 6.156 38.01 13.244 4.36 2.905 8.893 6.304 13.47 10.032 4.577 3.73 9.199 7.79 13.737 12.02a109.344 109.344 0 0 1 12.735 17.024 116.497 116.497 0 0 1 9.61 19.895c22.766 57.713-17.67 131.994-79.467 141.47a93.765 93.765 0 0 1-20.842 1.93 125.658 125.658 0 0 1-27.417-3.586c-9.168-2.253-18.206-5.597-26.634-10.14a102.182 102.182 0 0 1-15.88-10.742 100.606 100.606 0 0 1-13.844-13.871C-15.17 133.733 2.6 51.9 61.06 22.366c13.132-6.86 26.265-13.72 41.47-14.57a95.928 95.928 0 0 1 7.705-.31" />
<path fill="#361b11" d="M114.183 224.273c-.607 0-1.216-.006-1.827-.018a125.658 125.658 0 0 1-27.417-3.586c-9.168-2.253-18.206-5.597-26.634-10.14-.04-.023-.082-.044-.122-.066.04.022.082.043.122.066 8.428 4.543 17.466 7.887 26.634 10.14a125.658 125.658 0 0 0 27.417 3.586 93.696 93.696 0 0 0 1.827.018m41.74-8.66c25.405-11.34 45.221-34.015 55.467-60.276-10.246 26.26-30.062 48.936-55.467 60.275m62.139-85.66" />
<path fill="#6f4323" d="M24.073 102.475c-6.098 0-11.558-4.111-13.912-10.472-1.72-4.644-.956-9.822 2.093-14.202 3.072-4.414 7.796-7.049 12.635-7.049 3.037 0 6.005 1.068 8.584 3.09 6.28 4.929 7.449 15.27 2.5 22.131-2.98 4.132-7.316 6.502-11.9 6.502" />
<path fill="#351f17" d="M24.889 68.656c-5.524 0-10.891 2.972-14.355 7.948-3.447 4.952-4.3 10.83-2.339 16.127 2.663 7.192 8.895 11.84 15.878 11.84 5.265 0 10.222-2.687 13.6-7.372 5.576-7.731 4.217-19.416-2.907-25.006-2.952-2.313-6.367-3.537-9.877-3.537m0 4.19c2.428 0 4.936.8 7.29 2.646 5.578 4.375 6.16 13.62 2.095 19.256-2.767 3.837-6.516 5.632-10.201 5.632-4.946 0-9.775-3.235-11.947-9.104-3.228-8.717 4.288-18.43 12.763-18.43" />
<path fill="#5b3221" d="M24.1 100.368c-3.54 0-7.02-1.66-9.514-4.756a11.664 11.664 0 0 0 5.305 1.292c3.678 0 7.42-1.788 10.182-5.619 3.5-4.856 3.544-12.385-.076-17.174a13.122 13.122 0 0 1 2.154 1.358l.002.002.026.021c3.18 2.495 4.738 6.573 4.734 10.664-.003 3.081-.892 6.17-2.64 8.592a15.506 15.506 0 0 1-1.596 1.89l-.004.003c-.004.006-.01.01-.014.014l-.01.01-.007.007-.017.017c-2.512 2.498-5.54 3.679-8.524 3.679" />
<path fill="#2c1812" d="m32.642 96.672.007-.007c-.003.003-.004.006-.007.007m.017-.017c.004-.004.01-.008.014-.014l-.014.014m.018-.018a15.506 15.506 0 0 0 1.597-1.889c1.747-2.421 2.636-5.51 2.639-8.592-.003 3.081-.892 6.17-2.64 8.592a15.506 15.506 0 0 1-1.596 1.89m-.498-21.146-.026-.021.026.021m-.028-.023" />
<path fill="#6f4323" d="M119.854 33.855c-3.284 0-6.234-.548-8.528-1.584-7.382-3.335-11.552-13.066-9.11-21.248 2.388-8.003 9.208-8.928 14.131-8.928.947 0 1.919.034 2.903.09 6.45.354 20.884 3.695 24.328 11.758 1.114 2.608 1.51 6.808-2.938 12.001-4.653 5.435-14.037 7.91-20.785 7.91h-.001" />
<path fill="#351f17" d="M116.347 0c-3.223 0-13.027 0-16.137 10.423-2.776 9.292 1.824 19.95 10.253 23.757 2.564 1.157 5.81 1.77 9.39 1.77 10.347 0 18.694-4.34 22.38-8.643 5.146-6.01 4.62-11.034 3.271-14.188C141.811 4.473 127.511.54 119.366.092A54.423 54.423 0 0 0 116.347 0m0 4.19c.91 0 1.841.034 2.788.086 9.853.543 31.11 7.232 19.913 20.305-3.826 4.47-12.102 7.178-19.194 7.178-2.874 0-5.555-.446-7.666-1.398-6.76-3.054-10.02-11.85-7.964-18.74 1.84-6.16 6.558-7.43 12.123-7.43" />
<path fill="#5b3221" d="M119.854 31.759c-2.38 0-4.628-.306-6.528-.95a13.185 13.185 0 0 1-1.138-.448c-1.578-.714-2.958-1.749-4.132-2.992 1.814.556 3.911.82 6.124.82 7.09 0 15.36-2.706 19.186-7.174 4.75-5.546 3.65-9.939.066-13.206 6.823 3.083 11.744 8.171 6.751 15.315l-.001.001c-.25.356-.524.72-.823 1.086l-.001.001-.075.09-.001.002-.019.023s.001-.002 0 0l-.056.068-.004.004-.015.018c0 .002-.002.002-.004.004l-.016.02a1.287 1.287 0 0 1-.04.047l-.002.004-.016.017-.004.006a.141.141 0 0 0-.014.016l-.006.006-.014.016c0 .003-.004.004-.005.006-.005.008-.012.014-.019.022-3.826 4.47-12.102 7.178-19.194 7.178" />
<path fill="#2c1812" d="M113.326 30.808a13.185 13.185 0 0 0 0 0M139.068 24.56c0-.002.003-.003.004-.006-.002.003-.002.004-.005.006m.019-.022.006-.006-.006.006m.02-.022.004-.006-.004.006m.02-.023.002-.005c0 .001-.002.002-.002.005m.04-.05a.003.003 0 0 0 .002-.002c0 .001 0 .003-.002.003m.018-.022.004-.004c0 .002-.002.002-.004.004m.02-.022c0-.002.002-.003.003-.004l-.004.004m.06-.072c.001-.002 0 0 0 0m.019-.023.001-.001-.001.001m.076-.092.001-.001-.001.001m.824-1.087h.001-.001" />
<path fill="#6f4323" d="M155.49 180.425c-3.612 0-9.93-1.488-11.634-11.452-1-5.855.843-12.416 4.815-17.125 3.152-3.737 7.184-5.796 11.353-5.796 3.474 0 6.798 1.39 9.882 4.133 4.044 3.598 5.896 8.87 5.081 14.466-.852 5.84-4.435 10.766-9.583 13.176-3.686 1.724-7.022 2.598-9.914 2.598" />
<path fill="#351f17" d="M160.026 143.956c-4.799 0-9.399 2.323-12.958 6.541-4.357 5.168-6.38 12.383-5.277 18.83 1.435 8.385 6.427 13.195 13.699 13.195 3.201 0 6.836-.942 10.802-2.797 5.79-2.71 9.815-8.23 10.768-14.772.904-6.213-1.249-12.32-5.762-16.333-3.43-3.05-7.328-4.664-11.272-4.664m0 4.19c2.741 0 5.646 1.078 8.488 3.606 7.71 6.858 5.157 19.893-3.998 24.176-3.268 1.53-6.34 2.402-9.026 2.402-4.823 0-8.388-2.817-9.568-9.71-1.655-9.67 5.413-20.473 14.104-20.473" />
<path fill="#5b3221" d="M155.52 178.318c-2.342 0-4.39-.663-6.013-2.133.273.019.552.028.836.028 2.681 0 5.744-.857 9.008-2.384 9.155-4.28 11.708-17.318 3.997-24.176a17.096 17.096 0 0 0-1.789-1.382c2.143.314 4.356 1.292 6.54 3.122.003.003.005.006.01.008.003.004.007.008.013.011.006.007.013.012.021.019l.007.005a20.936 20.936 0 0 1 .364.316c3.124 2.778 4.564 6.573 4.561 10.388-.005 5.599-3.115 11.241-8.559 13.788l-.076.036c-3.23 1.503-6.265 2.354-8.92 2.354" />
<path fill="#2c1812" d="m164.44 175.964.076-.036c5.444-2.547 8.554-8.19 8.56-13.788-.006 5.599-3.116 11.241-8.56 13.788l-.076.036m3.703-24.533c-.008-.007-.015-.012-.021-.019.006.007.013.012.021.019m-.035-.03a.058.058 0 0 1-.009-.008c.003.003.005.006.01.008" />
<path fill="#6f4323" d="M164.026 70.627c-7.612 0-12.272-5.682-12.943-11.294-.717-6.014 2.888-10.886 9.185-12.413a13.156 13.156 0 0 1 3.094-.377c7.292 0 12.23 6.212 12.79 12.217.547 5.887-3.065 10.435-9.204 11.588-.985.185-1.969.279-2.92.279h-.002" />
<path fill="#351f17" d="M163.362 44.447c-1.184 0-2.39.146-3.587.437-7.283 1.765-11.612 7.672-10.772 14.699.78 6.53 6.19 13.14 15.023 13.14 1.082 0 2.196-.107 3.31-.316 7.278-1.367 11.556-6.8 10.9-13.842-.822-8.837-8.209-14.118-14.874-14.118m0 4.19c10.878 0 16.001 17.247 3.2 19.651-.88.165-1.727.244-2.536.244-11.8 0-15.74-16.552-3.263-19.576a11.004 11.004 0 0 1 2.599-.319" />
<path fill="#5b3221" d="M164.03 68.53c-2.77 0-5.108-.913-6.903-2.349 1.13.384 2.373.602 3.72.602.799 0 1.635-.078 2.505-.24 9.92-1.864 9.076-12.638 3.13-17.394 6.053 2.004 9.318 9.582 6.73 14.656l-.002.003c-.932 1.821-2.615 3.32-5.195 4.121-.001.002-.001.002-.003.002-.009.002-.018.006-.029.01h-.005l-.027.008-.007.003-.025.008-.008.001-.025.008-.008.003-.028.008-.004.001a.311.311 0 0 1-.034.01l-.008.002c-.008.003-.016.004-.022.007a.066.066 0 0 0-.018.005l-.014.004-.019.006a.168.168 0 0 0-.013.004l-.02.005-.012.004-.02.005c-.004.002-.008.002-.014.003-.005.003-.013.004-.02.005-.002.002-.008.003-.012.004l-.02.006a.031.031 0 0 1-.01.002l-.023.007h-.003c-.04.012-.08.023-.12.032l-.002.001-.028.007-.006.001c-.009.003-.017.006-.026.007l-.007.001a.178.178 0 0 1-.025.007l-.007.003a.156.156 0 0 0-.027.006h-.004l-.188.046h-.002l-.028.006-.006.002-.026.006c-.003 0-.004 0-.007.002-.01.001-.017.004-.027.006h-.006a.172.172 0 0 1-.028.007l-.004.001-.03.007c-.042.01-.085.017-.126.027l-.006.001a.171.171 0 0 0-.025.005l-.01.002-.023.005-.012.003a.638.638 0 0 0-.022.004l-.013.002-.021.004a.069.069 0 0 1-.015.003l-.02.004-.016.004a.09.09 0 0 0-.019.003l-.02.004a.069.069 0 0 1-.014.002c-.012.003-.024.006-.036.007-.879.165-1.724.243-2.532.243" />
<path fill="#2c1812" d="M166.562 68.288c.012-.001.024-.004.036-.007-.012.003-.024.006-.036.007m.05-.01c.007 0 .014-.002.02-.003l-.02.004m.04-.007.015-.004-.016.004m.036-.008.015-.003-.015.003m.036-.007c.004 0 .008 0 .013-.002l-.013.002m.035-.006.012-.003-.012.003m.036-.008.01-.002-.01.002m.034-.007.006-.001-.006.001m.131-.028h.001m.03-.007h.004-.004m.032-.008h.006-.006m.033-.006c.003-.002.004-.002.007-.002l-.007.002m.033-.008.006-.002c-.002.002-.003.002-.006.002m.034-.008h.002-.002m.19-.046h.004-.004m.031-.006.007-.003-.007.003m.032-.01h.007-.007m.033-.008h.006-.006m.034-.008h.001-.001m.122-.033h.003-.003M167.62 68.045c.004 0 .01-.002.012-.004-.002.002-.008.003-.012.004m.032-.009c.006-.001.01-.001.014-.003-.004.002-.008.002-.014.003m.034-.008.012-.004-.012.004m.032-.01a.168.168 0 0 1 .013-.003c-.004.001-.01.002-.013.004m.032-.01c.005 0 .01-.002.014-.004l-.014.004m.032-.009c.006-.003.014-.004.022-.007-.008.003-.016.004-.022.007m.03-.01a.311.311 0 0 0 .034-.009l-.034.01m.038-.01.028-.009-.028.008m.036-.01.025-.009-.025.008m.033-.009.025-.008-.025.008m.032-.01.027-.009-.027.008m.032-.009.03-.01-.03.01m.032-.01c2.58-.802 4.263-2.3 5.195-4.122-.93 1.821-2.615 3.319-5.195 4.121m5.195-4.12.001-.004-.001.003" />
<path fill="#6f4323" d="M84.95 82.763c-3.69 0-6.955-2.015-9.19-5.674-2.723-4.456-2.931-9.425-.571-13.633 2.192-3.91 6.317-6.436 10.506-6.436 3.755 0 7.162 1.957 9.596 5.51 2.722 3.973 2.983 8.717.718 13.015-2.276 4.318-6.72 7.218-11.06 7.218" />
<path fill="#351f17" d="M85.695 54.924c-4.934 0-9.777 2.947-12.334 7.507-2.742 4.888-2.52 10.628.61 15.75 2.63 4.307 6.53 6.678 10.979 6.678 5.175 0 10.243-3.272 12.912-8.336 2.601-4.938 2.286-10.61-.843-15.178-2.836-4.14-6.858-6.42-11.324-6.42m0 4.19c2.782 0 5.644 1.356 7.867 4.6 5.292 7.724-1.616 16.953-8.612 16.953-2.681 0-5.376-1.356-7.401-4.67-5.194-8.498 1.225-16.883 8.146-16.883" />
<path fill="#5b3221" d="M84.95 80.665c-2.367 0-4.745-1.057-6.664-3.586 1.423 1.014 2.972 1.464 4.516 1.462 6.995 0 13.899-9.22 8.607-16.942-.176-.258-.36-.49-.546-.724.924.681 1.804 1.564 2.6 2.697a.018.018 0 0 0 .004.005l.012.016a.17.17 0 0 0 .018.026v.001l.04.056.01.017a.12.12 0 0 1 .015.022c1.385 2.021 1.935 4.145 1.865 6.181v.023c-.208 5.73-5.318 10.748-10.477 10.746" />
<path fill="#2c1812" d="M95.427 69.919V69.9v.018m0-.023c.07-2.036-.48-4.16-1.865-6.181 1.385 2.021 1.935 4.145 1.865 6.181m-1.88-6.203-.01-.017.01.017m-.01-.017-.04-.056.04.056m-.04-.057a.17.17 0 0 1-.018-.026c.006.008.01.018.018.026m-.03-.042-.004-.005a.018.018 0 0 0 .004.005" />
<path fill="#6f4323" d="M36.434 195.188c-8.043-.001-16.095-5.825-18.332-13.261-1.417-4.707-.332-9.96 2.979-14.414 3.48-4.684 8.776-7.593 13.82-7.593 3.004 0 5.838 1.03 8.2 2.98 4.918 4.064 7.596 12.575 6.364 20.237-.894 5.55-3.664 9.493-7.803 11.107-1.605.625-3.365.944-5.228.944" />
<path fill="#351f17" d="M34.9 157.93c-5.66 0-11.567 3.217-15.417 8.395-3.69 4.964-4.888 10.86-3.288 16.175 2.519 8.368 11.219 14.677 20.239 14.677 2.112 0 4.113-.362 5.952-1.078 4.752-1.852 8.05-6.462 9.044-12.647 1.337-8.313-1.633-17.601-7.063-22.087-2.721-2.248-5.994-3.436-9.466-3.436m0 3.982c2.409 0 4.802.765 6.932 2.524 7.62 6.295 8.497 24.295-.894 27.954-1.408.55-2.936.807-4.505.807-6.763 0-14.305-4.796-16.427-11.843-2.81-9.333 6.143-19.442 14.894-19.442" />
<path fill="#5b3221" d="M36.451 193.193c-2.5 0-5.11-.658-7.512-1.841.31.019.619.028.926.028 1.554 0 3.069-.244 4.462-.788 9.39-3.657 8.515-21.659.892-27.953-.324-.268-.668-.452-1.004-.676.236-.014.47-.022.707-.022 2.372 0 4.73.723 6.832 2.43.027.02.052.042.079.064 3.81 3.148 5.934 9.22 5.933 14.966-.003 5.744-2.13 11.16-6.827 12.988-.296.116-.598.219-.905.308a12.68 12.68 0 0 1-3.583.496" />
<path fill="#2c1812" d="M40.034 192.697c.307-.089.61-.192.905-.308 4.696-1.829 6.824-7.244 6.827-12.988-.003 5.744-2.13 11.16-6.827 12.988-.296.116-.598.219-.905.308m1.799-28.262c-.027-.022-.052-.043-.08-.064.028.02.053.042.08.064" />
<path fill="#6f4323" d="M139.002 222.475c-5.306 0-8.934-2.775-9.956-7.612-1.004-4.748.072-9.508 2.953-13.06 2.467-3.044 6.004-4.788 9.704-4.788 2.753 0 5.55.965 8.09 2.791 3.702 2.666 5.74 6.655 5.449 10.671-.287 3.967-2.734 7.427-6.712 9.495-3.062 1.59-6.535 2.503-9.527 2.503h-.001" />
<path fill="#351f17" d="M141.703 194.918c-4.335 0-8.465 2.029-11.332 5.565-3.28 4.045-4.51 9.444-3.376 14.813 1.228 5.808 5.717 9.275 12.007 9.275 3.32 0 7.144-.999 10.493-2.74 4.64-2.411 7.496-6.494 7.837-11.202.344-4.748-2.017-9.429-6.316-12.523-2.898-2.084-6.118-3.188-9.313-3.188m0 4.192c2.199 0 4.55.731 6.865 2.398 6.436 4.632 6.152 12.885-1.005 16.604-2.56 1.33-5.697 2.268-8.561 2.268-3.723 0-6.984-1.586-7.907-5.95-1.716-8.12 3.707-15.32 10.608-15.32" />
<path fill="#5b3221" d="M139.036 220.367c-1.845 0-3.578-.388-4.972-1.31.088.002.175.003.263.003 2.863 0 5.999-.93 8.557-2.259 7.158-3.718 7.442-11.973 1.006-16.604a14.45 14.45 0 0 0-1.686-1.038c2.04.101 4.186.796 6.314 2.313l.001.001.023.016.026.019c3.067 2.207 4.608 5.237 4.607 8.207-.003 3.261-1.865 6.45-5.612 8.397l-.272.139c-2.5 1.252-5.503 2.116-8.255 2.116" />
<path fill="#2c1812" d="M147.291 218.25c.092-.045.183-.091.272-.138 3.747-1.947 5.61-5.136 5.612-8.397-.003 3.261-1.865 6.45-5.612 8.397l-.272.139m1.277-16.743-.026-.019.026.019m-.049-.035-.001-.001.001.001" />
<path fill="#6f4323" d="M88.851 200.747c-3.35 0-6.24-1.06-8.358-3.066-3.86-3.65-4.916-8.966-2.826-14.218 2.302-5.783 7.812-9.822 13.399-9.822.475 0 .953.03 1.435.086 5.892.7 10.445 3.814 12.178 8.33 1.64 4.272.481 9.118-3.18 13.296-2.825 3.226-7.908 5.394-12.648 5.394" />
<path fill="#351f17" d="M91.066 171.547c-6.525 0-12.693 4.477-15.345 11.141-2.42 6.079-1.174 12.253 3.332 16.516 2.516 2.38 5.904 3.637 9.798 3.637 5.308 0 11.025-2.453 14.224-6.108 4.19-4.782 5.488-10.405 3.56-15.427-2.017-5.255-7.21-8.866-13.888-9.66-.556-.066-1.121-.1-1.681-.1m0 4.191c.393 0 .79.023 1.188.071 10.118 1.202 14.708 10.13 7.67 18.165-2.365 2.699-6.845 4.678-11.073 4.678-2.577 0-5.062-.735-6.917-2.49-7.748-7.33-.248-20.424 9.132-20.424" />
<path fill="#5b3221" d="M88.851 198.65c-2.577 0-5.062-.734-6.917-2.49l-.064-.061c-.437-.42-.813-.866-1.155-1.32.94.237 1.924.348 2.922.346 4.225 0 8.694-1.968 11.057-4.665 4.319-4.93 4.245-10.188 1.217-13.8 7.417 2.657 10.107 10.25 4.103 17.21h-.002a.172.172 0 0 0-.014.018c-.003.001-.004.004-.006.006l-.013.015-.005.007-.014.013-.008.01c-.004.005-.006.01-.01.012l-.019.022c-1 1.142-2.377 2.154-3.954 2.943-2.154 1.076-4.678 1.735-7.118 1.735" />
<path fill="#2c1812" d="M95.969 196.916c1.577-.79 2.954-1.801 3.954-2.943l.019-.022-.019.022c-1 1.142-2.377 2.154-3.954 2.943m-14.035-.756-.064-.061.064.061m18.018-2.22.008-.01-.008.01m.022-.024.005-.007-.005.007m.018-.022c.002-.002.003-.005.006-.006l-.006.006m.02-.023s0-.002.002-.002c-.002 0-.002.002-.002.002" />
<path fill="#6f4323" d="M203.984 154.718c-3.349 0-6.24-1.058-8.358-3.063-3.86-3.652-4.916-8.968-2.827-14.22 2.303-5.782 7.812-9.82 13.4-9.82.475 0 .953.028 1.435.085 5.892.7 10.444 3.815 12.178 8.332 1.64 4.27.482 9.116-3.18 13.295-2.826 3.225-7.909 5.391-12.648 5.391" />
<path fill="#351f17" d="M206.2 125.52c-6.528 0-12.694 4.477-15.348 11.14-2.418 6.079-1.173 12.253 3.334 16.517 2.516 2.38 5.904 3.638 9.798 3.638 5.307 0 11.024-2.454 14.224-6.107 4.191-4.784 5.488-10.405 3.56-15.428-2.017-5.255-7.209-8.867-13.888-9.661a14.458 14.458 0 0 0-1.68-.099m0 4.19c.391 0 .788.023 1.186.071 10.118 1.202 14.71 10.131 7.67 18.164-2.365 2.7-6.844 4.68-11.072 4.68-2.578 0-5.062-.737-6.918-2.492-7.747-7.329-.247-20.422 9.133-20.422" />
<path fill="#5b3221" d="M203.984 152.624c-.518 0-1.033-.03-1.54-.092-2.012-.245-3.896-.996-5.378-2.399-.223-.212-.387-.442-.584-.661 1.27.487 2.654.707 4.068.707 4.222 0 8.692-1.97 11.054-4.666 4.55-5.193 4.22-10.746.703-14.358 6.46 3.04 8.501 10.186 2.784 16.752l-.004.004-.013.014c-.006.007-.01.014-.018.02-2 2.284-5.514 4.052-9.11 4.543-.654.09-1.31.136-1.962.136" />
<path fill="#2c1812" d="M203.983 152.624a12.787 12.787 0 0 1 .001 0m11.072-4.679a.232.232 0 0 0 .018-.02c-.006.007-.01.014-.018.02m.031-.034.004-.004-.004.004" />
<path fill="#6f4323" d="M53.043 52.012c-5.27 0-9.898-1.852-13.03-5.213-5.958-6.396-1.46-17.347 3.02-23.146 2.818-3.65 8.19-5.832 14.368-5.832 3.51 0 6.856.74 9.417 2.086 3.167 1.661 5.344 4.63 6.301 8.584 1.236 5.114.164 11.258-2.67 15.286-3.52 5.003-10.351 8.235-17.404 8.235h-.002" />
<path fill="#351f17" d="M57.4 15.725c-6.822 0-12.813 2.486-16.026 6.648-5.888 7.627-9.307 18.97-2.893 25.854 3.532 3.792 8.704 5.881 14.562 5.881 7.715 0 15.22-3.581 19.12-9.125 3.21-4.563 4.384-11.23 2.992-16.984-1.085-4.494-3.701-8.026-7.362-9.948-2.86-1.499-6.548-2.326-10.392-2.326m0 4.192c3.096 0 6.128.63 8.444 1.844 7.105 3.731 6.934 15.062 2.892 20.811-3.2 4.547-9.552 7.345-15.694 7.345-4.332 0-8.558-1.393-11.497-4.548-5.039-5.409-.868-15.237 3.145-20.434 2.63-3.406 7.752-5.018 12.71-5.018" />
<path fill="#5b3221" d="M53.075 49.903c-4.166 0-8.238-1.29-11.162-4.194 1.668.5 3.436.735 5.22.735 6.137 0 12.484-2.792 15.68-7.336 3.405-4.843 4.045-13.63-.078-18.513 1.122.296 2.176.678 3.11 1.166 3.997 2.1 5.69 6.602 5.689 11.164-.001 3.548-1.03 7.131-2.797 9.647-3.196 4.541-9.532 7.33-15.662 7.33" />
<path fill="#6f4323" d="M202.492 104.203c-5.128-.002-9.66-1.956-12.762-5.506-5.592-6.4-1.73-17.042 2.23-22.634 2.431-3.434 7.168-5.483 12.671-5.483 3.5 0 6.85.83 9.433 2.336 2.978 1.733 5.056 4.744 6.01 8.703 1.208 5.009.362 10.956-2.102 14.8-3.033 4.728-9.109 7.784-15.478 7.784h-.002" />
<path fill="#351f17" d="M204.631 68.576c-6.152 0-11.5 2.367-14.307 6.33-2.382 3.365-4.197 7.534-4.977 11.44-1.104 5.529-.11 10.255 2.873 13.67 3.49 3.992 8.558 6.19 14.272 6.19 7.036 0 13.775-3.417 17.167-8.705 2.784-4.341 3.71-10.76 2.363-16.352-1.086-4.502-3.488-7.949-6.95-9.965-2.884-1.683-6.592-2.608-10.44-2.608m0 4.008c3.055 0 6.106.712 8.423 2.063 6.667 3.884 6.812 15.104 3.23 20.689-2.749 4.287-8.285 6.863-13.793 6.863-4.174 0-8.336-1.482-11.253-4.82-4.803-5.495-1.213-15.118 2.357-20.158 2.24-3.165 6.643-4.637 11.036-4.637" />
<path fill="#5b3221" d="M202.51 102.19c-4.099 0-8.184-1.426-11.095-4.635 2.12 1.002 4.463 1.47 6.81 1.47 5.507 0 11.042-2.576 13.79-6.86 3.004-4.682 3.37-13.31-.513-18.272.542.228 1.07.471 1.553.754 3.893 2.268 5.563 7.038 5.564 11.726.001 3.34-.843 6.64-2.333 8.963a12.897 12.897 0 0 1-2.083 2.475c-2.995 2.778-7.352 4.38-11.693 4.38" />
<path fill="#2c1812" d="M214.203 97.81c.001 0 .004-.003.005-.006a.03.03 0 0 1-.005.007m.021-.02a12.897 12.897 0 0 0 2.062-2.455c1.49-2.323 2.334-5.623 2.333-8.963.001 3.34-.843 6.64-2.333 8.963a12.856 12.856 0 0 1-2.062 2.455" />
<path fill="#6f4323" d="M39.713 143.56c-7.995-.001-14.396-6.873-15.742-13.241-1.27-6.008 1.543-11.175 7.524-13.822a12.758 12.758 0 0 1 5.195-1.117c7.628 0 13.799 6.716 15.357 13.208 1.392 5.793-.813 10.799-5.9 13.392-2.056 1.048-4.22 1.58-6.433 1.58h-.001" />
<path fill="#351f17" d="M36.69 113.284a14.84 14.84 0 0 0-6.043 1.297c-6.85 3.032-10.193 9.228-8.725 16.172 1.548 7.326 8.625 14.902 17.79 14.902 2.549 0 5.033-.608 7.387-1.808 5.918-3.018 8.595-9.051 6.987-15.747-1.75-7.283-8.735-14.816-17.396-14.816m0 4.192c10.881 0 19.635 16.964 8.505 22.637-1.837.936-3.688 1.351-5.482 1.351-11.542 0-20.647-17.175-7.37-23.05a10.657 10.657 0 0 1 4.347-.938" />
<path fill="#5b3221" d="M39.733 141.459c-2.178 0-4.268-.612-6.14-1.642.146.006.292.008.438.008 1.79 0 3.636-.402 5.468-1.336 9.023-4.6 4.976-16.618-2.677-21.002 7.079.089 13.223 7.326 13.523 13.904v.046c.138 3.323-1.22 6.47-4.704 8.438l-.028.014-.004.003a.216.216 0 0 1-.024.013l-.007.004-.021.012-.011.006-.02.012a.04.04 0 0 0-.01.005l-.022.012a.04.04 0 0 0-.01.005l-.017.01-.016.008-.012.006-.02.011a.076.076 0 0 0-.01.005l-.02.012a.047.047 0 0 0-.012.006l-.02.01-.016.008-.016.01-.03.014-.002.002-.023.012-.01.005-.013.007-.052.026c-.293.15-.588.287-.882.41-1.54.645-3.08.937-4.58.936" />
<path fill="#2c1812" d="M44.313 140.523a12.752 12.752 0 0 1 0 0m.934-.436.012-.007-.012.007m.023-.012.023-.012-.023.012m.025-.014.03-.014a.3.3 0 0 1-.03.014m.046-.024.016-.008-.016.008m.036-.018.012-.006-.012.006m.063-.034.011-.006-.012.006m.028-.014a.1.1 0 0 1 .016-.01l-.016.01m.027-.015.021-.012-.021.012m.032-.017.02-.012-.02.012m.03-.018.022-.012-.021.012m.028-.016.024-.013c-.008.004-.016.01-.024.013m.028-.016.028-.014-.028.014m.028-.014c3.485-1.968 4.842-5.115 4.705-8.438.137 3.322-1.22 6.47-4.705 8.438m4.705-8.439v-.021.021m-.001-.037v-.008.008" />
<path fill="#351f17" d="M95.123 126.928c2.262 6.404-1.097 13.428-7.5 15.688-6.402 2.261-13.426-1.096-15.688-7.499-2.261-6.402 1.098-13.426 7.5-15.688 6.403-2.261 13.427 1.096 15.688 7.499" />
<path class="cookie__eye" fill="#fff" d="M80.37 126.579a3.925 3.925 0 0 1-2.396 5.009 3.925 3.925 0 1 1-2.615-7.403 3.926 3.926 0 0 1 5.01 2.394M82.098 132.313a1.478 1.478 0 1 1-2.788.983 1.478 1.478 0 0 1 2.788-.983M83.34 127.705a.929.929 0 0 1-.566 1.183.925.925 0 1 1-.616-1.747.927.927 0 0 1 1.183.564" />
<path fill="#351f17" d="M156.404 105.287c2.262 6.404-1.096 13.426-7.5 15.688-6.402 2.261-13.425-1.096-15.686-7.5-2.262-6.403 1.096-13.426 7.497-15.687 6.404-2.261 13.428 1.096 15.69 7.499" />
<path class="cookie__eye" fill="#fff" d="M141.652 104.937a3.927 3.927 0 1 1-7.406 2.614 3.927 3.927 0 0 1 7.406-2.614M143.38 110.672a1.477 1.477 0 1 1-2.786.984 1.477 1.477 0 0 1 2.785-.984M144.622 106.064a.927.927 0 1 1-1.75.617.927.927 0 0 1 1.75-.617" />
<path fill="#ef3644" d="M115.724 134.981a9.672 9.672 0 0 1-9.105-6.445 1.093 1.093 0 0 1-.061-.435c.05-.813.95-2.981 8.192-5.538 3.185-1.126 5.644-1.362 7.144-1.362 1.337 0 2.086.183 2.168.203.357.092.645.355.766.701 1.775 5.022-.866 10.55-5.888 12.323a9.645 9.645 0 0 1-3.214.553h-.002" />
<path fill="#351f17" d="M121.894 120.097c-1.587 0-4.179.248-7.512 1.424-7.202 2.544-8.83 4.946-8.926 6.512-.018.296.024.592.122.871a10.781 10.781 0 0 0 10.146 7.181c1.22 0 2.426-.208 3.583-.616a10.697 10.697 0 0 0 6.125-5.506 10.687 10.687 0 0 0 .438-8.224 2.205 2.205 0 0 0-1.535-1.403c-.155-.04-1-.239-2.441-.239zm0 2.208c1.236 0 1.894.168 1.894.168a8.554 8.554 0 0 1-8.064 11.404 8.56 8.56 0 0 1-8.065-5.708s.123-1.976 7.457-4.566c2.995-1.058 5.3-1.298 6.778-1.298" />
<path fill="#fff" d="M108.84 131.448c-.354 0-.732-.181-.94-.468a9.613 9.613 0 0 1-1.28-2.444 1.093 1.093 0 0 1-.062-.435c.05-.813.95-2.981 8.192-5.538 3.185-1.126 5.644-1.362 7.144-1.362 1.337 0 2.086.183 2.168.203.357.092.645.355.766.701a9.62 9.62 0 0 1 .542 2.75c.014.301-.106.616-.315.834-.872.914-15.377 5.759-16.215 5.759" />
<path fill="#351f17" d="M121.894 120.097c-1.587 0-4.179.248-7.512 1.424-7.202 2.544-8.83 4.946-8.926 6.512-.018.296.024.592.122.871.344.972.825 1.888 1.43 2.724a2.304 2.304 0 0 0 1.832.924c.372 0 1.062 0 8.62-2.66 7.694-2.708 8.002-3.03 8.392-3.441a2.253 2.253 0 0 0 .62-1.644c-.05-1.05-.253-2.08-.602-3.07a2.205 2.205 0 0 0-1.535-1.401c-.155-.04-1-.239-2.441-.239zm0 2.208c1.236 0 1.894.168 1.894.168.286.806.44 1.624.48 2.435.014.317-14.492 5.436-15.428 5.436l-.045-.01a8.487 8.487 0 0 1-1.136-2.165s.123-1.976 7.457-4.566c2.995-1.058 5.3-1.298 6.778-1.298M134.956 91.607l.003-.003c.075-.061 1.096-.884 2.756-1.679 1.661-.797 3.953-1.561 6.587-1.56 2.113.003 4.452.482 6.941 1.854a1.103 1.103 0 1 0 1.067-1.932c-2.815-1.556-5.556-2.131-8.008-2.128-3.162.001-5.835.936-7.72 1.862-1.886.928-2.995 1.854-3.044 1.895a1.105 1.105 0 0 0 1.418 1.69M79.63 108.955l-.067-.002c-.457.003-3.237.05-6.49 1.38-3.244 1.322-6.988 4.004-9.078 9.142a1.103 1.103 0 1 0 2.044.833c1.85-4.516 5.015-6.75 7.872-7.933 2.852-1.172 5.375-1.216 5.652-1.215h.019a1.103 1.103 0 1 0 .05-2.205" />
</svg>
</figure>
</div>
</aside>
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
/*
2. Remove default margin
*/
* {
margin: 0;
}
/*
3. Allow percentage-based heights in the application
*/
html,
body {
height: 100%;
}
/*
Typographic tweaks!
4. Add accessible line-height
5. Improve text rendering
*/
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/*
6. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
height: auto;
}
/*
7. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
font: inherit;
}
/*
8. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
a,
a:visited {
color: var(--color-primary);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
:root {
--font-heading: "Chillax", sans-serif;
--font-body: "Synonym", sans-serif;
--cookie-size: 180px;
--color-text: #111;
--color-neutral: #f4f4f4;
--color-primary: #5b3221;
--color-secondary: #f8c256;
--color-shadow: rgba(0, 0, 0, 0.6);
--transition-bounce: cubic-bezier(0.2, 0.7, 0.4, 1.65);
}
body {
font-family: var(--font-body);
font-weight: 500;
font-size: 1.15rem;
color: var(--color-text);
}
h1,
h2,
h3 {
font-family: var(--font-heading);
font-weight: 600;
color: var(--color-primary);
}
.cookie-notice {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: var(--color-neutral);
padding: 2rem;
max-height: 100vh;
}
.cookie-notice__inner {
display: flex;
max-width: 768px;
margin: 0 auto;
flex-direction: column-reverse;
gap: 1.5rem;
}
@media screen and (min-width: 620px) {
.cookie-notice__inner {
gap: 2rem;
flex-direction: row-reverse;
}
}
.cookie-notice__graphic-container {
position: relative;
display: block;
margin: 0;
flex: 0 0 var(--cookie-size);
width: var(--cookie-size);
height: var(--cookie-size);
margin-top: calc(-0.5 * var(--cookie-size));
}
.cookie-notice__graphic {
width: var(--cookie-size);
opacity: 0;
animation: enter 0.8s 0.3s var(--transition-bounce) forwards,
wiggle 6s 3s var(--transition-bounce) infinite;
}
cookie-notice__title {
margin-bottom: 0.5rem;
font-size: 1.25rem;
}
.cookie-notice__content {
margin-bottom: 1rem;
}
.cookie-notice__actions {
display: flex;
gap: 1rem;
}
.cookie-notice__button {
background: var(--color-secondary);
margin: 0;
padding: 0.3rem 1.5rem;
cursor: pointer;
border-radius: 0.35rem;
font-weight: 600;
border-width: 0;
border-bottom: 0.3rem solid var(--color-primary);
color: var(--color-primary);
transition: background 0.2s ease-out, color 0.2s ease-out;
}
.cookie-notice__button:hover,
.cookie-notice__button:active {
background: var(--color-primary);
color: var(--color-secondary);
}
.cookie__eye {
animation: sparkle 0.15s 1s steps(2, jump-none) infinite alternate;
transform-box: fill-box;
transform-origin: center center;
backface-visibility: hidden;
}
.cookie-notice__shadow {
opacity: 0;
display: block;
box-shadow: 0 0.2rem 1.3rem 0.2rem var(--color-shadow);
width: 100%;
transform-origin: center;
transform: scaleX(0.8);
position: absolute;
bottom: 0;
animation: shadow-enter 0.8s 0.3s var(--transition-bounce) forwards,
shadow-movement 6s 3s ease infinite;
}
@keyframes shadow-enter {
0% {
opacity: 0;
transform: translate3d(-60%, 0, 0) scaleX(0.8);
}
100% {
opacity: 1;
transform: translate3d(0, 0, 0) scaleX(0.8);
}
}
@keyframes enter {
0% {
opacity: 0;
transform: translate3d(-60%, 0, 0) rotateZ(-50deg);
}
100% {
opacity: 1;
transform: translate3d(0, 0, 0) rotateZ(17deg);
}
}
@keyframes shadow-movement {
0% {
transform: translate3d(0, 0, 0) scaleX(0.8);
}
45% {
transform: translate3d(0, 0, 0) scaleX(0.8);
}
50% {
transform: translate3d(-10%, 0, 0) scaleX(0.8);
}
55% {
transform: translate3d(6%, 0, 0) scaleX(0.8);
}
60% {
transform: translate3d(0, 0, 0) scaleX(0.8);
}
100% {
transform: translate3d(0, 0, 0) scaleX(0.8);
}
}
@keyframes wiggle {
0% {
transform: translate3d(0, 0, 0) rotateZ(17deg);
}
45% {
transform: translate3d(0, 0, 0) rotateZ(17deg);
}
50% {
transform: translate3d(-10%, 0, 0) rotateZ(8deg);
}
55% {
transform: translate3d(6%, 0, 0) rotateZ(24deg);
}
60% {
transform: translate3d(0, 0, 0) rotateZ(17deg);
}
100% {
transform: translate3d(0, 0, 0) rotateZ(17deg);
}
}
@keyframes sparkle {
from {
opacity: 0.95;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
*,
::before,
::after {
animation-delay: -1ms !important;
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
background-attachment: initial !important;
scroll-behavior: auto !important;
transition-duration: 0s !important;
transition-delay: 0s !important;
}
}
Also see: Tab Triggers