Unblur on Page Load
How do I make an unblur on page load?
What is a unblur on page load? How do you make a unblur on page load? This script and codes were developed by Dave DeHaan on 04 January 2023, Wednesday.
Unblur on Page Load - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Unblur on Page Load</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> <div class="controls"> <button class="js-blur">Blur</button> <button class="js-unblur">Unblur</button> </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 Page Load - 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; transition: 3s;
}
#hero.noBlur { -webkit-filter: blur(0px);
}
h2 { font-size: 50px; text-align: center;
}
h3 { font-size: 35px; text-align: center;
}
button { -webkit-appearance: none; padding: 10px; width: 150px; border: solid 1px #333; border-radius: 5px;
}
.controls { position: fixed; bottom: 5px; text-align: center; width: 100%;
}
Unblur on Page Load - Script Codes JS Codes
$(window).ready(function() { $('#hero').addClass('noBlur');
});
$('.js-blur').click(function() { $('#hero').removeClass('noBlur');
});
$('.js-unblur').click(function() { $('#hero').addClass('noBlur');
});
Developer | Dave DeHaan |
Username | davedehaan |
Uploaded | January 04, 2023 |
Rating | 3 |
Size | 2,048 Kb |
Views | 10,120 |
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 |
Tween Bubbles. | 2,175 Kb |
Multi-color Text using globalCompositeOperation | 1,983 Kb |
Dynamic Hero Image | 2,435 Kb |
More Fun with Lines | 3,118 Kb |
Yule Logs | 1,496 Kb |
Christmas Countdown | 2,133 Kb |
404 Glitch Effect | 3,495 Kb |
Randomly generated canvas clouds | 2,028 Kb |
Fun with Lines | 2,897 Kb |
Asteroids | 2,846 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 |
Spiralator 9000 | AdmiralPotato | 4,671 Kb |
Mostly Fluid | Mccreath | 3,308 Kb |
The CodePen Logo | Kindofone | 4,259 Kb |
STAR WARS LIGHTSABER | Francoiscoron | 4,420 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
Collapsing Widget | Er40 | 4,279 Kb |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
Ripples in water | Nobitagit | 2,704 Kb |
Fun form with currentColor | Bnthor | 2,713 Kb |
Print element on a page | Mrs_snow | 2,081 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!