Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                h1.shimmer Pure CSS Shimmer
p This is a CSS-only implementation of Facebook's newly-open-sourced iOS Shimmer effect. Check it out on 
  a(href="https://github.com/facebook/Shimmer") GitHub
  |. You can also find a Canvas implementation 
  a(href="https://tedtoy.github.io/ShimmerJS/") here
  | .
  
              
            
!

CSS

              
                body
  background: #000

// Methods
vendor(prop, args)
  -webkit-{prop} args
  -moz-{prop} args
  {prop} args

bg-vendor(args)
  background: -webkit-gradient(args)
  background: -moz-gradient(args)
  background: gradient(args)

// Some Aesthetic Styling
.shimmer
  font-family: "Lato"
  font-weight: 300
  font-size: 3em
  margin: 0 auto
  padding: 0 140px 0 0 //Necessary for iteration delay :(
  display: inline
  margin-bottom: 0

p
  font-family: "Lato"
  font-weight: 300
  font-size: 1em
  color: rgba(255,255,255,0.65)
  width: 500px
  text-align: justify
  line-height: 1.5em
  border-top: 1px dashed rgba(255,255,255,0.2)
  margin: 10px 0 0 5px
  padding-top: 10px

  a
   text-decoration: none
   color: #fff

   &:visted
     color: #fff

// Shimmer Magic
.shimmer
  text-align: center
  color: rgba(255, 255, 255, 0.1)

  gradientOptions= linear, left top, right top, from(#222), to(#222), color-stop(0.5, #fff)

  bg-vendor(gradientOptions)
  vendor(background-size, 125px 100%)
  vendor(background-clip, text)
  vendor(animation-name, shimmer)
  vendor(animation-duration, 2s)
  vendor(animation-iteration-count, infinite)
  background-repeat: no-repeat
  background-position: 0 0
  background-color: #222

@keyframes shimmer
  0%
    background-position: top left

  100%
    background-position: top right
              
            
!

JS

              
                
              
            
!
999px

Console