Background image mouse scroll
How do I make an background image mouse scroll?
What is a background image mouse scroll? How do you make a background image mouse scroll? This script and codes were developed by Revolution Graphics on 01 October 2022, Saturday.
Background image mouse scroll - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Background image mouse scroll</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="bg"> <div id="content">CONTENT</div>
</div>
<div id="log"></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/1.13.1/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Background image mouse scroll - Script Codes CSS Codes
#bg { width: 800px; height: 600px; background: url(https://unsplash.imgix.net/reserve/oIpwxeeSPy1cnwYpqJ1w_Dufer%20Collateral%20test.jpg?fit=crop&fm=jpg&h=875&q=75&w=1050);
}
#content { width: 800px; height: 600px; color: white; font-size: 36px; line-height: 100px; text-align: center;
}
Background image mouse scroll - Script Codes JS Codes
//bg follow mouse with ease
var bg = $("#bg");
bg.mousemove(function(event) { var xPos = event.pageX; $("#log").text(xPos); TweenLite.to(bg, .5, {css:{backgroundPosition:xPos + "px"}});
});
Developer | Revolution Graphics |
Username | rgfx |
Uploaded | October 01, 2022 |
Rating | 3 |
Size | 2,287 Kb |
Views | 32,384 |
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 |
Keep Image in Center of Div. | 2,005 Kb |
Simple Responsive Popup | 2,906 Kb |
Fancy Select Box | 5,516 Kb |
CSS Background | 2,293 Kb |
Canvas Noise generator | 2,904 Kb |
Progressively reveal dots on a Bezier curve | 7,323 Kb |
Call to action button | 3,077 Kb |
Video-js scss | 13,211 Kb |
Flexbox Center Right justify | 2,403 Kb |
Custom Select Box 2 | 5,033 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 |
Sticky menu on scroll | Senff | 2,869 Kb |
Promodoro | Bencarp | 1,712 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
Popover | Teles | 2,248 Kb |
Working around OS X Dynamic Scrollbars | Jrjenk | 2,279 Kb |
Wikipedia API | Coderpilot | 2,802 Kb |
Buttons for autumn | Nikazawila | 1,795 Kb |
RSW | JordanC | 3,726 Kb |
Tab Menus | Zephyr | 3,180 Kb |
Personal Logo Animation | Lloydwheeler | 3,795 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!