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

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

              
                
<svg id="lines" xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 500 300">
  <path class="path path01" fill="none" stroke="#ffce00" stroke-width="5.5" d="M82 35l94 69"/>
  <path class="path path02" fill="none" stroke="#ffce00" stroke-width="5.5" d="M176 103l-57 59"/>
  <path class="path path03" fill="none" stroke="#ffce00" stroke-width="5.5" d="M119 162l81 77"/>

  <circle class="star star01" cx="83.5" cy="35.5" r="6" fill="#ffce00"/>
  <circle class="star star02" cx="172.5" cy="103.5" r="6" fill="#ffce00"/>
  <circle class="star star03" cx="120.5" cy="162.5" r="6" fill="#ffce00"/>
  <circle class="star star04" cx="198.5" cy="238.5" r="6" fill="#ffce00"/>

</svg>


<svg id="text" xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 500 300">

  <g class="lines one" fill="#505050">
    <text x="27.1" y="38.6" font-family="'ArialMT','Arial',sans-serif" font-size="12">Number</text>
    <text x="103.1" y="42.3" font-family="'Arial-Black','Arial Black',sans-serif" font-size="19.7" font-weight="900">ONE</text>
  </g>
  <g class="lines two" fill="#505050">
    <text x="113.1" y="106.6" font-family="'ArialMT','Arial',sans-serif" font-size="12">Number</text>
    <text x="189.1" y="110.3" font-family="'Arial-Black','Arial Black',sans-serif" font-size="19.7" font-weight="900">TWO</text>
  </g>
  <g class="lines three" fill="#505050">
    <text x="63.1" y="164.6" font-family="'ArialMT','Arial',sans-serif" font-size="12">Number</text>
    <text x="139.1" y="168.3" font-family="'Arial-Black','Arial Black',sans-serif" font-size="19.7" font-weight="900">THREE</text>
  </g>
  <g class="lines four" fill="#505050">
    <text x="138.1" y="241.6" font-family="'ArialMT','Arial',sans-serif" font-size="12">Number</text>
    <text x="214.1" y="245.3" font-family="'Arial-Black','Arial Black',sans-serif" font-size="19.7" font-weight="900"> FOUR</text>
  </g>
</svg>
              
            
!

CSS

              
                body{
  background-color:grey;
}
svg{
  height:100vh;
  position:absolute;
}

#lines{
  filter: drop-shadow(0px -5px 15px #ffce00);
}

#text{
  filter: drop-shadow(9px 5px 10px #5f5f5f);
}

.star{
  visibility:hidden;
}
              
            
!

JS

              
                

var action = gsap.timeline({defaults:{ease:'none'}})
.to(".star01", {autoAlpha:0, scale:3, transformOrigin:'center', duration:0.2, repeat:3, yoyo:true})
.from(".one", {autoAlpha:0, duration:1},'-=0.6')
.from(".path01", {drawSVG:0, duration:1})
.to(".star02", {autoAlpha:0, scale:3, transformOrigin:'center', duration:0.2, repeat:3, yoyo:true})
.from(".two", {autoAlpha:0, duration:1},'-=0.6')
.from(".path02", {drawSVG:0, duration:1})
.to(".star03", {autoAlpha:0, scale:3, transformOrigin:'center', duration:0.2, repeat:3, yoyo:true})
.from(".three", {autoAlpha:0, duration:1},'-=0.6')
.from(".path03", {drawSVG:0, duration:1})
.to(".star04", {autoAlpha:0, scale:3, transformOrigin:'center', duration:0.2, repeat:3, yoyo:true})
.from(".four", {autoAlpha:0, duration:1},'-=0.6')

.to('.star', {scale:2, transformOrigin:'center', stagger:{each:0.2, repeat:1, yoyo:true}}, "end")
.to('.lines', {scale:1.2, transformOrigin:'center', stagger:{each:0.2, repeat:1, yoyo:true}}, "end")
              
            
!
999px

Console