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 class="container">
  <div class="social-share">
    <a id="facebookShare" href="#" onClick="window.open('https://www.facebook.com/sharer/sharer.php?u={{ entry.getUrl() }}','share','resizable,height=360,width=470'); return false;">
      <i class="fa fa-facebook"></i> <span>Share on Facebook</span>
    </a>
    <a id="twitterShare" href="#" onClick="window.open('https://twitter.com/home?status={% if entry.twitterTagLine %}{{ entry.twitterTagLine|url_encode }}{% else %}{{ entry.title|url_encode }}{% endif %}%20{{ entry.getUrl() }}','share','resizable,height=360,width=470'); return false;">
      <i class="fa fa-twitter"></i> <span>Tweet</span>
    </a>
    <a id="linkedinShare" href="https://www.linkedin.com/shareArticle?mini=true&url={{ entry.getUrl() }}&title={{ entry.title }}{% if entry.linkedinBody %}&summary={{ entry.linkedinBody }}{% endif %}" target="_blank">
      <i class="fa fa-linkedin"></i> <span>Share on LinkedIn</span>
    </a>
    <a id="emailShare" href="mailto:?Subject=Netflix Media Center: {{ entry.title }}&Body={% if entry.emailBody %}{{ entry.emailBody|url_encode }}{% endif %}%20{{ entry.getUrl() }}">
      <i class="fa fa-envelope"></i> <span>Email</span>
    </a>
  </div>
</div>
              
            
!

CSS

              
                @import 'nib'
  
 body
   font-size 10px
   font-family sans-serif
   font-weight 600
   font-style normal
   

clearfix()
  &::before, &::after
    display table
    content ' '
  &::after
    clear both
    
.container
  display block
  position relative
  
.social-share
  display flex
  justify-content center
  width 100%
  margin 4.4em auto 7.4em auto
  clearfix()
  font-size 1.25em
  text-rendering optimizeLegibility
  font-smoothing antialiased
  a
    margin-right 10px
    padding 1em
    color white
    background transparent
    font-size 1.2em
    transition all 125ms linear
    position relative
    display block
    overflow hidden
    text-decoration none
    clearfix()
    span
      z-index 10
      position relative
    i
      margin-right 5px
      z-index 10
      position relative
    &:after
      width 100%
      height 100%
      background white
      position absolute
      top 0
      left 0
      right 0
      bottom 0
      display block
      z-index 0
      transition all 125ms linear
    &:hover
      &:after
        transform translateY(95%)
    &#facebookShare
      &:after
        background #3b5998
      &:hover
        color #3b5998
    &#twitterShare
      &:after
        background #55acee
      &:hover
        color #55acee
    &#linkedinShare
      &:after
        background #0976b1
      &:hover
        color #0976b1
    &#emailShare
      &:after
        background #e50914
      &:hover
        color #e50914
              
            
!

JS

              
                
              
            
!
999px

Console