CSS3 Yin Yang Animation

Size
2,702 Kb
Views
48,576

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 Previews

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!
CSS3 Yin Yang Animation - Script Codes
CSS3 Yin Yang Animation - Script Codes
Home Page Home
Developer Özgür Sağıroğlu
Username ozgursagiroglu
Uploaded August 13, 2022
Rating 3
Size 2,702 Kb
Views 48,576
Do you need developer help for CSS3 Yin Yang Animation?

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!

Özgür Sağıroğlu (ozgursagiroglu) Script Codes
Create amazing marketing copy 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!