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 |
Dynamic Hero Image | 2,435 Kb |
Unblur on scroll | 1,930 Kb |
404 Glitch Effect | 3,495 Kb |
Randomly generated canvas clouds | 2,028 Kb |
Winter | 2,613 Kb |
Fun with Lines | 2,897 Kb |
Spotlight Search 404 | 3,033 Kb |
Yule Logs | 1,496 Kb |
More Fun with Lines | 3,118 Kb |
Tween Bubbles. | 2,175 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 |
Hovers with popups | Zacharyolson | 2,380 Kb |
Jquery 2d character movement | Drewtadams | 4,291 Kb |
Simple blog concept | Drew_mc | 2,666 Kb |
Three js | Paulq | 2,353 Kb |
CSS eye follow | Pedrocampos | 2,592 Kb |
Simple CSS loader. | Cabrera | 2,574 Kb |
Cool Page Split Effect | Anthonyadamski | 6,128 Kb |
Michelle, submit your photography to Unsplash. | Zaneriley | 3,368 Kb |
JavaScript constructors | Simboonlong | 2,415 Kb |
3d css cube | Semenchenko | 4,578 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!