Animation Experiment

Developer
Size
2,218 Kb
Views
30,360

How do I make an animation experiment?

Just a little spinning/throbbing loader animation to experiment with CSS3 animation. What is a animation experiment? How do you make a animation experiment? This script and codes were developed by Boylett on 20 August 2022, Saturday.

Animation Experiment Previews

Animation Experiment - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animation Experiment</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: #254C31 }
body > div
{ position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; line-height: 100%; vertical-align: middle; margin: -50px 0 0 -50px; background: #346D45; border-radius: 50%; text-align: center; font-size: 0; animation-duration: 2s; animation-iteration-count: infinite; animation-timing-function: linear; animation-name: spin;
}
body > div > i
{ content: ""; display: inline-block; width: 100%; height: 100%; background: #254C31; border-radius: 50%; animation-duration: 1s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-name: throb;
}
@keyframes throb
{ 0% { margin: 20%; width: 10%; height: 10% } 50% { margin: 10%; width: 80%; height: 80% } 100% { margin: 20%; width: 10%; height: 10% }
}
@keyframes spin
{ 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div> <i></i>
</div>
</body>
</html>

Animation Experiment - Script Codes CSS Codes

body { background: #254C31 }
body > div
{ position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; line-height: 100%; vertical-align: middle; margin: -50px 0 0 -50px; background: #346D45; border-radius: 50%; text-align: center; font-size: 0; animation-duration: 2s; animation-iteration-count: infinite; animation-timing-function: linear; animation-name: spin;
}
body > div > i
{ content: ""; display: inline-block; width: 100%; height: 100%; background: #254C31; border-radius: 50%; animation-duration: 1s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-name: throb;
}
@keyframes throb
{ 0% { margin: 20%; width: 10%; height: 10% } 50% { margin: 10%; width: 80%; height: 80% } 100% { margin: 20%; width: 10%; height: 10% }
}
@keyframes spin
{ 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) }
}
Animation Experiment - Script Codes
Animation Experiment - Script Codes
Home Page Home
Developer Boylett
Username boylett
Uploaded August 20, 2022
Rating 3.5
Size 2,218 Kb
Views 30,360
Do you need developer help for Animation Experiment?

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!

Boylett (boylett) 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!