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 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.

HTML

              
                
<svg id="toiPaper" xmlns="http://www.w3.org/2000/svg" viewBox=" 0 0 1421 1437">
  <path fill="#252628" d="M3.5 0h1417v1142.3L2.2 1144z"/>
  
  <g id="paperCut" fill="#f6f7f6">
    <path  d="M265.5-4885.5l608.5 8v6001H265.5z"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M266 569.4l608 36"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3 304.6l608 33.9"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M266 840.2l605.5 37.9"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-233.5l608 36"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-498.4l608 34"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M272.7 37.3l605.5 37.9"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-1044.3l608 36"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-1309.2l608 34"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M272.7-773.5l605.5 37.9"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-1849.6l608 36"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-2114.4l608 33.9"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M272.7-1578.8l605.5 38"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-2652.8l608 35.9"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-2917.7l608 33.9"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M272.7-2382l605.5 37.8"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-3456.1l608 35.9"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-3721l608 34"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-3185.4l605.4 38"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-4263.4l608 36"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M270.3-4528.3l608 34"/>
    <path stroke="#989798" stroke-dasharray="12.9 3.2" stroke-dashoffset="19.3" stroke-miterlimit="0" stroke-width="3.2" d="M272.7-3992.6l605.5 37.9"/>
  </g>
  

  <path  class="paperFalls" fill="#252628" d="M232.2-218h682.2l1.4 331.8-683.6-62z"/>
  <path class="paper" fill="#252628" d="M11.8 8.2v1280.5h280c1-258 .7-618 2.7-876-3.8-30 6.1-273.4 166.9-279.1 134.7 5.7 281 5.9 380.2 12.8-97.4 3.3-225 75.9-241.3 259.8-3.6 176.4 1 337-.3 513.5l-.5 369h818.4V8.2z"/>
  <path class="paper02 hidden" fill="#252628" d="M0 8.2v1270.5h282.3c1-258 .7-616.8 2.7-874.8-3.7-30.1-2.2-86.4 67.3-81 135.8 5.7 206.2 13.6 306.2 20.5-21.7 5.5-65 9-66 66-3.8 176.3 2 333.8.6 510.3l-.5 359H1418V8.2z"/>  

  <path class="rolleUnten" fill="#6e6e6e" d="M600 406.1l245-.7v270.8l-246.4-15.3z"/>
  <path id="rolle" fill="#cdcacd" stroke="#4e4f50" stroke-width="2" d="M548.1 544.7a227 221.5 0 1 1 0-.6" transform="matrix(1.06279 0 0 1.1896 505 -242.8)"/>
  <path class="rolleInnen" fill="#616162" stroke="#3f3b3b" stroke-dashoffset="14" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.5" d="M910 410.4c1 37.3-26.7 68.4-61.9 69.4-35.1 1-64.4-28.4-65.3-65.8-1-37.3 26.8-68.3 62-69.3 35-1 64.2 28.3 65.2 65.5"/>

  <path class="paperCoverBottom" fill="#252628" d="M289 816.4l315.8 11.8v314H287z"/>
  <path class="paperCoverBottom" fill="none" stroke="#000" stroke-dasharray="6.4 12.8" stroke-width="3.2" d="M281.2 910.1l309 11.8" transform="matrix(1.02207 0 0 1.021 1.5 -113.3)"/>
  
</svg>

<h1>And now ... ?</h1>
              
            
!

CSS

              
                body{
  margin:0;
  background-color:#252628;
  height:100%;
  overflow:hidden;
}
#toiPaper{
  position: absolute;
  top:-50px;
  left: -10%;
  width: auto;
  height: 140%;
  overflow:visible;
}

.hidden{
  visibility:hidden;
}


h1{
  font-family: 'Work Sans', sans-serif;
  position: absolute;
  top: 51%;
    left: 9%;
  font-size: 10vw;
  font-weight: 100;
  margin: 0;
  color:#9a9a9a;
  visibility:hidden;
}
              
            
!

JS

              
                
var time = 6,
    laenge = 4800;

TweenLite.defaultEase = Power2.easeIn;

TweenLite.set('#rolle',{x:'-=2', y:'+=4px'})
TweenLite.set('.rolleUnten',{ y:'-=2px'})

var paper  = new TimelineLite()
.to(".paper",time, {morphSVG:".paper02", force3D:true },0)
.to('.paper',time,{x:192, y:'+=2'},0)
.to('#paperCut',time,{y:laenge},0)
.to('.paperCoverBottom',time,{y:laenge, x:40},0)
.to('#rolle',time,{scale:0.27, transformOrigin:"center 50%"},0)
.to('.rolleUnten',6,{scale:0.26, x:'+=3', y:'-=5',  transformOrigin:"right top"},0)
.to('.paperFalls',1,{scaleY:5, ease: Power2.easeOut},6)//ease !!
.to('.rolleUnten',0.1,{autoAlpha:0},6)
.to('.rolleInnen',0.8,{scale:30, transformOrigin:"center center"},6.1)
.to('h1',0.4,{autoAlpha:1})





              
            
!
999px

Console