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="relative py-8 sm:py-8 xl:py-3 min-w-screen min-h-screen flex items-center justify-center text-white">
<div class="grid border-x lg:grid-cols-6 sm:grid-cols-3 grid-cols-2 lg:divide-x divide-solid divide-white">
<article class="group h-full flex flex-col divide-y text-sm text-center divide-gray-400 px-2">
<div class="sm:pb-8 pb-3 num">1</div>
<div class="sm:py-3 py-1.5 uppercase font-light">Herman Hesse</div>
<div class="sm:h-28 h-20 flex items-center text-xs">
<p class="break-words font-light whitespace-pre-line mx-auto w-28">Professionalism is dedication multiplied on time</p>
</div>
<div class="sm:py-3 py-1.5 uppercase">Page 56</div>
<div class="py-8 text-9xl relative">
<q class="text-xs absolute sm:top-28 top-24 left-[8%] max-w-[84%]">
But if I do not go along with your sadness, do not let myself be infected by it, that does not mean I don't recognize it or take it seriously.
</q>
<div class="sm:pt-36 pt-32 sm:pb-0 pb-1 uppercase w-full max-w-full -scale-100 stretch bg-black sm:group-hover:-translate-y-56 group-hover:-translate-y-44 group-hover:transition-transform flex items-center">Pro</div>
</div>
</article>
<article class="group border-l lg:border-l-0 h-full flex flex-col divide-y text-sm text-center divide-gray-400 px-2">
<div class="sm:pb-8 pb-3 num">2</div>
<div class="sm:py-3 py-1.5 uppercase font-light">Bob Dylan</div>
<div class="sm:h-28 h-20 flex items-center text-xs">
<p class="break-words font-light whitespace-pre-line mx-auto w-28">Society is mainly designed by it's cultural elites</p>
</div>
<div class="sm:py-3 py-1.5 uppercase">Page 85</div>
<div class="py-8 text-9xl relative">
<q class="text-xs absolute top-28 left-[8%] max-w-[84%]">
what a drag it gets to be. writing for this chosen few. writing for anyone cpt you.
</q>
<div class="sm:pt-8 pt-4 sm:pb-0 pb-1 uppercase w-full max-w-full -scale-100 stretch bg-black sm:group-hover:-translate-y-56 group-hover:-translate-y-44 group-hover:transition-transform flex items-center">Design</div>
</div>
</article>
<article class="group lg:border-l-0 sm:border-l border-l-0 h-full flex flex-col divide-y text-sm text-center divide-gray-400 px-2">
<div class="sm:pb-8 pb-3 num">3</div>
<div class="sm:py-3 py-1.5 uppercase font-light">Isaac Asimov</div>
<div class="sm:h-28 h-20 flex items-center text-xs">
<p class="break-words font-light whitespace-pre-line mx-auto w-28">Exploration of unknown is all about warm heart</p>
</div>
<div class="sm:py-3 py-1.5 uppercase">Page 27</div>
<div class="py-8 text-9xl relative">
<q class="text-xs absolute top-32 left-[8%] max-w-[84%]">
It's your fiction that interests me. Your studies of the interplay of human motives and emotion.
</q>
<div class="pt-12 sm:pb-0 pb-1 uppercase w-full max-w-full -scale-100 stretch bg-black sm:group-hover:-translate-y-56 group-hover:-translate-y-44 group-hover:transition-transform flex items-center">About</div>
</div>
</article>
<article class="group border-l sm:border-l-0 h-full flex flex-col divide-y text-sm text-center divide-gray-400 px-2">
<div class="sm:pb-8 pb-3 num">4</div>
<div class="sm:py-3 py-1.5 uppercase font-light">Phillip K. Dick</div>
<div class="sm:h-28 h-20 flex items-center text-xs">
<p class="break-words font-light whitespace-pre-line mx-auto w-28">Personality is product of the mind, not surroundings</p>
</div>
<div class="sm:py-3 py-1.5 uppercase">Page 119</div>
<div class="py-8 text-9xl relative">
<q class="text-xs absolute sm:top-36 top-36 left-[8%] max-w-[84%]">
It's the basic condition of life to be required to violate our own identity.
</q>
<div class="pt-8 sm:pb-0 pb-1 uppercase w-full max-w-full -scale-100 stretch bg-black sm:group-hover:-translate-y-56 group-hover:-translate-y-44 group-hover:transition-transform flex items-center">
Product
</div>
</div>
</article>
<article class="group lg:border-l-0 sm:border-l border-l-0 h-full flex flex-col divide-y text-sm text-center divide-gray-400 px-2">
<div class="sm:pb-8 pb-3 num">5</div>
<div class="sm:py-3 py-1.5 uppercase font-light">Agota Kristof</div>
<div class="sm:h-28 h-20 flex items-center text-xs">
<p class="break-words font-light whitespace-pre-line mx-auto w-28">Code of conduct is just another rule to be broken</p>
</div>
<div class="sm:py-3 py-1.5 uppercase">Page 54</div>
<div class="py-8 text-9xl relative">
<q class="text-xs absolute sm:top-28 top-16 left-[8%] max-w-[84%]">
“You don't want to fight the enemy anymore?"<br>"I don't want to fight anyone. I have no enemies. I want to go home.”
</q>
<div class="sm:pt-24 pt-8 sm:pb-0 pb-1 uppercase w-full max-w-full -scale-100 stretch bg-black sm:group-hover:-translate-y-56 group-hover:-translate-y-44 group-hover:transition-transform flex items-center">Code</div>
</div>
</article>
<article class="group border-l lg:border-l-0 h-full flex flex-col divide-y text-sm text-center divide-gray-400 px-2">
<div class="sm:pb-8 pb-3 num">6</div>
<div class="sm:py-3 py-1.5 uppercase font-light">Stanislaw Lem</div>
<div class="sm:h-28 h-20 flex items-center text-xs">
<p class="break-words font-light whitespace-pre-line mx-auto w-28">Technologies are only exposing human nature</p>
</div>
<div class="sm:py-3 py-1.5 uppercase">Page 213</div>
<div class="py-8 text-9xl relative">
<q class="text-xs absolute sm:top-28 top-16 left-[8%] max-w-[84%]">
We have no need of other worlds. We need mirrors. We don't know what to do with other worlds.
</q>
<div class="sm:pt-24 pt-8 sm:pb-0 pb-1 uppercase w-full max-w-full -scale-100 stretch bg-black sm:group-hover:-translate-y-56 group-hover:-translate-y-44 group-hover:transition-transform flex items-center">Tech</div>
</div>
</article>
</div>
</div>
@font-face
font-family: "Roboto Flex"
src: url("https://digitalupgrade.com/images/misc/RobotoFlex-VariableFont_GRADXTRAYOPQYTASYTDEYTFIYTLCYTUCopszslntwdthwght.woff2") format("woff2")
body
font-family: 'Roboto Flex', sans-serif
.group-hover\:transition-transform
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
transition-duration: 150ms
animation-direction: alternate
.num
font-size: 10rem
line-height: 0.9
font-weight: 550
font-variation-settings: 'wdth' 35, 'YTFI' 788
.stretch
font-weight: 500
font-variation-settings: 'wdth' 35
writing-mode: vertical-rl
Also see: Tab Triggers