Figure 8 animation Type 2
How do I make an figure 8 animation type 2?
What is a figure 8 animation type 2? How do you make a figure 8 animation type 2? This script and codes were developed by Keisuke Takahashi on 19 November 2022, Saturday.
Figure 8 animation Type 2 - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Figure 8 animation Type 2</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 Type 2 - Script Codes CSS Codes
body {background-color: #030;}
.eight { position: relative; font-size: 4em; height:5em; width: 1em; margin: 0 auto; background-color: #030; -webkit-transition: background-color 0.5s; transition: background-color 0.5s; -webkit-animation: eight 1s -1s infinite ease alternate; animation: eight 1s -1s infinite ease alternate;
}
.eight:hover { background-color:#040;
}
.eight:before,
.eight:after { content: ""; display: block; height:1em; width: 1em; position: absolute; border-radius: 50%; top: 2em; background: yellow ; -webkit-animation: updown 2s infinite linear; animation: updown 2s infinite linear;
}
.eight:after { background: red ; -webkit-animation-delay: -1s; animation-delay: -1s;
}
@-webkit-keyframes eight { 0%,25% { -webkit-transform: rotate(40deg); } 100%,75% { -webkit-transform: rotate(-40deg); }
}
@keyframes eight { 0%,25% { transform: rotate(40deg); } 100%,75% { transform: rotate(-40deg); }
}
@-webkit-keyframes updown { 25% { -webkit-transform: translate3d(0,-2em,0); } 75% { -webkit-transform: translate3d(0,2em,0); }
}
@keyframes updown { 25% { transform: translate3d(0,-2em,0); } 75% { transform: translate3d(0,2em,0); }
}
Figure 8 animation Type 2 - Script Codes JS Codes
// Hover center point, You can find the structure.
//
// Type 1 is ---> codepen.io/ksksoft/pen/lsqEo
Developer | Keisuke Takahashi |
Username | ksksoft |
Uploaded | November 19, 2022 |
Rating | 3 |
Size | 1,925 Kb |
Views | 68,816 |
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 |
CSS Slot Machine | 3,111 Kb |
Box-shadow hexagon mask | 2,196 Kb |
Pure css Dialogue UI | 2,457 Kb |
TEMARI Sphere | 2,369 Kb |
SVG PIE Chart with CSS animation | 2,107 Kb |
Real eye with CSS Sfumato | 2,734 Kb |
Pure CSS drower menu with transition-delay | 1,898 Kb |
Ladybird Fly Away | 2,629 Kb |
Pure css thumbnails hover | 1,773 Kb |
Pure CSS Drawer Menu | 2,472 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 |
12 DAYS OF XMAS | Proto78 | 2,313 Kb |
Weather App | OmranAbazid | 2,596 Kb |
Multiple jCarousel | Pafnuty | 2,461 Kb |
Personal Logo Animation | Lloydwheeler | 3,795 Kb |
A Pen by Xand0r | Xand0r | 1,928 Kb |
Animated bar chart | CreativePunch | 3,124 Kb |
SlideDown FixedMenu | Mp_graphic | 5,602 Kb |
Sencha Touch 2.3.1 Basic Grid Example | Trozdol | 2,770 Kb |
TweetBox with React JS | J0zelito | 3,325 Kb |
Wikipedia Viewer | Thalpha | 4,426 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!