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

              
                %body
  %svg#instagram{:viewbox => "0 0 512 512"}
    %g
      %path#border{:d => "M256 77.1c-48.6 0-54.7 0.2-73.8 1.1 -19 0.9-32.1 3.9-43.4 8.3 -11.8 4.6-21.7 10.7-31.7 20.6 -9.9 9.9-16.1 19.9-20.6 31.7 -4.4 11.4-7.4 24.4-8.3 43.4 -0.9 19.1-1.1 25.2-1.1 73.8 0 48.6 0.2 54.7 1.1 73.8 0.9 19 3.9 32.1 8.3 43.4 4.6 11.8 10.7 21.7 20.6 31.7 9.9 9.9 19.9 16.1 31.7 20.6 11.4 4.4 24.4 7.4 43.4 8.3 19.1 0.9 25.2 1.1 73.8 1.1s54.7-0.2 73.8-1.1c19-0.9 32.1-3.9 43.4-8.3 11.8-4.6 21.7-10.7 31.7-20.6 9.9-9.9 16.1-19.9 20.6-31.7 4.4-11.4 7.4-24.4 8.3-43.4 0.9-19.1 1.1-25.2 1.1-73.8s-0.2-54.7-1.1-73.8c-0.9-19-3.9-32.1-8.3-43.4 -4.6-11.8-10.7-21.7-20.6-31.7 -9.9-9.9-19.9-16.1-31.7-20.6 -11.4-4.4-24.4-7.4-43.4-8.3C310.7 77.3 304.6 77.1 256 77.1L256 77.1z"}
      %path#innerCircle{:d => "M256 315.6c-32.9 0-59.6-26.7-59.6-59.6s26.7-59.6 59.6-59.6 59.6 26.7 59.6 59.6S288.9 315.6 256 315.6z"}
      %circle#circle{:cx => "351.5", :cy => "160.5", :r => "21.5"}

  %arcticben#zeu
    arcticben.co.uk
    %span
      |
    
  #viu 
              
            
!

CSS

              
                $svg-colour = #fff

body 
   overflow hidden
  
svg
    width 325px
    margin 0 auto
    position absolute
    left 0
    right 0
    top 20%
    z-index 10
    
#border, #innerCircle
    fill none
    stroke $svg-colour
    stroke-width 30px
        
#innerCircle
     opacity: 0
     
#circle
    fill $svg-colour
 
arcticben 
    opacity 0
    z-index 10
    
.activ
    font-family Montserrat
    opacity 1
    height 55px
    position absolute
    margin 0 auto
    left 0 
    right 0
    color #fff
    top 35%
    font-size 50px
    width 9em
    overflow hidden
    animation-delay 1s
    animation type 1s steps(20, end)
    
    @keyframes type
      from  { width: 0 }
span
    animation: blink 1s infinite
      
    @keyframes blink
      to  { opacity: .0 }
        
#viu
    visibility inherit
    opacity 1
    position absolute
    z-index 1
    left 0
    right 0
    top 0
    bottom: 0
    background -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%)
    background -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%)
    background linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%)
    
     
              
            
!

JS

              
                //objects
var svg = document.getElementById('instagram'),
    border = document.getElementById('border'),
    innerCircle = document.getElementById('innerCircle'),
    circle = document.getElementById('circle'),
    barbat = document.getElementById('zeu'),
    viuviu = document.getElementById('viu'),
    corp = document.body;
 

//TL
 var tl = new TimelineMax();
     tl
        .set(innerCircle, {drawSVG:'0'})
        .from(border, 1.5, {drawSVG:'0',ease:Power4.easeInOut})    
        .to(innerCircle, 1.5, {drawSVG:'100%', autoAlpha:1 , ease:Power4.easeInOut},0.5)
        .from(circle, 1,{autoAlpha:0,y:-15, ease:Bounce.easeOut},1.4)
        .to(svg, 1,{scale: 12, ease:Power4.easeOut},2.4)    
        .set(barbat,{css:{className:'activ'}},2.6);
tl.play();
  
              
            
!
999px

Console