Button shaking
How do I make an button shaking?
What is a button shaking? How do you make a button shaking? This script and codes were developed by Susanne Karin Lundblad on 13 September 2022, Tuesday.
Button shaking - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Button shaking </title> <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrap"><button class="btn"> <span class="default btn-caption">Click</span><span class="error btn-caption">Error</span>
</button></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Button shaking - Script Codes CSS Codes
*,
*:before,
*:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
html, body { margin: 0; padding: 0; background-color: #ecf0f1;
}
.wrap { margin: 20% auto; width: 400px; text-align: center;
}
.btn { border: 0px; border-radius: 4px; color: white; font-family: "Helvetica Neue",sans-serif; font-weight: 200; font-size: 20px; padding: 5px 15px; background-color: #2980b9; transition: all 0.2s linear; outline: none; letter-spacing: 1px;
}
button:hover { background-color: #3498db; cursor: pointer;
}
.default { display: block;
}
.error { display: none;
}
@-webkit-keyframes shaker { 0% { -webkit-transform: translate(2px, 0); } 50% { -webkit-transform: translate(-2px, 0); } 100% { -webkit-transform: translate(2px, 0); }
}
.shake { -webkit-animation-name: shaker; -webkit-animation-duration: 0.1s; -webkit-transform-origin:50% 50%; -webkit-animation-timing-function: linear; background-color: #c0392b;
}
.shake:hover { background-color: #e74c3c;
}
.shake .default { display: none;
}
.shake .error { display: block;
}
Button shaking - Script Codes JS Codes
$(".btn").on("click", function() { $(this).addClass("shake"); var delay = setTimeout(function(){ $(".shake").removeClass("shake"); }, 3000)
});
Developer | Susanne Karin Lundblad |
Username | SusanneLundblad |
Uploaded | September 13, 2022 |
Rating | 3 |
Size | 2,227 Kb |
Views | 48,576 |
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 |
A Pen by Susanne Karin Lundblad | 2,320 Kb |
Wake animation | 4,322 Kb |
Hover-effect | 3,241 Kb |
Loading animation | 2,383 Kb |
AngularJS, showing and hiding content using radio buttons | 2,032 Kb |
CSS-masking gallery | 2,567 Kb |
Button shaking | 2,227 Kb |
Fullscreen portfolio startpage | 3,041 Kb |
Angular filter | 2,109 Kb |
Susie | 2,797 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 |
Flat design iframe | Damienpm | 1,819 Kb |
CLE_Old_March | Saritaleroux | 6,234 Kb |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
CSS3 Animated buttons | Cguillou | 3,737 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 Kb |
Rainbow Drops | Csbarnes | 2,365 Kb |
Perforated foil | 0x04 | 2,617 Kb |
Coming Soon | MariamMassadeh | 1,680 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 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!