Unblur on scroll
How do I make an unblur on scroll?
What is a unblur on scroll? How do you make a unblur on scroll? This script and codes were developed by Dave DeHaan on 04 January 2023, Wednesday.
Unblur on scroll - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Unblur on scroll</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html> <body> <div id="hero"> <img src="http://lamplighter.io/app-assets/img/email-header.png"> <h2>Gain Focus</h2> <h3>Gain Clarity</h3> </div> </body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Unblur on scroll - Script Codes CSS Codes
body { margin: 0px; padding: 0px; min-height: 2000px; font-family: sans-serif; color: #333;
}
#hero { margin: 0px auto; background-size: cover; width: 640px; height: 500px; background: #EEE; -webkit-filter: blur(10px); position: fixed; left: 50%; margin-left: -320px;
}
h2 { font-size: 50px; text-align: center;
}
h3 { font-size: 35px; text-align: center;
}
Unblur on scroll - Script Codes JS Codes
$(window).scroll(function() { var heroBlur = 10 - Math.floor($(this).scrollTop() / 100); if (heroBlur < 0) { heroBlur = 0; } $('#hero').css({ '-webkit-filter': 'blur('+heroBlur+'px)' });
});
Developer | Dave DeHaan |
Username | davedehaan |
Uploaded | January 04, 2023 |
Rating | 3 |
Size | 1,930 Kb |
Views | 28,336 |
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 |
Global Composite Operation Test | 1,992 Kb |
Multi-color Text using globalCompositeOperation | 1,983 Kb |
Spotlight Search 404 | 3,033 Kb |
Tween Bubbles. | 2,175 Kb |
Fun with Lines | 2,897 Kb |
Randomly generated canvas clouds | 2,028 Kb |
Javascript stopwatch | 2,102 Kb |
Merry Christmas. | 3,030 Kb |
HTML5 Logo Tracing | 2,301 Kb |
404 Glitch Effect | 3,495 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 |
Twitch TV | Natester13 | 4,488 Kb |
Adding and Removing Element | Accimeesterlin | 2,119 Kb |
Angular Sandbox | Alexgurrola | 1,616 Kb |
DIV wormhole | Heydon | 1,932 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 Kb |
BabyStore | Pablo-Ai | 3,807 Kb |
Social Profiles | Lachlanjc | 1,939 Kb |
Caputre Cam with JS | KimmoCommit | 2,795 Kb |
Welcome | Nakome | 6,076 Kb |
GLSL Hills | Ykob | 6,991 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!