CSS animation

Developer
Size
2,194 Kb
Views
4,048

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 Previews

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;}
}
CSS animation - Script Codes
CSS animation - Script Codes
Home Page Home
Developer Tommy
Username hoehoe
Uploaded December 30, 2022
Rating 3
Size 2,194 Kb
Views 4,048
Do you need developer help for CSS animation?

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!

Tommy (hoehoe) Script Codes
Create amazing captions with AI!

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!