Fun animations with CSS3
How do I make an fun animations with css3?
What is a fun animations with css3? How do you make a fun animations with css3? This script and codes were developed by Stephen Burgess on 08 September 2022, Thursday.
Fun animations with CSS3 - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fun animations with CSS3</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="twitter-bird step"></div>
</div>
<div class="container"> <div class="logo"></div>
</div>
<div class="container"> <div class="button"> <span class="label">Button</span> <span class="label">Button</span> </div>
</div> <script src="js/index.js"></script>
</body>
</html>
Fun animations with CSS3 - Script Codes CSS Codes
html { height: 100%;
}
body { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 30px; font-weight: 300; height: 100%; margin: 0; padding: 0; position: relative;
}
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box;
}
.container { display: inline-block; float: left; height: 240px; margin: -120px 0 0; padding: 0; position: relative; text-align: center; top: 50%; width: 33.33%;
}
/* Twitter Bird */
.twitter-bird { background-image: url(http://minimalmonkey.com/lab/css3-animations/twitter-bird-sprite.png); cursor: pointer; display: inline-block; height: 150px; margin: 50px -30% 0 0; width: 150px;
}
.twitter-bird:hover { -webkit-animation: fly 0.2s steps(3) 0 infinite; -moz-animation: fly 0.2s steps(3) 0 infinite; animation: fly 0.2s steps(3) 0 infinite;
}
@-webkit-keyframes fly { from { background-position: 0 0; } to { background-position: -450px 0; }
}
@-moz-keyframes fly { from { background-position: 0 0; } to { background-position: -450px 0; }
}
@keyframes fly { from { background-position: 0 0; } to { background-position: -450px 0; }
}
/* Logo */
.logo { background-image: url(http://minimalmonkey.com/lab/css3-animations/logo.png); background-repeat: no-repeat; cursor: pointer; display: inline-block; height: 150px; margin: 50px 50px 0; width: 154px;
}
.logo:hover { animation-name: bounce; animation-duration: 0.5s; animation-timing-function: linear; animation-iteration-count: 1; -moz-animation-name: bounce; -moz-animation-duration: 0.5s; -moz-animation-timing-function: linear; -moz-animation-iteration-count: 1; -webkit-animation-name: bounce; -webkit-animation-duration: 0.5s; -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: 1;
}
@-webkit-keyframes bounce { 45% { height: 130px; margin-top: 70px; } 55% { height: 130px; margin-top: 70px; } 75% { height: 170px; margin-top: 0px; }
}
@-moz-keyframes bounce { 45% { height: 130px; margin-top: 70px; } 55% { height: 130px; margin-top: 70px; } 75% { height: 170px; margin-top: 0px; }
}
@keyframes bounce { 45% { height: 130px; margin-top: 70px; } 55% { height: 130px; margin-top: 70px; } 75% { height: 170px; margin-top: 0px; }
}
/* Button */
.button { background-color: #26bf4a; color: white; cursor: pointer; display: inline-block; height: 60px; letter-spacing: 2px; line-height: 60px; margin: 90px 0 0 -20%; min-width: 220px; overflow: hidden; position: relative; text-align: center; text-transform: uppercase; -webkit-transition: background-color 0.35s; -moz-transition: background-color 0.35s; transition: background-color 0.35s;
}
.label { display: block; height: 100%; padding: 0 40px; position: relative; top: 0%; -webkit-transition: top 0.35s; -moz-transition: top 0.35s; transition: top 0.35s; width: 100%;
}
.button:hover { background-color: #1d9f3b;
}
.button:hover .label { top: -100%;
}
Fun animations with CSS3 - Script Codes JS Codes
// NO JAVASCRIPT
Developer | Stephen Burgess |
Username | minimalmonkey |
Uploaded | September 08, 2022 |
Rating | 4.5 |
Size | 2,360 Kb |
Views | 30,360 |
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 Animation Loop | 3,083 Kb |
SASS Mixin to make CSS Arrows | 2,031 Kb |
Blobs | 3,042 Kb |
ColorWall | 2,675 Kb |
Pure CSS Logo | 2,279 Kb |
A Pen by Stephen Burgess | 3,035 Kb |
Star Particles | 2,997 Kb |
Image Ordering Tool | 4,249 Kb |
Another pure CSS thing | 3,322 Kb |
Matrix Challenge | 2,591 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 |
Lightning | Akm2 | 19,150 Kb |
Simple content swap | Snografx | 1,859 Kb |
ECharts Version 3.0 - Bar Marker Chart | WebCodePro | 2,726 Kb |
Importable Clearfix | Corysimmons | 1,411 Kb |
Tab panels | Accessibility | 0 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
Google Chrome Icon using Pure CSS in one DIV | Grssam | 3,627 Kb |
Cut and Paste Roll Link | BottomlineInteractive | 2,546 Kb |
Box-sizing | Elad2412 | 1,572 Kb |
Apple website | Jds317 | 1,835 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!