Basic CSS animation and transition example
How do I make an basic css animation and transition example?
What is a basic css animation and transition example? How do you make a basic css animation and transition example? This script and codes were developed by Val Head on 07 August 2022, Sunday.
Basic CSS animation and transition example - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Basic CSS animation and transition example</title> <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! */ body { background: #ef; margin: 4em; font-family: Dosis, hevetica, arial, sans-serif; font-weight: 400;
}
div { margin-bottom: 4em;
}
.animation { background: #f6ad2d; color: white; text-transform: uppercase; font-size: 1.5em; width: 150px; height: 150px; position: relative; animation: bounceAround 1.1s ease-in-out infinite;
}
.transition { background: #65a6a7; color: #efefef; width: 40%; padding: 1em 0; text-align: center; font-size: 1.2em; letter-spacing: .05em; border-radius: 10px; transition: .4s background ease-out;
}
.transition p { margin: 0; padding: 0; pointer-events: none;
}
.transition:hover { background: #e65445;
}
@keyframes bounceAround { 0% { transform: translateY(0); } 20% { transform: translateY(-60px) rotate(0deg); } 25% { transform: translateY(20px) rotate(0deg); } 35%, 55% { transform: translateY(0px) rotate(0deg); } 60% { transform: translateY(-20px) rotate(0deg); } 100% { transform: translateY(-20px) rotate(360deg); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <link href='http://fonts.googleapis.com/css?family=Dosis' rel='stylesheet' type='text/css'>
<div class="animation"></div>
<div class="transition"><p>Hover For Transition Action!</p></div>
</body>
</html>
Basic CSS animation and transition example - Script Codes CSS Codes
body { background: #ef; margin: 4em; font-family: Dosis, hevetica, arial, sans-serif; font-weight: 400;
}
div { margin-bottom: 4em;
}
.animation { background: #f6ad2d; color: white; text-transform: uppercase; font-size: 1.5em; width: 150px; height: 150px; position: relative; animation: bounceAround 1.1s ease-in-out infinite;
}
.transition { background: #65a6a7; color: #efefef; width: 40%; padding: 1em 0; text-align: center; font-size: 1.2em; letter-spacing: .05em; border-radius: 10px; transition: .4s background ease-out;
}
.transition p { margin: 0; padding: 0; pointer-events: none;
}
.transition:hover { background: #e65445;
}
@keyframes bounceAround { 0% { transform: translateY(0); } 20% { transform: translateY(-60px) rotate(0deg); } 25% { transform: translateY(20px) rotate(0deg); } 35%, 55% { transform: translateY(0px) rotate(0deg); } 60% { transform: translateY(-20px) rotate(0deg); } 100% { transform: translateY(-20px) rotate(360deg); }
}
Developer | Val Head |
Username | valhead |
Uploaded | August 07, 2022 |
Rating | 3.5 |
Size | 2,915 Kb |
Views | 24,288 |
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 |
Net magazine example - Start | 4,830 Kb |
Listening for Animation Events With JavaScript | 2,727 Kb |
Neon glow letters | 2,595 Kb |
Adding Items | 4,008 Kb |
Spring physics with CSS variables | 3,591 Kb |
Geometric Pattern Mask | 2,527 Kb |
Net magazine demo - Complete | 5,291 Kb |
You are getting very sleepy... | 3,242 Kb |
Nav animation exercise - START | 3,402 Kb |
Playing a CSS animation on hover | 2,424 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 |
A cube | KyleDavidE | 18,627 Kb |
Count up | Alanshortis | 2,391 Kb |
CardMove | Thompsonemerson | 3,699 Kb |
SlideDown FixedMenu | Mp_graphic | 5,602 Kb |
Css3 slide | Nakome | 3,190 Kb |
Mega Menu by Joni | Asakasinsky | 3,171 Kb |
Project_one | MOHIM | 9,592 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
Ionic Infinite outside ion-content with ion-pane | Felquis | 3,117 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!