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 includes JSX processing.

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


Add Packages

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.


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



                /** 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;
.card {
  border: 2px solid rgba(255, 255, 255, 0.4);
.card {
  position: absolute;
  max-width: var(--w);
  color: white;
/*   animation: one-way-pendulum 1s ease-in-out infinite; */
  animation: one-way-pendulum 1s cubic-bezier(0.6, 0, 1, 1) infinite;
  animation-direction: alternate;
  top: calc(50% - 570px / 2);
  left: calc(50% - 370px / 2);
.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;

@keyframes one-way-pendulum {
  0% {
    transform: translateY(0);
  100% {
    transform: translateY(1500px);