Seamless scroll animation
How do I make an seamless scroll animation?
What is a seamless scroll animation? How do you make a seamless scroll animation? This script and codes were developed by Asakasinsky on 14 January 2023, Saturday.
Seamless scroll animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Seamless scroll animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="peopleWrapper"> <div class="foregroundImg"> <img src="http://www.ninjamultimedia.com/test/iowa/images/people_topImage.png"> </div> <div class="scrollImg1a"> <img src="http://www.ninjamultimedia.com/test/iowa/images/people_column1.png"> </div> <div class="scrollImg1b"> <img src="http://www.ninjamultimedia.com/test/iowa/images/people_column1.png"> </div> <div class="scrollImg2a"> <img src="http://www.ninjamultimedia.com/test/iowa/images/people_column2.png"> </div> <div class="scrollImg2b"> <img src="http://www.ninjamultimedia.com/test/iowa/images/people_column2.png"> </div> <div class="scrollImg3a"> <img src="http://www.ninjamultimedia.com/test/iowa/images/people_column3.png"> </div> <div class="scrollImg3b"> <img src="http://www.ninjamultimedia.com/test/iowa/images/people_column3.png"> </div> <div class="scrollImg4a"> <img src="http://www.ninjamultimedia.com/test/iowa/images/people_column4.png"> </div> <div class="scrollImg4b"> <img src="http://www.ninjamultimedia.com/test/iowa/images/people_column4.png"> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Seamless scroll animation - Script Codes CSS Codes
#peopleWrapper{ height:673px; width:320px; background: url("http://www.ninjamultimedia.com/test/iowa/images/people_background.jpg") #444; overflow:hidden; position:absolute;
}
.foregroundImg{ height:100%; width:320px; position:absolute; z-index:2;
}
.scrollImg1a{ width: 63px; height:678px; top:0px; left:10px; position:absolute;
}
.scrollImg1b{ width: 63px; height:678px; top:655px; left:10px; position:absolute;
}
.scrollImg2a{ width: 63px; height:678px; top:0px; left:80px; position:absolute;
}
.scrollImg2b{ width: 63px; height:678px; left:80px; top:656px; position:absolute;
}
.scrollImg3a{ width: 63px; height:678px; top:0px; left:108px; position:absolute;
}
.scrollImg3b{ width: 63px; height:678px; top:656px; left:108px; position:absolute;
}
.scrollImg4a{ width: 63px; height:678px; top:0px; left:158px; position:absolute;
}
.scrollImg4b{ width: 63px; height:678px; top:656px; left:158px; position:absolute;
}
Seamless scroll animation - Script Codes JS Codes
window.onload = function(){ TweenMax.to('.scrollImg1a', 30, {top:-678, repeat:-1, ease:Linear.easeNone}); TweenMax.to('.scrollImg1b', 30, {top:0, repeat:-1,ease:Linear.easeNone}); TweenMax.to('.scrollImg2a', 25, {top:-678, repeat:-1, ease:Linear.easeNone}); TweenMax.to('.scrollImg2b', 25, {top:0, repeat:-1,ease:Linear.easeNone}); TweenMax.to('.scrollImg3a', 20, {top:-678, repeat:-1, ease:Linear.easeNone}); TweenMax.to('.scrollImg3b', 20, {top:0, repeat:-1,ease:Linear.easeNone}); TweenMax.to('.scrollImg4a', 40, {top:-678, repeat:-1, ease:Linear.easeNone}); TweenMax.to('.scrollImg4b', 40, {top:0, repeat:-1,ease:Linear.easeNone});
}
Developer | Asakasinsky |
Username | asakasinsky |
Uploaded | January 14, 2023 |
Rating | 3 |
Size | 2,083 Kb |
Views | 6,072 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Odin-Ass-style jQuery | 2,093 Kb |
Seconds counter | 4,153 Kb |
Icon Fonts - SocialCount meets Style | 3,709 Kb |
Icon Fonts - emocons.js jQuery plugin | 3,214 Kb |
Modernizr.custom.js | 5,583 Kb |
Bokeh Modal | 4,445 Kb |
Comment reader | 2,273 Kb |
JQuery fallback for placeholder | 2,044 Kb |
Mega Menu by Joni | 3,171 Kb |
Flipclock | 4,813 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
Vue.js Lazy Loading | Kjbrum | 3,620 Kb |
Formations | Cantelope | 5,731 Kb |
Flexbox Test | Icutpeople | 2,486 Kb |
Product item | Mymahesh11 | 2,256 Kb |
IE11 Test | Boostnewmedia | 4,998 Kb |
Elephants Full screen site | Orrinward | 3,981 Kb |
Glitchy Text Effect | Kescoe | 2,208 Kb |
After America | Jonathangarner | 2,686 Kb |
Layout 11 | Altynai | 1,690 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!