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

              
                
	<section id="home">
	<div class="wrapper">
				<div class="container">
		 <div class="logo-container">
		    <div class="logo"> <h2>360 circle</h2></div>
		  </div>

		  <div class="header_content">
							<div class="header_text">
								<h2>Lorem ipsum dolor sit amet,<br /> consectetur adipisicing elit.</h2>
								<p class="padding_left_80"> <span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
								tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
								quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
								consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
								cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
								proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span></p>
							</div>
						</div><!--header_content-->
		</div><!--container-->
		</div><!--wrapper-->

	<div class="header_point_service">
								<h2>Lorem ipsum dolor sit amet,</h2>
								<p><span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
								tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
								quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
								consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
								cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
								proident, sunt in culpa qui officia deserunt mollit anim id est laborum..</span></p>
							</div>

</section>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
 <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TimelineLite.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/animation.gsap.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/plugins/ScrollToPlugin.min.js"></script> 
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.2/plugins/CSSPlugin.min.js"></script>
              
            
!

CSS

              
                	body,
html {
    height: 100%;
    margin: 0
}

section {
    /*height: 642.6px;*/
  width: 100%;
  position: relative;

}

.hybreed_wrapper{
width: 1200px;
margin: 0 auto;
}
.hybreed_container{
  max-width: 100%;
  display: block;
}
.logo-container{
    border-radius: 10px;
    position: fixed;
    top: 10%;
    right:0;
    transform: translate(-150%, -50%);
    opacity: 1;
	z-index:9;
    transition: opacity 1s;}

.logo {
    position:absolute;
    right: 130px;
	top: 50%;
    width: 250px;
    height: 250px;
    background-color: #EFBD40;
    border-radius: 50%;
   display: flex;
   z-index: 10;

}
.logo-container .logo h2{
    margin: auto;
    color: #fff;
    font-size: 35px;
}


.header_content{
    width: 850px;
    margin: 13% 0;
}
.header_content .header_text{
    width: 100%;
    position: relative;
}

.header_content .header_text h2{
    font-size: 70px;
  /*  position: absolute;*/
 /*   left: 50%;
    transform: translate(-50%);*/
    width: 100%;
}

.header_content .header_text p{
    font-size: 20px;
    padding-right: 115px;
    }
    .header_content .header_text p span{
background-color: #fff;
    }
              
            
!

JS

              
                $(window).load(function() {
	var enterTL = new TimelineLite();
	enterTL.play();
	enterTL
		.from($('.logo'), 1.5, {yPercent:'-30%', autoAlpha: 0})//onload animate logo
		.from($('#home .header_text h2'), 1, {yPercent:'20%',autoAlpha: 0}, '-=1.3')//onload header slider text
		.from($('#home .header_text p'), 1, {yPercent:'15%',autoAlpha: 0,delay:0.5}, '-=1.3')//onload header slider text
})
	$(function(){
				
				var $window = $(window);
				var isTweening = false;
				document.onmousewheel = function(){ customScroll(); }
				if(document.addEventListener){
				    document.addEventListener('DOMMouseScroll', customScroll, false);
				}
				function customScroll(event){
				   
				   var delta = 0;
				   if (!event){
					   event = window.event;
				   }
				   
				   if (event.wheelDelta) {
					   delta = event.wheelDelta/120;
				   } else if(event.detail) {
					   delta = -event.detail/3;
				   }
				   
				   if (delta){
						   	var scrollTop = $window.scrollTop();
						   	var finScroll = scrollTop - parseInt(delta*100) * 3;
						   	//console.log(finScroll);				   			   
						   	TweenMax.to($window, 0.7, {
							   	scrollTo : { y: finScroll, autoKill:true },
							   	ease: Sine.easeOut,
							   	autoKill: true,
							   	overwrite: 7,
							   	onComplete: function(){ 
							   		//console.log(isTweening);
							   		//isTweening = false; 
							   	}
							});
				   }
				   if (event.preventDefault){
					   event.preventDefault();
				   }
				   event.returnValue = false;    				    
				}
			});

/*Smooth scroll end*/
var ctrl = new ScrollMagic.Controller();
	// logo-container back to stylesheet position
	new ScrollMagic.Scene({
		duration: '200%'
	})
	.setPin("#home")
	.addTo(ctrl)

var intro_1 = new TimelineLite();
	intro_1
		.to($('.header_text h2'), 1.5, {yPercent:'-20%',ease: Power1.easeOut}, '-=1.3')
		.to($('.header_text p'), 1.5,{yPercent:'-15%',ease: Power1.easeOut}, '-=1.3')
		.to($('.header_point_service'),  1.5, {yPercent:'-50%',ease: Power1.easeOut}, '-=1.3')
	new ScrollMagic.Scene({
		duration: '250%'
	})
	.setTween(intro_1)
	.addTo(ctrl)

var intro_2 = new TimelineLite();
	intro_2
	.to($('.logo'),  2.5,  {yPercent:'65%'}, '-=1.5')//onload animate logo
	.to($('.header_point_service'),  1.5, {yPercent:'-10%',ease: Power1.easeOut}, '-=1.3')
	new ScrollMagic.Scene({
		duration: '300%'
	})
	.setTween(intro_2)
	.addTo(ctrl)



	var intro_3 = new TimelineLite();
	intro_3
	.to($('.logo'),  2.5,  {x:-1550,y:350, rotation:360, opacity:'1', ease:Linear.easeOut})//onload animate logo
	new ScrollMagic.Scene({
		duration: '350%'
	})
	.setTween(intro_3)
	.addTo(ctrl)
              
            
!
999px

Console