Hero zoom on scroll
How do I make an hero zoom on scroll?
What is a hero zoom on scroll? How do you make a hero zoom on scroll? This script and codes were developed by [SHM] on 17 January 2023, Tuesday.
Hero zoom on scroll - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hero zoom on scroll</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="zoom-me"><div class="img"></div></div>
<div class="block"></div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Hero zoom on scroll - Script Codes CSS Codes
body{ height: 2500px; padding: 0; margin: 0; box-sizing: border-box;
}
.zoom-me { height: 100vh; width: 100%; overflow: hidden;
}
.zoom-me .img { background: url(http://pre06.deviantart.net/cce6/th/pre/i/2012/038/e/5/somewhere_on_a_desert_highway____by_dmack-d4oy39s.jpg) no-repeat center center / cover; width: 101%; height: 101%; position: fixed; top: 0%; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%);
}
.block{ position: relative; height: 2500px; width: 100%; background: #000;
}
Hero zoom on scroll - Script Codes JS Codes
$(window).scroll(function() { var scroll = $(window).scrollTop(); $(".zoom-me .img").css({ width: (101 + scroll/200) + "%", height: (101 + scroll/200) + "%", top: - (scroll/10) + "%" });
});
Developer | [SHM] |
Username | leon9208 |
Uploaded | January 17, 2023 |
Rating | 3 |
Size | 1,960 Kb |
Views | 22,264 |
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 |
Scroll Bar indicator | 1,840 Kb |
Image autoscroll | 2,008 Kb |
Cyclotron | 1,798 Kb |
Glitch text effect | 3,674 Kb |
Video mute | 2,131 Kb |
Video header | 2,039 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 |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
Mosaic transition effect between two photos using jQuery | Stathisg | 2,518 Kb |
Use the Twitchtv JSON API | Roksanaop | 3,561 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
Rain Landing in a Pond | Edball | 3,009 Kb |
CSS3 Selectables with information rollover | Jasonmayes | 9,565 Kb |
Easing | GreenSock | 2,043 Kb |
A Pen by Andrea Verlicchi | Verlok | 2,018 Kb |
Simple CSS loader. | Cabrera | 2,574 Kb |
Multi-step GSAP animation | Acacheung | 2,668 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!