Ripple Effect Material Design
How do I make an ripple effect material design?
What is a ripple effect material design? How do you make a ripple effect material design? This script and codes were developed by Chris on 21 August 2022, Sunday.
Ripple Effect Material Design - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Ripple Effect Material Design</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="test ripple" data-ripple-color="#FFFFFF"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Ripple Effect Material Design - Script Codes CSS Codes
body { text-align: center;
}
.ripple { overflow: hidden;
}
.ripple-effect { position: absolute; border-radius: 50%; width: 50px; height: 50px; background: white; animation: ripple-animation 2s;
}
@keyframes ripple-animation { from { transform: scale(1); opacity: 0.4; } to { transform: scale(100); opacity: 0; }
}
.test { position: relative; border: none; outline: none; cursor: pointer; background: #89669b; color: white; padding: 68px 60px; border-radius: 2px; font-size: 22px;
}
Ripple Effect Material Design - Script Codes JS Codes
(function(window, $) { $(function() { $('.ripple').on('click', function(event) { event.preventDefault(); var $div = $('<div/>'), btnOffset = $(this).offset(), xPos = event.pageX - btnOffset.left, yPos = event.pageY - btnOffset.top; $div.addClass('ripple-effect'); var $ripple = $(".ripple-effect"); $ripple.css("height", $(this).height()); $ripple.css("width", $(this).height()); $div .css({ top: yPos - ($ripple.height() / 2), left: xPos - ($ripple.width() / 2), background: $(this).data("ripple-color") }) .appendTo($(this)); window.setTimeout(function() { $div.remove(); }, 2000); }); });
})(window, jQuery);
Developer | Chris |
Username | onlinechris |
Uploaded | August 21, 2022 |
Rating | 3 |
Size | 2,135 Kb |
Views | 26,312 |
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 |
Animated CSS3 mail mascot | 2,258 Kb |
SVG food icons | 6,160 Kb |
KickMaterial - Kickstarter Material app icon | 2,656 Kb |
Calendar Animation | 1,732 Kb |
Animated CSS3 gradient button for e-mail | 2,160 Kb |
Menu icon, animated upon open and close. | 3,053 Kb |
Responsive Style Menu for HTML e-mail | 2,441 Kb |
IPhone5S SVG Space Grey | 75,035 Kb |
Play to Pause, material design style | 2,577 Kb |
Twitter SVG icon | 24,126 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 |
Brent Burns Tribute Page | Nevada48 | 2,569 Kb |
RAQuote | Naderk007 | 4,412 Kb |
Count up | Alanshortis | 2,391 Kb |
CSSOff 2013 Submission | Codewunder | 14,766 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 Kb |
Sign Up Form | Sicontis | 5,272 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
Algorithm practice | Abensur | 5,620 Kb |
Twitch.tv API | Ryzokuken | 2,618 Kb |
Very Simple Slider | Doodlemarks | 2,682 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!