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

              
                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
              
            
!

CSS

              
                @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
              
            
!

JS

              
                
              
            
!
999px

Console