Figure 8 animation Type 2

Size
1,925 Kb
Views
68,816

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 Previews

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
Figure 8 animation Type 2 - Script Codes
Figure 8 animation Type 2 - Script Codes
Home Page Home
Developer Keisuke Takahashi
Username ksksoft
Uploaded November 19, 2022
Rating 3
Size 1,925 Kb
Views 68,816
Do you need developer help for Figure 8 animation Type 2?

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!

Keisuke Takahashi (ksksoft) Script Codes
Create amazing art & images 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!