Facebook-like Click-to-grow Like Button
How do I make an facebook-like click-to-grow like button?
Recreating FBs messenger like button. Click and hold to grow it.. What is a facebook-like click-to-grow like button? How do you make a facebook-like click-to-grow like button? This script and codes were developed by Paul Sullivan on 26 January 2023, Thursday.
Facebook-like Click-to-grow Like Button - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Facebook-like Click-to-grow Like Button</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id='clicker'> <i class='fa fa-thumbs-up'></i>
</div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Facebook-like Click-to-grow Like Button - Script Codes CSS Codes
#clicker { position: fixed; top: 50%; margin-top: -30px; left: 50%; margin-left: -30px; cursor: pointer; color: #0084FF; font-size: 50px;
}
.wiggle { -webkit-animation: wiggle 1.25s ease forwards; animation: wiggle 1.25s ease forwards;
}
@-webkit-keyframes wiggle { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 20% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 40% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); } 60% { -webkit-transform: rotate(10deg); transform: rotate(10deg); } 80% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); } 80% { -webkit-transform: rotate(5deg); transform: rotate(5deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes wiggle { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 20% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 40% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); } 60% { -webkit-transform: rotate(10deg); transform: rotate(10deg); } 80% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); } 80% { -webkit-transform: rotate(5deg); transform: rotate(5deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
Facebook-like Click-to-grow Like Button - Script Codes JS Codes
var timeout, clicker = $('#clicker');
var count = 25;
clicker.mousedown(function() { timeout = setInterval(function() { if (count >= 300) { count = 50; clicker.removeClass('wiggle'); } else { clicker.addClass('wiggle'); clicker.css('font-size', count++ *.9 + 'px'); clicker.css('margin-left', -.5*count++ + 'px'); clicker.css('margin-top', -.5*count++ + 'px'); } }, 20); return false;
});
$(document).mouseup(function() { clearInterval(timeout); return false;
});
Developer | Paul Sullivan |
Username | pwsm50 |
Uploaded | January 26, 2023 |
Rating | 3.5 |
Size | 2,607 Kb |
Views | 8,096 |
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 |
CSS Particle Box | 67,348 Kb |
Crazed Bacteria | 2,886 Kb |
Dart Scoreboard | 4,848 Kb |
Full screen burger menu | 3,923 Kb |
Colorful Animated Border | 3,351 Kb |
Asana Style Buttons | 2,502 Kb |
A Pen by Paul Sullivan | 2,349 Kb |
Another Simple CSS load animation | 2,688 Kb |
Circular Audio Bars | 3,343 Kb |
Flying Bee | 3,711 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 |
Simple Linear Regression with Editable Table | Melatonind | 3,264 Kb |
Static Image to Video Block | Grayghostvisuals | 4,864 Kb |
A Pen by Anoop | Anoopjohn | 330,760 Kb |
Rain Landing in a Pond | Edball | 3,009 Kb |
The Fly | GianlucaGuarini | 3,405 Kb |
Material Design-Layout-Principles Practice | Fraina | 2,331 Kb |
CSS3 Butterfly | Timohausmann | 3,430 Kb |
A Pen by Ben Babics | Benbabics | 2,957 Kb |
Mobile first social buttons with no iframe | Alistairtweedie | 3,158 Kb |
Underlined form fields | Mitchdot | 2,323 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!