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

              
                //https://rogue.studio/
h1.slideLetterIn MONOAME STUDIO
div.control
  label Toggle
    input#toggle(type="checkbox" onchange="toggle()")
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Bebas+Neue&display=swap')

html,body
  margin: 0
  display: flex
  justify-content: center
  align-items: center
  height: 100%
  background-color: black
  font-family: 'Bebas Neue', sans-serif
  
h1
  font-size: 200px
  white-space: nowrap
  color: white
  font-weight: 500
  letter-spacing: 1px
  
.slideLetterIn 
  span
    @for $i from 1 through 100
      &:nth-child(#{$i}) .inner
        transition-delay: #{$i*0.05s}
    &.outer
      // border: solid 1px blue
      overflow: hidden
      display: inline-block
      transition: 1s cubic-bezier(0.55, 0.055, 0.675, 0.19)
      cursor: pointer
      &:hover
        filter: blur(5px)
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1)
        opacity: 0.9
        transform: scale(0.97)
    &.inner
      display: block
      // border: solid 1px red
      // background-color: #eee
      transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1)
      // https://easings.net/#easeInOutSine
      transform-origin: right bottom
      transform: translate(70%) rotate(30deg)
      filter: blur(3px)
  
  &.active
    span.inner
      transform: translateX(0px)
      filter: blur(0px)

  
.control
  position: fixed
  left: 20px
  bottom: 20px
  color: white
              
            
!

JS

              
                var titleEls = document.querySelectorAll(".slideLetterIn")
titleEls.forEach(el=>{
  el.innerHTML = el.innerText
    .split("")
    .map(l=> `<span class='outer'>
                <span class='inner'>${l}</span>
              </span>`)
    .join("")
})

function toggle(){
  document.querySelector(".slideLetterIn").classList.toggle("active")
}
setTimeout(function(){ 
  toggle()
},1000)

              
            
!
999px

Console