CSS animated button
How do I make an css animated button?
Playing with button hover effects. What is a css animated button? How do you make a css animated button? This script and codes were developed by Mark Robbins on 06 September 2022, Tuesday.
CSS animated button - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS animated button</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Some buttons</h1> <p>
I've not tested these cross browser yet...
</p>
<button class="light"> Hover over me
</button>
<button class="bounce"> Hover over me
</button>
<button class="letters"> Hover over me
</button>
</body>
</html>
CSS animated button - Script Codes CSS Codes
body{ font-family: Arial,Helvetica,sans-serif; color:#555; background:#ddd;
}
button{ padding: 0.8em 0em; width:350px; background: #ff6e00; border-radius:15px; border:0; color:#fff; font-size:1.2em; font-family: Arial,Helvetica,sans-serif; font-weight:bold; cursor:pointer; margin:1em 2em; text-transform:uppercase;
}
.light{
background: -moz-linear-gradient(-45deg, #ff6e00 0%, #ff6e00 40%, #ffffff 50%, #ff6e00 60%, #ff6e00 100%);
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#ff6e00), color-stop(40%,#ff6e00), color-stop(50%,#ffffff), color-stop(60%,#ff6e00), color-stop(100%,#ff6e00));
background: -webkit-linear-gradient(-45deg, #ff6e00 0%,#ff6e00 40%,#ffffff 50%,#ff6e00 60%,#ff6e00 100%);
background: -o-linear-gradient(-45deg, #ff6e00 0%,#ff6e00 40%,#ffffff 50%,#ff6e00 60%,#ff6e00 100%);
background: -ms-linear-gradient(-45deg, #ff6e00 0%,#ff6e00 40%,#ffffff 50%,#ff6e00 60%,#ff6e00 100%);
background: linear-gradient(135deg, #ff6e00 0%,#ff6e00 40%,#ffffff 50%,#ff6e00 60%,#ff6e00 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff6e00', endColorstr='#ff6e00',GradientType=1 );
background-repeat: no-repeat;
background-position:0px;
background-size:300%;
}
.light:hover{ animation:light 1s; -webkit-animation:light 1s;
}
@keyframes light { 0% { background-position:-600px; } 100% { background-position:0px; }
}
@-webkit-keyframes light { 0% { background-position:-600px; } 100% { background-position:0px; }
}
.bounce:hover{ animation:bounce 1s; -webkit-animation:bounce 1s;
}
@keyframes bounce { 0% { border-radius:15px; } 20% { border-radius:30px; } 60% { border-radius:0px; transform:scale(1.1); -ms-transform:scale(1.1); /* IE 9 */ -webkit-transform:scale(1.1); /* Safari and Chrome */ } 90% { transform:scale(0.98); -ms-transform:scale(0.98); /* IE 9 */ -webkit-transform:scale(0.98); /* Safari and Chrome */ } 100% { border-radius:15px; }
}
@-webkit-keyframes bounce { 0% { border-radius:15px; } 20% { border-radius:30px; } 60% { border-radius:0px; transform:scale(1.1); -ms-transform:scale(1.1); /* IE 9 */ -webkit-transform:scale(1.1); /* Safari and Chrome */ } 90% { transform:scale(0.98); -ms-transform:scale(0.98); /* IE 9 */ -webkit-transform:scale(0.98); /* Safari and Chrome */ } 100% { border-radius:15px; }
}
.letters{ white-space:nowrap; overflow:hidden; transition: letter-spacing 3s; -webkit-transition: letter-spacing 3s; /* Safari */ transition-delay: 0.5s; -webkit-transition-delay: 0.5s;
}
.letters:hover{ letter-spacing:15.5px; transition-delay: 0s; -webkit-transition-delay: 0s;
}
Developer | Mark Robbins |
Username | M_J_Robbins |
Uploaded | September 06, 2022 |
Rating | 3.5 |
Size | 2,172 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 |
X-wing | 10,065 Kb |
Punched Card Coding - Slides | 6,019 Kb |
CSS triangles for email | 1,954 Kb |
SVG email test | 1,851 Kb |
SVG email test v2.0 | 2,090 Kb |
TEDC15 London - slides | 6,835 Kb |
3D iPhone CSS controls no JS | 4,125 Kb |
Animated images off pixel art | 25,387 Kb |
CSS Slider Puzzle Game | 3,641 Kb |
Xmas email test | 5,920 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 |
CSS eye follow | Pedrocampos | 2,592 Kb |
Horizontal scroll fixed element | HerrSerker | 0 Kb |
NT Tribute | Skybutterfly | 2,850 Kb |
Contact | GanNichiHa | 2,514 Kb |
Table border-collapse property | Maxds | 1,672 Kb |
Em Test | Rodesco | 1,784 Kb |
Twinkling Stars | Ripley6811 | 2,750 Kb |
This in constructor context | _shree33 | 1,718 Kb |
Canvas snow | Win7killer | 2,572 Kb |
Scroll using CSS | Casperovic | 2,159 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!