CSS3 Yin Yang Animation
How do I make an css3 yin yang animation?
What is a css3 yin yang animation? How do you make a css3 yin yang animation? This script and codes were developed by Özgür Sağıroğlu on 13 August 2022, Saturday.
CSS3 Yin Yang Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Yin Yang Animation</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! */ @keyframes rotate { to { -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
#yin-yang { position: absolute; top: 50%; left: 50%; margin: -24px 0 0 -48px; width: 96px; height: 48px; background: #eee; border-color: black; border-style: solid; border-width: 2px 2px 50px 2px; -moz-border-radius: 100%; -webkit-border-radius: 100%; border-radius: 100%; animation: rotate 5s linear infinite;
}
#yin-yang:before, #yin-yang:after { content: ""; position: absolute; top: 50%; border: solid 18px; width: 12px; height: 12px; -moz-border-radius: 100%; -webkit-border-radius: 100%; border-radius: 100%;
}
#yin-yang:before { left: 0; background: #eee; border-color: black;
}
#yin-yang:after { left: 50%; background: black; border-color: #eee;
}
#yin-yang.active { -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="yin-yang"></div> <script src="js/index.js"></script>
</body>
</html>
CSS3 Yin Yang Animation - Script Codes CSS Codes
@keyframes rotate { to { -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
#yin-yang { position: absolute; top: 50%; left: 50%; margin: -24px 0 0 -48px; width: 96px; height: 48px; background: #eee; border-color: black; border-style: solid; border-width: 2px 2px 50px 2px; -moz-border-radius: 100%; -webkit-border-radius: 100%; border-radius: 100%; animation: rotate 5s linear infinite;
}
#yin-yang:before, #yin-yang:after { content: ""; position: absolute; top: 50%; border: solid 18px; width: 12px; height: 12px; -moz-border-radius: 100%; -webkit-border-radius: 100%; border-radius: 100%;
}
#yin-yang:before { left: 0; background: #eee; border-color: black;
}
#yin-yang:after { left: 50%; background: black; border-color: #eee;
}
#yin-yang.active { -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);
}
CSS3 Yin Yang Animation - Script Codes JS Codes
// hi!
Developer | Özgür Sağıroğlu |
Username | ozgursagiroglu |
Uploaded | August 13, 2022 |
Rating | 3 |
Size | 2,702 Kb |
Views | 48,576 |
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 |
Fit font size | 3,404 Kb |
Pure CSS Disable Item on Hover | 3,162 Kb |
OnScreenAction | 2,647 Kb |
FitScroll | 3,816 Kb |
Js scroll after before action | 2,907 Kb |
Css3 box border animation | 3,619 Kb |
Scroll Blocker | 4,517 Kb |
Text-shadow effect on key press | 3,707 Kb |
CSS3 Station Message | 5,911 Kb |
CSS3 Hourglass | 5,732 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 |
Review test | Otro_user_gil | 4,054 Kb |
Image Stack Test SCSS | CalvinMorett | 2,799 Kb |
About Mazano | Kiti | 2,585 Kb |
My three.js practice | Esambino | 3,203 Kb |
Bubble animation | Ftabor | 6,565 Kb |
Magnus 3 | ARocketfish | 7,944 Kb |
Web Spiral - p5.js | TWAIN | 2,183 Kb |
Falling Down the Rabbit Hole | Rachelnabors | 4,578 Kb |
Client-side Email Validation | Collizo4sky | 1,538 Kb |
Beautiful canvas stars | Matths | 2,399 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!