Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

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.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


    <link rel="stylesheet" type="text/css" href="style.css" />
    <div class="card">
      <div class="wrapper">
        <p class="dim">Sed ut perspiciatis unde</p>
          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
          eiusmod tempor
        <p class="dim">
          At vero eos et accusamus et iusto odio dignissimos ducimus qui
          blanditiis praesentium voluptatum

      <div class="shade-1"></div>
      <div class="shade-2"></div>



                /** original design */
:root {
  font-size: 16px;
  font-family: Futura;
  --bg-color: #010101;
  --w: 370px;
  --h: 450px;
  --gap: 2rem;
  --c1-color: #f8a3bc;
  --c2-color: #fec2d4;
body {
  padding: 0;
  margin: 0;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
.shade-2 {
  border: 2px solid rgba(255, 255, 255, 0.4);
.card {
  position: relative;
  max-width: var(--w);
  color: white;
  animation: pausing-pendulum 4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
.card .wrapper {
  padding: 4rem 2rem;
  background: var(--bg-color);
.card h1 {
  font-size: 3rem;
  font-weight: bold;
.card p {
  font-weight: 200;
  line-height: 2;
.dim {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4rem;

.shade-2 {
  width: var(--w);
  height: var(--h);
  position: absolute;
  width: 100%;
  height: 100%;
.shade-1 {
  top: var(--gap);
  left: var(--gap);
  animation: pausing-pendulum 4s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  background: var(--c1-color);
  z-index: -1;
.shade-2 {
  top: calc(2 * var(--gap));
  left: calc(2 * var(--gap));
  /* animation: flying 4s ease-in-out infinite; */
  animation: pausing-pendulum 4s cubic-bezier(0.5, 0.4, 0.5, 0.6) infinite;
  background: var(--c2-color);
  z-index: -2;

@keyframes pausing-pendulum {
  20% {
    transform: translateY(0);
  50% {
    transform: translateY(1500px);
  100% {
    transform: translateY(0);