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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <section>
  
  <div class="container vh-100">	
	<div class="row pt-5 pb-5 h-100">
			
			<div class="col-lg-2 mx-auto d-flex flex-column justify-content-center align-self-center text-center">
							FIRST SECTION
        SCROLL DOWN
			</div>
			</div>	
		</div>	
  
</section>

<section id="big-plus" class="vh-100">
  
  <div id="plus" class="container">
 <div class="row">
			
			<div class="col-lg-12 d-flex flex-column justify-content-center align-self-center">
    <img class="plus1" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Ambox_emblem_plus.svg/1200px-Ambox_emblem_plus.svg.png" width="200" / alt="plus">	
   </div>
    </div>
  </div> 
  <div id="content" class="container">
    <div class="row">
			
			<div class="col-lg-12 d-flex flex-column justify-content-center align-self-center">
			<div class="row">
			<div class="col-lg-6 align-self-center">
			<h3 class="title" style="color:#C7102E; font-size:90px; font-family:'Carnas Light'; width:100%; ">CHANGE</h3>
			<span style="width:100%; float:left; font-size:20px;" class="pb-2">Costruiamo soluzioni in grado di innovare<br> l’identità dei brand, trasformandolo in un<br> hub di valori ed efficacia comunicativa.</span>
		
			</div>	
				
				
			<div class="col-lg-6" >
			
				
			</div>		
				
			</div>
				
				
			</div>
			</div>	
		</div>	
 
</section>


<section id="third">
  
  <div class="container vh-100">	
	<div class="row pt-5 pb-5">
			
			<div class="col-lg-2 mx-auto d-flex flex-column justify-content-center align-self-center text-center">
									
			</div>
			</div>	
		</div>	
  
</section>

              
            
!

CSS

              
                
#big-plus {
	
	
	width: 100%;
    float: left;
    background: rgb(255,255,255);
    background: -moz-radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(219,219,219,1) 52%);
    background: -webkit-radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(219,219,219,1) 52%);
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(219,219,219,1) 52%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#dbdbdb",GradientType=1);
    position: relative;
    display: block;
  
}

.title {

}

#third {
  
  width:100%;
  float:left;
  height:100vh;
}

.panel {
  position: absolute;
  will-change: transform;
}
              
            
!

JS

              
                gsap.registerPlugin(ScrollTrigger);
var tl = gsap.timeline({
  scrollTrigger: {
      trigger: "#big-plus",
      scrub: true,
      pin: true,
      start: "top top",
      end: "bottom top",
      toggleClass: "active",
      ease: "power2",
      markers: true,
    },
});

tl.set( ".panel", { zIndex: (i, target, targets) => targets.length - i} )
  .set( ".plus1", { yPercent: 0, xPercent: -120, autoAlpha: 0 } )
  .set( "#content",{ x: -100, autoAlpha: 0 } )
  .to(".plus1", {
    autoAlpha: 1,
    duration: 1, 
    x: 500, 
    rotation: 365,
    scale: 0.1,
    xPercent: -50
  })
  .to( "#content", {
      autoAlpha: 1,
      x: 0,
      duration: 1, 
  });
              
            
!
999px

Console