CSS3 Animated buttons
How do I make an css3 animated buttons?
Based on a Dribbble project by Dale Humphries (http://dribbble.com/shots/1133923-Send). What is a css3 animated buttons? How do you make a css3 animated buttons? This script and codes were developed by Clément Guillou on 04 July 2022, Monday.
CSS3 Animated buttons - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Animated buttons</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /* Import icon-font and webfont */
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300);
@import url(http://weloveiconfonts.com/api/?family=fontawesome);
/* fontawesome */
[class*="fontawesome-"]:before { font-family: 'FontAwesome', sans-serif;
}
/* General styles */
body { background-color: #E6E6E6;
}
a { text-decoration: none;
}
/* Button styles */
.button { width: 160px; height: 60px; margin: 5% auto; overflow: hidden; border-radius: 5px; border: 2px solid; transition: background 0.3s ease;
}
.button ul { width: 330px; height: 60px; position: relative; transition: left 0.3s ease;
}
.button ul:target { left: -160px;
}
.button ul li { width: 160px; height: 60px; float: left; color: white; font-family: 'Open Sans', Verdana; font-size: 1.8em; line-height: 60px; text-align: center;
}
.button ul li span { vertical-align: top; margin-left: 15px; font-size: 0.8em;
}
/* Colors styles */
.green { background-color: #4cbe83; border-color: #36ad6f;
}
.green:hover { background-color: #36ad6f;
}
.red { background-color: #e47c68; border-color: #d46c57;
}
.red:hover { background-color: #d46c57;
}
.yellow { background-color: #feb742; border-color: #eda93b;
}
.yellow:hover { background-color: #eda93b;
}
.blue { background-color: #77d3e0; border-color: #6cc8d4;
}
.blue:hover { background-color: #6cc8d4;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="button green"> <a href="#sent-green"> <ul id="sent-green"> <li class="fontawesome-envelope"> <span>Send</span> </li> <li class="fontawesome-ok"> <span>Sent!</span> </li> </ul> </a>
</div>
<div class="button blue"> <a href="#sent-blue"> <ul id="sent-blue"> <li class="fontawesome-envelope"> <span>Send</span> </li> <li class="fontawesome-ok"> <span>Sent!</span> </li> </ul> </a>
</div>
<div class="button red"> <a href="#sent-red"> <ul id="sent-red"> <li class="fontawesome-envelope"> <span>Send</span> </li> <li class="fontawesome-ok"> <span>Sent!</span> </li> </ul> </a>
</div>
<div class="button yellow"> <a href="#sent-yellow"> <ul id="sent-yellow"> <li class="fontawesome-envelope"> <span>Send</span> </li> <li class="fontawesome-ok"> <span>Sent!</span> </li> </ul> </a>
</div> <script src="js/index.js"></script>
</body>
</html>
CSS3 Animated buttons - Script Codes CSS Codes
/* Import icon-font and webfont */
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300);
@import url(http://weloveiconfonts.com/api/?family=fontawesome);
/* fontawesome */
[class*="fontawesome-"]:before { font-family: 'FontAwesome', sans-serif;
}
/* General styles */
body { background-color: #E6E6E6;
}
a { text-decoration: none;
}
/* Button styles */
.button { width: 160px; height: 60px; margin: 5% auto; overflow: hidden; border-radius: 5px; border: 2px solid; transition: background 0.3s ease;
}
.button ul { width: 330px; height: 60px; position: relative; transition: left 0.3s ease;
}
.button ul:target { left: -160px;
}
.button ul li { width: 160px; height: 60px; float: left; color: white; font-family: 'Open Sans', Verdana; font-size: 1.8em; line-height: 60px; text-align: center;
}
.button ul li span { vertical-align: top; margin-left: 15px; font-size: 0.8em;
}
/* Colors styles */
.green { background-color: #4cbe83; border-color: #36ad6f;
}
.green:hover { background-color: #36ad6f;
}
.red { background-color: #e47c68; border-color: #d46c57;
}
.red:hover { background-color: #d46c57;
}
.yellow { background-color: #feb742; border-color: #eda93b;
}
.yellow:hover { background-color: #eda93b;
}
.blue { background-color: #77d3e0; border-color: #6cc8d4;
}
.blue:hover { background-color: #6cc8d4;
}
CSS3 Animated buttons - Script Codes JS Codes
/* * Based on a Dribbble project by Dale Humphries * (http://dribbble.com/shots/1133923-Send) * */
Developer | Clément Guillou |
Username | cguillou |
Uploaded | July 04, 2022 |
Rating | 4.5 |
Size | 3,737 Kb |
Views | 42,504 |
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 |
CSS3 Horror Style Text Effect | 2,667 Kb |
Simple Dark Form | 3,832 Kb |
Flat CSS3 Weather Widget | 5,381 Kb |
Fancy Mobile Flat Navigation | 3,562 Kb |
UI Kit | 4,208 Kb |
Fancy Flat Social Button Animation | 3,482 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 |
Video mute | Leon9208 | 2,131 Kb |
Geildanke typography | Fischaela | 3,249 Kb |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
404 Page | Saransh | 2,666 Kb |
Using Flickr API | MoyArt | 6,761 Kb |
Disable JavaScript execution from console | Ludviglindblom | 2,534 Kb |
Project MMetro beta | Atomicsong | 5,157 Kb |
Replace url via jquery | Serluk | 1,429 Kb |
Resizable SASS Icons | Marianarlt | 7,611 Kb |
Flat Star Wars | Kevinjannis | 37,947 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!