Radials

Developer
Size
4,821 Kb
Views
10,120

How do I make an radials?

A circle animation. Generated with http://nobitagit.github.io/radial/ . What is a radials? How do you make a radials? This script and codes were developed by Nobitagit on 05 December 2022, Monday.

Radials Previews

Radials - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Radials</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <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! */ *,
*:before,
*:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { background: #2D2E2F;
}
.stage { display: flex; align-items: center; justify-content: center; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
}
.container { width: 187px; height: 187px; border-radius: 100%; display: inline-block; position: relative; animation: rotateAc 52s infinite linear;
}
.container div { position: absolute; transition: all 1s; border-radius: 100%; color: #E1EEFD; background: linear-gradient(to bottom, #802de5 0%, #3b8cef 100%);
}
.small div:nth-child(1) { left: 87px; top: -71px;
}
.small div:nth-child(2) { left: 130px; top: -65px;
}
.small div:nth-child(3) { left: 169px; top: -47px;
}
.small div:nth-child(4) { left: 203px; top: -20px;
}
.small div:nth-child(5) { left: 228px; top: 14px;
}
.small div:nth-child(6) { left: 242px; top: 55px;
}
.small div:nth-child(7) { left: 245px; top: 98px;
}
.small div:nth-child(8) { left: 236px; top: 140px;
}
.small div:nth-child(9) { left: 216px; top: 178px;
}
.small div:nth-child(10) { left: 187px; top: 210px;
}
.small div:nth-child(11) { left: 150px; top: 232px;
}
.small div:nth-child(12) { left: 109px; top: 244px;
}
.small div:nth-child(13) { left: 65px; top: 244px;
}
.small div:nth-child(14) { left: 24px; top: 232px;
}
.small div:nth-child(15) { left: -12px; top: 210px;
}
.small div:nth-child(16) { left: -41px; top: 178px;
}
.small div:nth-child(17) { left: -61px; top: 140px;
}
.small div:nth-child(18) { left: -70px; top: 98px;
}
.small div:nth-child(19) { left: -67px; top: 55px;
}
.small div:nth-child(20) { left: -53px; top: 14px;
}
.small div:nth-child(21) { left: -28px; top: -20px;
}
.small div:nth-child(22) { left: 5px; top: -47px;
}
.small div:nth-child(23) { left: 44px; top: -65px;
}
.big div:nth-child(1) { left: 84px; top: -42px;
}
.big div:nth-child(2) { left: 118px; top: -37px;
}
.big div:nth-child(3) { left: 150px; top: -23px;
}
.big div:nth-child(4) { left: 176px; top: -1px;
}
.big div:nth-child(5) { left: 196px; top: 26px;
}
.big div:nth-child(6) { left: 208px; top: 58px;
}
.big div:nth-child(7) { left: 210px; top: 93px;
}
.big div:nth-child(8) { left: 203px; top: 126px;
}
.big div:nth-child(9) { left: 187px; top: 157px;
}
.big div:nth-child(10) { left: 164px; top: 182px;
}
.big div:nth-child(11) { left: 134px; top: 200px;
}
.big div:nth-child(12) { left: 101px; top: 209px;
}
.big div:nth-child(13) { left: 67px; top: 209px;
}
.big div:nth-child(14) { left: 34px; top: 200px;
}
.big div:nth-child(15) { left: 4px; top: 182px;
}
.big div:nth-child(16) { left: -18px; top: 157px;
}
.big div:nth-child(17) { left: -34px; top: 126px;
}
.big div:nth-child(18) { left: -41px; top: 93px;
}
.big div:nth-child(19) { left: -39px; top: 58px;
}
.big div:nth-child(20) { left: -27px; top: 26px;
}
.big div:nth-child(21) { left: -7px; top: -1px;
}
.big div:nth-child(22) { left: 18px; top: -23px;
}
.big div:nth-child(23) { left: 50px; top: -37px;
}
.small div { width: 12px; height: 12px;
}
.big div { width: 18px; height: 18px;
}
#two { animation: rotateC 22s infinite linear; transform-origin: 50%; width: 100%; left: 50%; top: 50%; margin-left: -93px; margin-top: -93px; height: 100%; position: absolute;
}
#one { animation: rotateC2 23s infinite linear; transform-origin: 50%; width: 100%; left: 50%; top: 50%; margin-left: -93px; margin-top: -93px; height: 100%; position: absolute;
}
p { text-align: center; color: #3b8cef; font-size: 10px;
}
.wannabe-a-link { color: #5A9DEF;
}
@keyframes rotateAc { 0% { transform: rotate(360deg); }
}
@keyframes rotateC { 42% { transform: rotate(-125deg); }
}
@keyframes rotateC2 { 54% { transform: rotate(125deg); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <p> code is generated at <span class="wannabe-a-link">nobitagit.github.io/radial</span> </p> <main class="stage"> <div id="cnt" class="container"> <article id="one" class="small"> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> </article> <article id="two" class="big"> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> </article> </div> </main> <script src="js/index.js"></script>
</body>
</html>

Radials - Script Codes CSS Codes

*,
*:before,
*:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { background: #2D2E2F;
}
.stage { display: flex; align-items: center; justify-content: center; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
}
.container { width: 187px; height: 187px; border-radius: 100%; display: inline-block; position: relative; animation: rotateAc 52s infinite linear;
}
.container div { position: absolute; transition: all 1s; border-radius: 100%; color: #E1EEFD; background: linear-gradient(to bottom, #802de5 0%, #3b8cef 100%);
}
.small div:nth-child(1) { left: 87px; top: -71px;
}
.small div:nth-child(2) { left: 130px; top: -65px;
}
.small div:nth-child(3) { left: 169px; top: -47px;
}
.small div:nth-child(4) { left: 203px; top: -20px;
}
.small div:nth-child(5) { left: 228px; top: 14px;
}
.small div:nth-child(6) { left: 242px; top: 55px;
}
.small div:nth-child(7) { left: 245px; top: 98px;
}
.small div:nth-child(8) { left: 236px; top: 140px;
}
.small div:nth-child(9) { left: 216px; top: 178px;
}
.small div:nth-child(10) { left: 187px; top: 210px;
}
.small div:nth-child(11) { left: 150px; top: 232px;
}
.small div:nth-child(12) { left: 109px; top: 244px;
}
.small div:nth-child(13) { left: 65px; top: 244px;
}
.small div:nth-child(14) { left: 24px; top: 232px;
}
.small div:nth-child(15) { left: -12px; top: 210px;
}
.small div:nth-child(16) { left: -41px; top: 178px;
}
.small div:nth-child(17) { left: -61px; top: 140px;
}
.small div:nth-child(18) { left: -70px; top: 98px;
}
.small div:nth-child(19) { left: -67px; top: 55px;
}
.small div:nth-child(20) { left: -53px; top: 14px;
}
.small div:nth-child(21) { left: -28px; top: -20px;
}
.small div:nth-child(22) { left: 5px; top: -47px;
}
.small div:nth-child(23) { left: 44px; top: -65px;
}
.big div:nth-child(1) { left: 84px; top: -42px;
}
.big div:nth-child(2) { left: 118px; top: -37px;
}
.big div:nth-child(3) { left: 150px; top: -23px;
}
.big div:nth-child(4) { left: 176px; top: -1px;
}
.big div:nth-child(5) { left: 196px; top: 26px;
}
.big div:nth-child(6) { left: 208px; top: 58px;
}
.big div:nth-child(7) { left: 210px; top: 93px;
}
.big div:nth-child(8) { left: 203px; top: 126px;
}
.big div:nth-child(9) { left: 187px; top: 157px;
}
.big div:nth-child(10) { left: 164px; top: 182px;
}
.big div:nth-child(11) { left: 134px; top: 200px;
}
.big div:nth-child(12) { left: 101px; top: 209px;
}
.big div:nth-child(13) { left: 67px; top: 209px;
}
.big div:nth-child(14) { left: 34px; top: 200px;
}
.big div:nth-child(15) { left: 4px; top: 182px;
}
.big div:nth-child(16) { left: -18px; top: 157px;
}
.big div:nth-child(17) { left: -34px; top: 126px;
}
.big div:nth-child(18) { left: -41px; top: 93px;
}
.big div:nth-child(19) { left: -39px; top: 58px;
}
.big div:nth-child(20) { left: -27px; top: 26px;
}
.big div:nth-child(21) { left: -7px; top: -1px;
}
.big div:nth-child(22) { left: 18px; top: -23px;
}
.big div:nth-child(23) { left: 50px; top: -37px;
}
.small div { width: 12px; height: 12px;
}
.big div { width: 18px; height: 18px;
}
#two { animation: rotateC 22s infinite linear; transform-origin: 50%; width: 100%; left: 50%; top: 50%; margin-left: -93px; margin-top: -93px; height: 100%; position: absolute;
}
#one { animation: rotateC2 23s infinite linear; transform-origin: 50%; width: 100%; left: 50%; top: 50%; margin-left: -93px; margin-top: -93px; height: 100%; position: absolute;
}
p { text-align: center; color: #3b8cef; font-size: 10px;
}
.wannabe-a-link { color: #5A9DEF;
}
@keyframes rotateAc { 0% { transform: rotate(360deg); }
}
@keyframes rotateC { 42% { transform: rotate(-125deg); }
}
@keyframes rotateC2 { 54% { transform: rotate(125deg); }
}

Radials - Script Codes JS Codes

var cnt = document.getElementById('cnt'), one = document.getElementById('one'), two = document.getElementById('two');
function toggle(){ one.classList.toggle('small') one.classList.toggle('big') two.classList.toggle('small') two.classList.toggle('big')
}
var ying = function(){ one.className = 'big' two.className = 'small'; setTimeout(yang, 2000);
},
yang = function(){ one.className = 'small' two.className = 'big'; setTimeout(ying, 2000);
}
ying();
///////////////////
Radials - Script Codes
Radials - Script Codes
Home Page Home
Developer Nobitagit
Username nobitagit
Uploaded December 05, 2022
Rating 3
Size 4,821 Kb
Views 10,120
Do you need developer help for Radials?

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!

Nobitagit (nobitagit) Script Codes
Create amazing captions 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!