css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              p.info Oh No! Cody is sad! Internally sad!
h1.internal
   span.five 5
   span.zero 0
   span.zero 0
footer.link
   a(href="https://www.altreiter.at") altreiter.at
            
          
!
            
              @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700")

@keyframes cross1 
   0%
      transform:  rotate(45deg) scaleX(0) scaleY(0.7)
      box-shadow: 0 1vmin 5vmin rgba(0,0,0,0)
   100% 
      transform:  rotate(45deg) scaleX(1) scaleY(1)
      box-shadow: 0 1vmin 5vmin rgba(0,0,0,0.5)
   
@keyframes cross2
   0%
      transform:  rotate(-45deg) scaleX(0) scaleY(0.7)
      box-shadow: 0 1vmin 5vmin rgba(0,0,0,0)
      
   100% 
      transform:  rotate(-45deg) scaleX(1) scaleY(1)
      box-shadow: 0 1vmin 5vmin rgba(0,0,0,0.5)
      
   
@keyframes cross1Reverse 
   100%
      transform:  rotate(45deg) scaleX(0) scaleY(0.7)
      box-shadow: 0 1vmin 5vmin rgba(0,0,0,0)
      opacity: 0
   0% 
      transform:  rotate(45deg) scaleX(1) scaleY(1)
      box-shadow: 0 1vmin 5vmin rgba(0,0,0,0.5)
      opacity: 1
   
@keyframes cross2Reverse
   100%
      transform:  rotate(-45deg) scaleX(0) scaleY(0.7)
      box-shadow: 0 1vmin 5vmin rgba(0,0,0,0)
      opacity: 0
   0% 
      transform:  rotate(-45deg) scaleX(1) scaleY(1)
      box-shadow: 0 1vmin 5vmin rgba(0,0,0,0.5)
      opacity: 1
   
@keyframes flip
   0%
      transform: rotate(-90deg) rotateY(0deg) translateX(0)
   60%
      transform: rotate(-90deg) rotateY(200deg) translateX(3vmin)
   80%
      transform: rotate(-90deg) rotateY(170deg) translateX(3vmin)
   100% 
      transform: rotate(-90deg) rotateY(180deg) translateX(3vmin)
   
@keyframes flipReverse
   100%
      transform: rotate(-90deg) rotateY(0deg) translateX(0)
   0% 
      transform: rotate(-90deg) rotateY(180deg) translateX(3vmin)
   
body, html
   width: 100vw
   height: 100vh
   background-color: #9D1255
   overflow: hidden
   background-image: linear-gradient(45deg, #e91e63, #420046)
   
   font-family: "Open Sans"
   font-weight: 700
   display: flex
   justify-content: center
   align-items: center
   flex-direction: column
   
.internal
   font-size: 50vmin
   text-align: center
   color: #fff
   text-shadow: 0 1vmin 5vmin rgba(0,0,0,0.5)
   position: relative
   margin-bottom: 10vmin
   transition: transform 300ms
   &:hover
      transform: scale(1.2)
      cursor: pointer
      &:before
         animation: flipReverse 300ms 
      .zero
         &:before
            animation: cross1Reverse 300ms
         &:after
            animation: cross2Reverse 300ms
   &:before
      content: "("
      position: absolute
      transform: rotate(-90deg)
      right: 25vmin
      bottom: -30vmin
      display: block
      font-size: 115%
      animation: flip 1000ms 1.6s ease-in-out forwards
      transition: transform 300ms
      
   
.zero
   position: relative
   &:before, &:after
      position: absolute
      display: block
      content: ''
      width: 140%
      height: 10vmin
      background: #3fe9ea
      background-image: linear-gradient(90deg, #3fe9ea, #4ea6d0)
      left: -20%
      top: 45%
      box-shadow: 0 1vmin 5vmin rgba(0,0,0,0.5)
      
   &:before
      transform: rotate(45deg) scaleX(0) scaleY(0.7)
      animation: cross1 300ms 1s ease-in-out forwards
   
   &:after
      transform: rotate(-45deg) scaleX(0) scaleY(0.7)
      animation: cross2 400ms 1.2s ease-in-out forwards
   
   &:nth-child(2)
      &:before
         transform: rotate(45deg) scaleX(0) scaleY(0.7)
         animation: cross1 400ms 1.1s ease-in-out forwards
   
      &:after
         transform: rotate(-45deg) scaleX(0) scaleY(0.7)
         animation: cross2 500ms 1.3s ease-in-out forwards
   
.info
   text-transform: uppercase
   color: #3fe9ea
   text-shadow: 0 0.5vmin 1vmin rgba(0,0,0,0.5)
   font-size: 200%
   padding: 0 24px
   text-align: center
.link
   position: absolute
   bottom: 0
   padding-bottom: 24px
   a
      color: #fff
      opacity: 0.5
      text-decoration: none
      font-weight: 400
      font-size: 90%
      transition: opacity 300ms 
      &:hover
         opacity: 0.9
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console