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 |
One Element Girl | 2,768 Kb |
Pure CSS candle light animation by One element | 2,193 Kb |
Figure 8 animation Type 2 | 1,925 Kb |
Flexbox layout patterns | 2,546 Kb |
Pure css Dialogue UI | 2,457 Kb |
SVG PIE Chart with CSS animation | 2,107 Kb |
Pure CSS Slide Panel | 2,463 Kb |
One div DORAEMON | 2,448 Kb |
SVG Concentrated Linework | 1,806 Kb |
CSS Slot Machine | 3,111 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 |
To Do List with Delete | Mattlbrody | 2,068 Kb |
Price Comparison Table | Orrinward | 3,459 Kb |
Navcube | Wbarlow | 4,775 Kb |
React TODO | Enieste | 3,320 Kb |
Gears | Synvox | 3,278 Kb |
SlideupBoxes | Gavra | 23,772 Kb |
3d css cube | Semenchenko | 4,578 Kb |
Bootstrap Carousel Fade Transition | Rowno | 2,484 Kb |
DFF Website | Hawcubite | 10,123 Kb |
Twitch.tv API | Ryzokuken | 2,618 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!