CSS animation
How do I make an css animation?
What is a css animation? How do you make a css animation? This script and codes were developed by Tommy on 30 December 2022, Friday.
CSS animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS animation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.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! */ @-webkit-keyframes shake { 0% { -webkit-transform: translate(1px, 0px) rotate(0deg); } 10% { -webkit-transform: translate(-1px, -1px) rotate(-2deg); } 20% { -webkit-transform: translate(-1px, 0px) rotate(3deg); } 30% { -webkit-transform: translate(0px, 1px) rotate(0deg); } 40% { -webkit-transform: translate(1px, -1px) rotate(1deg); } 50% { -webkit-transform: translate(-1px, 1px) rotate(-1deg); } 60% { -webkit-transform: translate(-2px, 1px) rotate(0deg); } 70% { -webkit-transform: translate(1px, 1px) rotate(-2deg); } 80% { -webkit-transform: translate(-1px, -1px) rotate(4deg); } 90% { -webkit-transform: translate(1px, 1px) rotate(0deg); } 100% { -webkit-transform: translate(0px, -1px) rotate(-1deg); }
}
.shake { -webkit-animation-name: shake; -webkit-animation-duration: 0.8s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; -webkit-transform-origin: 50% 100%;
}
div.sample { color: #f00; height:100px; animation: anime1 5s ease -2s infinite alternate;
}
@keyframes anime1 {
0% {width: 50px; background-color: aqua;}
100% {width: 200px; height: 50px; background-color: blue;}
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="shake">aaaaa</div>
<div class="sample">animation sample</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
CSS animation - Script Codes CSS Codes
@-webkit-keyframes shake { 0% { -webkit-transform: translate(1px, 0px) rotate(0deg); } 10% { -webkit-transform: translate(-1px, -1px) rotate(-2deg); } 20% { -webkit-transform: translate(-1px, 0px) rotate(3deg); } 30% { -webkit-transform: translate(0px, 1px) rotate(0deg); } 40% { -webkit-transform: translate(1px, -1px) rotate(1deg); } 50% { -webkit-transform: translate(-1px, 1px) rotate(-1deg); } 60% { -webkit-transform: translate(-2px, 1px) rotate(0deg); } 70% { -webkit-transform: translate(1px, 1px) rotate(-2deg); } 80% { -webkit-transform: translate(-1px, -1px) rotate(4deg); } 90% { -webkit-transform: translate(1px, 1px) rotate(0deg); } 100% { -webkit-transform: translate(0px, -1px) rotate(-1deg); }
}
.shake { -webkit-animation-name: shake; -webkit-animation-duration: 0.8s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; -webkit-transform-origin: 50% 100%;
}
div.sample { color: #f00; height:100px; animation: anime1 5s ease -2s infinite alternate;
}
@keyframes anime1 {
0% {width: 50px; background-color: aqua;}
100% {width: 200px; height: 50px; background-color: blue;}
}
Developer | Tommy |
Username | hoehoe |
Uploaded | December 30, 2022 |
Rating | 3 |
Size | 2,194 Kb |
Views | 4,048 |
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 |
Vue with axios sample | 2,991 Kb |
Custom checbox with css | 2,825 Kb |
Check box in Bootstrap Drop down list | 2,170 Kb |
A Pen by Tommy | 1,738 Kb |
Timeline with CSS | 2,552 Kb |
CSS Sub-orderd list | 1,965 Kb |
Flex box | 2,171 Kb |
Timeline sample | 2,263 Kb |
Parallax with only css | 3,096 Kb |
Get Form value with jQuery | 1,931 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 |
Draggable directive | YahyaKacem | 2,277 Kb |
Flying Bee | Pwsm50 | 3,711 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Apex Calculator | Michaelwnelson | 2,370 Kb |
Project Euler Problem 17 | Bfillmer | 2,739 Kb |
Responsive Menu I | Rodericksandoval | 3,045 Kb |
Nested flexbox layout for library catalog | Boycetrus | 3,271 Kb |
Classy Blockquote Styling | Andrewwright | 3,212 Kb |
Weather App 2 | MightyJoeW | 2,877 Kb |
Pure CSS read more toggle | Idered | 2,344 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!