Full page parallax
How do I make an full page parallax?
What is a full page parallax? How do you make a full page parallax? This script and codes were developed by SNÖGRAFX on 26 August 2022, Friday.
Full page parallax - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Full page parallax</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id='top'></div>
<div id='middle'></div>
<div id='bottom'></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Full page parallax - Script Codes CSS Codes
html, body { width: 100%; height: 100%;
}
#top { background: url('http://www.gratisography.com/pictures/118H.jpg'); background-size: cover; background-position: center; height: 100%; width: 100%; position: relative; overflow: hidden;
}
#middle { background: url('http://www.gratisography.com/pictures/60H.jpg'); background-size: cover; background-position: center; height: 100%; width: 100%; position: relative; overflow: hidden;
}
#bottom { background: url('http://www.gratisography.com/pictures/35H.jpg'); background-size: cover; background-position: center; height: 100%; width: 100%; position: relative; overflow: hidden;
}
Full page parallax - Script Codes JS Codes
$(window).scroll(function(e){ parallax();
});
function parallax(){ var scrolled = $(window).scrollTop(); $('#middle').css('top',-(scrolled*0.4)+'px'); $('#bottom').css('top',-(scrolled*0.9)+'px');
}
Developer | SNÖGRAFX |
Username | snografx |
Uploaded | August 26, 2022 |
Rating | 3 |
Size | 1,957 Kb |
Views | 38,456 |
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 |
Basic parallax | 2,269 Kb |
CityPlanner Logo Loading Animation 2017 | 2,589 Kb |
Layer spin | 2,485 Kb |
CityPlanner fallback | 4,228 Kb |
CityPlanner SVG POI bubble | 2,884 Kb |
CSS Navigation buttons | 2,460 Kb |
Simple content swap | 1,859 Kb |
Norkart CityPlanner ribbon logo | 1,957 Kb |
Vertical image scroller with hover arrows | 2,367 Kb |
Hide on inactivity | 2,082 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 |
Shopping cart | Andiio | 6,581 Kb |
Responsive Boxes without Images | Andymcfee | 4,120 Kb |
Static Image to Video Block | Grayghostvisuals | 4,864 Kb |
Word Wrap Algorithm for Multiline Canvas Text | Peterhry | 2,349 Kb |
CardMove | Thompsonemerson | 3,699 Kb |
Highbrow Basic HTML Lesson 7 | Kimlarocca | 1,662 Kb |
Improve | Gavra | 1,652 Kb |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
CSS Social Media Icon | TychoBlender | 3,871 Kb |
SVG Playground | Roygwells | 1,834 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!