cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              
<input type="checkbox" id="color" />
<input type="checkbox" id="clip" />

<main class="reveal-triangle">
  <p>And I</p>
  <p>Say</p>
  <p>Hello</p>
</main>
<p>You Say</p>
<p>Goodbye</p>
<form>
<label for="clip">Pause Shape</label>
<label for="color">Pause Color</label>
</form>
            
          
!
            
              main {
  animation: reveal-shape 3000ms 1000ms infinite alternate ease-in-out both,
    hue-adjust 6000ms 0ms infinite alternate ease-in-out;
  //animation-play-state: var(--clip-play-state), var(--color-play-state);
  background: radial-gradient(hsl(43, 62%, 52%), hsl(43, 92%, 42%));
  width: 80vmin;
  height: 80vmin;
}

#clip:checked ~ main{ animation-play-state: paused, running; }
#color:checked ~ main { animation-play-state: running, paused; }
#color:checked + #clip:checked ~ main { animation-play-state: paused, paused; }

@keyframes reveal-shape {
  0% { clip-path: circle(0) }
  100% { clip-path: circle(40vmin) }
}
@keyframes hue-adjust {
  20% { filter: hue-rotate(50deg) }
  40% { filter: hue-rotate(150deg) }
  60% { filter: hue-rotate(200deg) }
  80% { filter: hue-rotate(240deg) }
  100% { filter: hue-rotate(320deg) }
}

body, main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
body {
  height: 100vh;
  color: hsl(23, 12%, 12%);
  background: currentColor; 
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12vmin;
}
main p:nth-of-type(even) {
  color: #fcfdff;
}

body > p {
  position: absolute;
  bottom: 50%;
  right: 50%;
  z-index: -1;
  transform: translate(50%,-50%);
  color: #fcfdff;
}
body > p:nth-of-type(2) {
  transform: translate(50%,150%);
}



form {
  position: absolute;
  bottom: .5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: hsla(0,0%,100%,.7);
  font-size: .8rem;
}
form div {
  padding: .25rem 1rem;
}
label {
  background: transparent;
  border-radius: .3rem;
  color: hsla(0,0%,100%,.7);
  padding: .25rem;
  width: 5rem;
  font-size: .8rem;
}


input[type="checkbox"] { 
  position: absolute;
  left: -100vw;
  top: 0;
  opacity: 0;
}


#clip:checked ~ * label[for="clip"] { color: red; }
#color:checked ~ * label[for="color"] { color: red; }
            
          
!
999px
Loading ..................

Console