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

              
                <div id="shimmerWave">Generating summary...</div>
              
            
!

CSS

              
                $text: #46afc8
$count: 21

body, html
  height: 100%
  margin: 0
  display: flex
  justify-content: center
  align-items: center
  background-color: #000
  text-size-adjust: 100%
  -webkit-font-smoothing: antialiased
  text-rendering: optimizelegibility
  text-size-adjust: none
  
#shimmerWave
  color: $text
  font-size: 16px
  font-family: 'Open-Sans', sans-serif
  font-weight: 600
  perspective: 80px
  transform-style: preserve-3d
  span
    position: relative
    transition: all .3s ease
    display: inline-block
    animation: wave 2.4s ease infinite
    letter-spacing: 0.01em
    transform-origin: 100% 50%
    transform-style: preserve-3d
     //border: 1px solid red
    
    //span count
    @for $i from 1 through $count
      &:nth-child(#{$i})
        animation-delay: 0.05s * ($i - 1)  
      
@keyframes wave
  0%
    transform: translate3D(0,0,0) scale(1) rotateY(0)
    color: $text
    text-shadow: 0 0 0 rgba($text,0)
  12%
    transform: translate3D(2px,-2px,2px) scale(1.16) rotateY(6deg)
    color: lighten($text,54%)
  15%
    text-shadow: 0 0 2px lighten($text,30%) 
  24%
    transform: translate3D(0,0,0) scale(1) rotateY(0)
    color: lighten($text,10%)
    opacity: 1
  36%
    transform: translate3D(0,0,0) scale(1) 
  100%
    transform: scale(1)
    opacity: .8



              
            
!

JS

              
                const target = document.getElementById('shimmerWave');
function splitTextToSpans(targetElement) {
    if (targetElement) {
        const text = targetElement.textContent;
        targetElement.innerHTML = '';
        for (let character of text) {
            const span = document.createElement('span');
            if (character === ' ') {
                span.innerHTML = '&nbsp;';
            } else {
                span.textContent = character;
            }
            targetElement.appendChild(span);
        }
    }
}
splitTextToSpans(target);

              
            
!
999px

Console