Figure 8 animation
How do I make an figure 8 animation?
What is a figure 8 animation? How do you make a figure 8 animation? This script and codes were developed by Keisuke Takahashi on 19 November 2022, Saturday.
Figure 8 animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Figure 8 animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="eight"></div> <script src="js/index.js"></script>
</body>
</html>
Figure 8 animation - Script Codes CSS Codes
body {background:#111;}
.eight { margin: 4em auto; background: transparent; width: 8em; height: 8em; position: relative; -webkit-transform-origin: center center 0; transform-origin: center center 0; -webkit-animation: flip 1s infinite step-end; animation: flip 1s infinite step-end;
}
.eight:before { content: ""; display: block; position: absolute; top:0; left:3.5em; width: 1em; height: 4em; background: transparent; box-shadow:0 -0.5em 0 0 #fff,0 0.5em 0 0 #fff inset; -webkit-transform-origin: center bottom 0; transform-origin: center bottom 0; -webkit-animation: roll 1s infinite linear; animation: roll 1s infinite linear;
}
@keyframes roll { 100% { transform: rotateZ(-2turn); }
}
@-webkit-keyframes roll { 100% { -webkit-transform: rotateZ(-2turn); }
}
@keyframes flip { 25% { transform: rotateX(0.5turn) translate(0,-8em); } 75% { transform: rotateX(0turn); }
}
@-webkit-keyframes flip { 25% { -webkit-transform: rotateX(0.5turn) translate(0,-8em); } 75% { -webkit-transform: rotateX(0turn); }
}
Figure 8 animation - Script Codes JS Codes
// Type 2 is ---> codepen.io/ksksoft/pen/ycvIm
Developer | Keisuke Takahashi |
Username | ksksoft |
Uploaded | November 19, 2022 |
Rating | 3.5 |
Size | 1,847 Kb |
Views | 93,104 |
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 |
Pure CSS drower menu with transition-delay | 1,898 Kb |
SVG PIE Chart with CSS animation | 2,107 Kb |
Pure CSS Slide Panel | 2,463 Kb |
Pure CSS Drawer Menu | 2,472 Kb |
TEMARI Sphere | 2,369 Kb |
Box-shadow hexagon mask | 2,196 Kb |
Pure CSS candle light animation by One element | 2,193 Kb |
Pure css thumbnails hover 2 | 1,940 Kb |
Equalizer | 2,009 Kb |
Figure 8 animation Type 2 | 1,925 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 |
Isometric css island | Xaddict | 2,950 Kb |
Perspective Origin Demo | Agelber | 3,614 Kb |
Twitch API | Coderpilot | 3,412 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
IPhone5S SVG Space Grey | Onlinechris | 75,035 Kb |
The Monty Hall Problem | Melatonind | 4,360 Kb |
Social.svg.min | Larsenwork | 13,849 Kb |
Carousel Test | Sbirchall | 1,509 Kb |
A Pen by Bryan Rojas | Bryanrojas | 1,873 Kb |
Popup Modal | Aldlevine | 3,696 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!