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

              
                <link href="https://fonts.googleapis.com/css?family=Baloo+Bhaijaan" rel="stylesheet">
<div class="container">
		<div class="box fw header">
			<h1>Skroll.js</h1>
		</div>
		<div class="box w3 anim1"></div>
		<div class="box w3 anim1"></div>
		<div class="box w3 anim1"></div>
		<div class="box anim2 green"></div>
		<div class="box anim2 green"></div>
		<div class="box anim2 green"></div>
		<div class="box anim2 green"></div>
		<div class="box anim2 green"></div>
		<div class="box w4 anim3"></div>
		<div class="box w4 anim3"></div>
		<div class="box w4 anim3"></div>
		<div class="box w4 anim3"></div>
		<div class="box w4 anim3"></div>
		<div class="box w4 anim3"></div>
		<div class="box w4 anim3"></div>
		<div class="box w4 anim3"></div>
		<div class="box w2 anim4 yellow h2"></div>
		<div class="box w2 anim4 yellow h2"></div>
		<div class="box w4 anim5"></div>
		<div class="box w4 anim5"></div>
		<div class="box w4 anim5"></div>
		<div class="box w4 anim5"></div>
		<div class="box w4 anim6 blue"></div>
		<div class="box w4 anim6 blue"></div>
		<div class="box w4 anim6 blue"></div>
		<div class="box w4 anim6 blue"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 anim7 violet"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 h5 anim8 grey"></div>
		<div class="box w5 anim9 dblue"></div>
		<div class="box w5 anim9 dblue"></div>
		<div class="box w5 anim9 dblue"></div>
		<div class="box w5 anim9 dblue"></div>
		<div class="box w5 anim9 dblue"></div>
		<div class="box w4 anim10 yellow"></div>
		<div class="box w4 anim10 yellow"></div>
		<div class="box w4 anim10 yellow"></div>
		<div class="box w4 anim10 yellow"></div>
		<div class="box w4 anim10 yellow"></div>
		<div class="box w4 anim10 yellow"></div>
		<div class="box w4 anim10 yellow"></div>
		<div class="box w4 anim10 yellow"></div>
		<div class="box w5 anim11"></div>
		<div class="box w5 anim11"></div>
		<div class="box w5 anim11"></div>
		<div class="box w5 anim11"></div>
		<div class="box w5 anim11"></div>
	</div>
              
            
!

CSS

              
                *{
		margin:0;
		padding:0;
	}
	body{
		background:#222;
		font-family:'Baloo Bhaijaan',cursive;
	}
	h1,h2,h3{
		text-align:center;
	}
	.container{
		width:80%;
		margin:0 auto;
		overflow:hidden;
	}
	.box{
		width:19%;
		height:200px;
		background:#ff5722;
		float:left;
		margin:.5%;
		border-radius:15px;
	}
	.fw{
		width:100%;
	}
	.green{
		background:#8bc34a;
	}
	.yellow{
		background:#ffc107;
	}
	.blue{
		background:#03a9f4;
	}
	.violet{
		background:#9c27b0;
	}
	.grey{
		background:#607d8b;
	}
	.dblue{
		background:#3f51b5;
	}
	.header{
		height:auto;
		color:#fff;
		background:#ff9800;
	}
	.header h1{
		padding:100px 0;
		font-size:4em;
	}
	.w3{
		width:32.333%;
	}
	.w4{
		width:24%;
	}
	.w2{
		width:49%;
	}
	.w5{
		width:19%;
	}
	.h2{
		height:400px;
	}
	.h5{
		height:50px;
	}
              
            
!

JS

              
                var skroll = new Skroll({
				mobile:true
			})
			.add(".header",{
				animation:"zoomIn",
				duration:600
			})
			.add(".anim1",{
				animation:"fadeInUp",
				delay:120,
				duration:600,
				wait:250
			})
			.add(".anim2",{
				animation:"flipInX",
				delay:120,
				duration:750
			})
			.add(".anim3",{
				animation:"rotateLeftIn",
				delay:100,
				duration:750
			})
			.add(".anim4",{
				animation:"slideInLeft",
				delay:80,
				duration:800
			})
			.add(".anim5",{
				animation:"growInLeft",
				delay:80,
				duration:500,
				easing:"cubic-bezier(0.37, 0.27, 0.24, 1.26)"
			})
			.add(".anim6",{
				animation:"growInRight",
				delay:80,
				duration:500,
				easing:"cubic-bezier(0.37, 0.27, 0.24, 1.26)"
			})
			.addAnimation("spinIn",{
				start:function(el){
	                $(el).css({
	                    transform:"rotate(-360deg) scale(.2,.2)",
	                    transformOrigin:"50% 50%",
	                    opacity:0
	                });
	            },
	            end:function(el){
	                $(el).css({
	                    transform:"rotate(0deg) scale(1,1)",
	                    opacity:1
	                })
	            }
			})
			.add(".anim7",{
				animation:"spinIn",
				delay:80,
				duration:500,
				easing:"cubic-bezier(0.37, 0.27, 0.24, 1.26)"
			})
			.add(".anim8",{
				animation:"fadeInDown",
				delay:75,
				duration:150,
				triggerBottom:.98,
				easing:"cubic-bezier(0.37, 0.27, 0.24, 1.26)"
			}).add(".anim9",{
				animation:{
					start:function(el){
						$(el).css({
							transform:"rotateX(180deg) scale(.2,.2)",
							opacity:0
						})
					},
					end:function(el){
						$(el).css({
							transform:"rotateX(0deg) scale(1,1)",
							opacity:1
						})
					}
				},
				duration:800,
				delay:100,
				triggerBottom:.8
			}).add(".anim10",{
				animation:{
					start:function(el){
						$(el).css({
							transform:"scale(2,2)",
							opacity:0
						})
					},
					end:function(el){
						$(el).css({
							transform:"scale(1,1)",
							opacity:1
						})
					}
				},
				delay:150
			}).add(".anim11",{
				animation:{
					start:function(el){
						$(el).css({
							transform:"translate(-150%,0) skew(-25deg)",
							opacity:0
						})
					},
					end:function(el){
						$(el).css({
							transform:"translate(0,0) skew(0deg)",
							opacity:1
						})
					}
				},
				duration:500,
				delay:150,
				triggerBottom:1,
				easing:"cubic-bezier(0.57,-0.22, 0, 1.33)"
			})
			.init();
			$(window).load(function(e){
				skroll.recalcPosition();
			})
			setInterval(function(){
				skroll.recalcPosition();
			},2000)
              
            
!
999px

Console