Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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.

HTML

              
                <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;opacity:0" id="filters">
  <defs>
    <filter id="drawn">
      <feTurbulence baseFrequency="0.00325" numOctaves="8" />
      <feDisplacementMap in="SourceGraphic" scale="30" />
    </filter>
  </defs>
</svg>


<main>
  <section>
    <div class="group">
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
      <div>
        <svg viewBox="0 20 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
          <g class="drawable" fill="#ffffff" stroke="#000000" filter="url(#drawn)">
            <ellipse class="head" cx="100" cy="115" rx="80" ry="75" stroke-width="3.25" />
            <ellipse class="eye-right" cx="130" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-right" cx="114.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <ellipse class="eye-left" cx="65" cy="106" rx="30" ry="35" stroke-width="3.25" />
            <ellipse class="pupil-left" cx="47.5" cy="106" rx="1" ry="1.5" stroke-width="3.25" />
            <path class="mouth" d="M90,170 c0,15 20,15 20,0" transform="translate(0 -10)" stroke-width="3.25" />
          </g>
        </svg>
      </div>
    </div>
    <div class="framer"></div>
  </section>
</main>
<aside></aside>
<form>
  <p>
    <select id="easing">
      <option value="linear">linear</option>
      <option id="start" value="steps(var(--step-count), start)">steps(16,start)</option> 
      <option id="end" value="steps(var(--step-count), end)">steps(16,end)</option> 
      <option id="jump-start" value="steps(var(--step-count), jump-start)">steps(16,jump-start)</option> 
      <option id="jump-end" value="steps(var(--step-count), jump-end)" selected>steps(16,jump-end)</option> 
      <option id="jump-none" value="steps(var(--step-count), jump-none)">steps(16,jump-none)</option> 
      <option id="jump-both" value="steps(var(--step-count), jump-both)">steps(16,jump-both)</option> 
    </select>
    <label for="easing">Easing</label>
  </p>
  <p>
    <input type="number" value="10000" id="duration" />
    <label for="duration">Duration (ms)</label>
  </p>
  <p>
    <select id="direction">
      <option value="normal">normal</option> 
      <option value="alternate">alternate</option> 
      <option value="reverse">reverse</option> 
      <option value="alternate-reverse">alternate-reverse</option> 
    </select>
    <label for="direction">Direction</label>
  </p>
</form>
<p id="rule"></p>
<footer>This browser does not yet support the newest <code>steps()</code> options: <code>jump-start</code>, <code>jump-end</code>, <code>jump-both</code>, and <code>jump-none</code>. To see the new easing options in action, try Firefox 65+.</footer>
              
            
!

CSS

              
                :root {
  --duration: 10000ms;
  --step-count: 16;
  --width: 12.5vw;
}
#filters {
  width: 0rem;
  height: 0rem;
  top: -10rem;
  left: -10rem;
}
section {
  position: relative;
  height: var(--width);
  width: calc(var(--step-count) * var(--width));
  margin-bottom: 3rem;
  transform: translateX(30vw);
}
section::before,
section::after {
  content: '';
  position: absolute;
  top: 0;
  left: calc(-50vw + 1px);
  width: 50vw;
  bottom: 0;
}
section::after {
  background: rgba(0,0,0,.7);
  z-index: 1;
}
.group {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  will-change: transform;
  animation: move var(--duration) infinite var(--direction, normal) var(--easing, steps(var(--step-count), jump-end));
  background: hsl(343, 100%, 55%);
  
  counter-reset: framed;
}
.group > div {
  width: var(--width);
  display: flex;
  position: relative;
}
.group > div::before {
  counter-increment: framed;
  content: counter(framed);
  position: absolute;
  top: .5rem;
  left: .5rem;
}
.framer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,.75);
  clip-path: polygon(
    0% 0%,
    6.25vw 0%,
    6.25vw 5%,
    0% 5%,
    0% 95%,
    12.5vw 95%,
    12.5vw 5%,
    6.25vw 5%,
    6.25vw 0%,
    100% 0%,
    100% 100%,
    0% 100%
  );
}
@keyframes move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}







div svg {
  width: 100%;
  margin: auto;
}
.head {
  fill: hsla(0,0%,90%, .8);
}
[class*=eye] {
  fill: hsla(0,0%,90%,.4);
}
[class*=pupil] {
  stroke-width: 6.5px;
  fill: #222;
}
.mouth {
  fill: none;
}

section {
  position: relative;
}

@keyframes spin {
  0% {
    transform: rotate(0deg) translateY(-2rem);
  }
  100% {
    transform: rotate(360deg) translateY(-2rem);
  }
}
@keyframes move-right {
  0% {
    transform: translateX(-10rem);
  }
  100% {
    transform: translateX(10rem);
  }
}
@keyframes color {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

main {
  align-self: flex-start;
}

body {
  min-height: 100vh;
  padding: 6rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-x: hidden;
  font-family: var(--fonts);
  --fonts: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #51515c;
  color: #f1f1fc;
  background: radial-gradient(circle, hsl(343, 100%, 8%) 70%, hsl(343, 100%, 2%))
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


aside {
  height: 1.2rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 3px double hsla(0,0%,70%,.5);
  background: rgba(0,0,0,.76);
}
aside::after {
  content: '';
  position: absolute;
  top: .1rem;
  right: 0;
  bottom: .2rem;
  left: 0;
  background: hsl(163, 100%, 40%);
  animation: progress var(--duration) 0ms infinite linear;
  opacity: .6;
  transform: scaleX(0);
  transform-origin: 0% 50%;
}

@keyframes progress {
  100% {
    transform: scaleX(1);
  }
}
form {
  display: grid;
  grid-gap: 2em 1em;
  gap: 2em 1em;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  width: 100%;
  max-width: 35rem;
}
form p {
  display: flex;
  flex-direction: column-reverse;
}
form label {
  margin-bottom: .5em;
}
select, input {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
  
	display: block;
  width: 100%;
	font-size: 16px;
	font-weight: 500;
  color: #444;
	line-height: 1.3;
	padding: .6em .4em .5em .4em;
	border: 1px solid #ccd;
	box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
	border-radius: .25em;
	background-image: var(--top-background, none),
	  linear-gradient(to bottom, rgba(255,255,255,.8) 0%, rgba(245,245,255,.8) 100%);
	background-repeat: no-repeat, repeat;
	background-position: right .7em top 50%, 0 0;
	background-size: .65em auto, 100%;
}
[disabled],
[disabled] + label {
  opacity: .6;
}
select {
  font-family: var(--fonts);
  padding-right: 1.6em;
  --top-background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23667CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
}
select::-ms-expand {
	display: none;
}
select:hover,
input:hover {
	border-color: #778;
}
select:focus,
input:focus {
	border-color: #ccd;
	box-shadow: 0 0 1px 3px hsla(163, 100%, 40%, .6);
	color: #222; 
	outline: none;
}
select option {
	font-weight: normal;
}

#rule {
  margin: 3rem;
  font-family: monospace;
  font-size: 1.6em;
  line-height: 1.4;
  width: 100%;
  max-width: 64rem;
  word-break: keep-all;
  text-indent: -2rem;
  padding-left: 2rem;
}

footer {
  line-height: 1.4;
  width: 100%;
  max-width: 64rem;
}
footer code {
  font-size: 1.2em;
}

#jump-none,
#jump-both,
#jump-end,
#jump-start {
  display: none;
}

@supports (animation-timing-function: steps(2, jump-both)) {
  #jump-both {
    display: flex;
  }
  footer {
    display: none;
  }
}

@supports (animation-timing-function: steps(2, jump-none)) {
  #jump-none {
    display: flex;
  }
  footer {
    display: none;
  }
}

@supports (animation-timing-function: steps(2, jump-start)) {
  #jump-start {
    display: flex;
  }
  #start {
    display: none;
  }
}

@supports (animation-timing-function: steps(2, jump-end)) {
  #jump-end {
    display: flex;
  }
  #end {
    display: none;
  }
}



              
            
!

JS

              
                //This JS is just to move the pupils back and forth

let frames = Array.from(document.querySelectorAll('main > div'));
let svgs = Array.from(document.querySelectorAll('svg:not(#filters)'));
let leftStart = 47.5;
let rightStart = 114.5;
let step = 68 / svgs.length;

frames.forEach((frame, i) => {
  frame.style.setProperty('--rotate', `${i * 360 / frames.length}deg`)
})

for (let i = 0, l = svgs.length; i < l / 2; ++i) {
  let image1 = svgs[i];
  let image2 = svgs[l - i - 1];
  let diff = i * step;
  
  let left1 = image1.querySelector('.pupil-left');
  let right1 = image1.querySelector('.pupil-right');
  let left2 = image2.querySelector('.pupil-left');
  let right2 = image2.querySelector('.pupil-right');
  
  [left1,left2].forEach(left => { left.setAttribute('cx', '' + (leftStart + diff)) });
  [right1,right2].forEach(right => {right.setAttribute('cx', '' + (rightStart + diff))});
}







const options = document.querySelectorAll('input, select');
const progress = document.querySelector('aside');
const stepper = document.querySelector('.group');
const docStyle = document.documentElement.style;

const rule = document.getElementById('rule');
const duration = document.getElementById('duration');
const direction = document.getElementById('direction');

setGuides(16);
updateRule(true);

options.forEach(el => {
  el.addEventListener('change', e => {
    let value = e.currentTarget.value;
    if (e.currentTarget.id === 'duration') {
      value = value + 'ms';
    }
    if (e.currentTarget.id === 'step-count') {
      setGuides(value);
      if (document.documentElement.classList.contains('side-by-side')) {
        updateLabels(value); 
      }
    }
    docStyle.setProperty(`--${e.currentTarget.id}`, value);
    updateRule();
  });
});

function setGuides(count) {
  let images = [];
  for (let i = 0; i < count; ++i) {
    images.push(`linear-gradient(
      to right,
      hsla(0,0%,70%,0) ${i / count * 100}%,
      hsla(0,0%,70%,.5) ${i / count * 100}%,
      hsla(0,0%,70%,.5) calc(${i / count * 100}% + 2px),
      hsla(0,0%,70%,0) calc(${i / count * 100}% + 2px))`)
  }
  progress.style.backgroundImage = images.join(',');
}

function updateRule(initial) {
  const s = window.getComputedStyle(stepper);
  rule.textContent = `animation: go ${s.animationDuration} infinite ${s.animationDirection} ${s.animationTimingFunction.replace(' ','')}`;
  if (initial && s.animationTimingFunction === 'ease') {
    document.getElementById('end').setAttribute('selected','selected');
    docStyle.setProperty('--easing', document.getElementById('end').value);
    updateRule();
  }
}

const countLabels = document.querySelectorAll('.count-label');
function updateLabels(value) {
   countLabels.forEach(label => {
     label.textContent = value;
   });
}
              
            
!
999px

Console