123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div id="main-ctr">
  <svg width="718px" height="551px" viewBox="0 0 718 551" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
    <g id="tvlk" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
        <path d="M145,342 L187,323 L254,341 L183,374 L145,342 Z" id="Path-1" fill="#1788B4" sketch:type="MSShapeGroup"></path>
        <path d="M0,330 L146,342 L183,374 L0,330 Z" id="Path-2" fill="#1AB1EB" sketch:type="MSShapeGroup"></path>
        <path d="M183,374 L254,341 L244,443 L183,374 Z" id="Path-3" fill="#1895C6" sketch:type="MSShapeGroup"></path>
        <path d="M253,341 L278,337 L318,465 L244,443 L253,341 Z" id="Path-4" fill="#23B4EC" sketch:type="MSShapeGroup"></path>
        <path d="M277,337 L292,282 L506,434 L318,465 L277,337 Z" id="Path-5" fill="#1CBDFB" sketch:type="MSShapeGroup"></path>
        <path d="M318,465 L429,481 L507,434 L318,465 Z" id="Path-6" fill="#149ED4" sketch:type="MSShapeGroup"></path>
        <path d="M430,481 L507,434 L542,471 L430,481 Z" id="Path-7" fill="#1AB0EB" sketch:type="MSShapeGroup"></path>
        <path d="M431,480 L542,471 L660,538 L431,480 Z" id="Path-8" fill="#1788B4" sketch:type="MSShapeGroup"></path>
        <path d="M622,527 L655,551 L560,512 L622,527 Z" id="Path-9" fill="#0E6586" sketch:type="MSShapeGroup"></path>
        <path d="M293,283 L278,237 L450,310 L507,435 L293,283 Z" id="Path-10" fill="#1AB0EB" sketch:type="MSShapeGroup"></path>
        <path d="M278,237 L256,170 L449,309 L278,237 Z" id="Path-11" fill="#159ED3" sketch:type="MSShapeGroup"></path>
        <path d="M256,170 L332,149 L449,309 L256,170 Z" id="Path-12" fill="#1DBDFB" sketch:type="MSShapeGroup"></path>
        <path d="M332,148 L412,184 L447,307 L332,148 Z" id="Path-13" fill="#1AB0EB" sketch:type="MSShapeGroup"></path>
        <path d="M409,0 L413,185 L333,149 L409,0 Z" id="Path-14" fill="#14AAE4" sketch:type="MSShapeGroup"></path>
        <path d="M410,0 L302,60 L334,148 L410,0 Z" id="Path-15" fill="#24B2E9" sketch:type="MSShapeGroup"></path>
        <path d="M302,60 L267,103 L333,147 L302,60 Z" id="Path-16" fill="#1E9ACA" sketch:type="MSShapeGroup"></path>
        <path d="M267,103 L256,169 L333,148 L267,103 Z" id="Path-17" stroke="#17A3D9" fill="#16A3DA" sketch:type="MSShapeGroup"></path>
        <path d="M449,308 L503,385 L506,432 L449,308 Z" id="Path-18" fill="#0476B5" sketch:type="MSShapeGroup"></path>
        <path d="M413,184 L487,277 L502,384 L447,306 L413,184 Z" id="Path-19" stroke="#1592D7" fill="#1592D7" sketch:type="MSShapeGroup"></path>
        <path d="M414,186 L506,137 L488,278 L414,186 Z" id="Path-20" fill="#188AC9" sketch:type="MSShapeGroup"></path>
        <path d="M487,277 L615,198 L502,383 L487,277 Z" id="Path-21" fill="#0B84C7" sketch:type="MSShapeGroup"></path>
        <path d="M505,137 L615,199 L488,277 L505,137 Z" id="Path-22" fill="#0375B5" sketch:type="MSShapeGroup"></path>
        <path d="M505,137 L589,102 L615,199 L505,137 Z" id="Path-23" fill="#1592D7" sketch:type="MSShapeGroup"></path>
        <path d="M589,102 L718,70 L615,199 L589,102 Z" id="Path-24" fill="#198AC9" sketch:type="MSShapeGroup"></path>
    </g>
  </svg>
</div>
            
          
!
            
              @import "bourbon";
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300);

html,
body {
  display: table;
  width: 100%;
  height: 100%;
  background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/111167/grad-bg.png") no-repeat center center/cover #f8f8f8;
}

#main-ctr {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

svg {
  width: 40%;
  display: inline-block;
}

.copyright {
  @include position(fixed, x 15px 15px x);
  font-family: "Roboto";
  
  span {
    line-height: 36px;
    color: rgba(255,255,255,.75);
    margin-right: 10px;
    font-weight: 300;
    
    a {
      font-weight: 400;
      text-decoration: none;
      color: #ea4c89;
    }
  }
  
  .balapa {
    width: 30px;
    height: 30px;
    display: block;
    background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/111167/profile/profile-512_4.jpg");
    background-size: cover;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,.75);
    float: right;
  }
}
            
          
!
            
              var path = "#tvlk path";

var tl = new TimelineMax({
  repeat: -1,
  repeatDelay: .3,
  // delay: .3,
  yoyo: true
});

tl.set(path, {
  scale: 0,
  opacity: 0,
  transformOrigin: "left bottom"
})

tl.staggerTo(path, 1.5, {
  scale: 1,
  opacity: 1,
  ease: Elastic.easeInOut,
}, 0.05, 0, allDone)

function allDone(){
  TweenMax.set(path, {
    transformOrigin: "right top"
  }).staggerTo(path, 1.5, {
    x: 10,
    scale: 0,
    opacity: 0,
    ease: Power2.easeOut
  }, 0.05, 0)
}

// var from = {
//   scale: 0,
//   opacity: 0,
//   transformOrigin: "left center"
// }

// var to = {
//   scale: 1,
//   opacity: 1,
//   ease: Elastic.easeInOut
// }

// tl.staggerFromTo(path, 1.5, from, to, 0.05, 0);

// copy
balapaCop("Traveloka Low Poly Animation", "#999");
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console