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 |
Get Form value with jQuery | 1,931 Kb |
Check box in Bootstrap Drop down list | 2,170 Kb |
CSS animation | 2,194 Kb |
CSS Sub-orderd list | 1,965 Kb |
Flex box | 2,171 Kb |
Adding FontAwsome icon via CSS pseudo vs fa class | 2,614 Kb |
Star Rates with radio buttons and CSS | 2,650 Kb |
A Pen by Tommy | 1,738 Kb |
Timeline with CSS | 2,552 Kb |
Timeline sample | 2,263 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 Pen by Michael Parenteau | Michaelparenteau | 2,133 Kb |
Css color for svg | Ademilter | 2,392 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Animate elements with fixed gradient | Badabam | 4,406 Kb |
Word Wrap Algorithm for Multiline Canvas Text | Peterhry | 2,349 Kb |
Pagepilling.js | Blossk | 6,554 Kb |
Navcube | Wbarlow | 4,775 Kb |
Falling Down the Rabbit Hole | Rachelnabors | 4,578 Kb |
Simple Linear Regression with Editable Table | Melatonind | 3,264 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!