#bigBox
#box
#box2
View Compiled
body {
background:#1a1a1a;
overflow:hidden;
}
#bigBox {
position:absolute;
width:200px;
height:200px;
top:50%;
left:50%;
margin:-100px 0 0 -120px;
animation:bigBoxAnimation 6s linear infinite;
}
#box,#box2 {
position:absolute;
top:60%;
left:50%;
width:40px;
height:40px;
margin:-20px 0 0 -20px;
animation:boxAnimation 2.95s cubic-bezier(0.02, 0.01, 0.31, 1) infinite;
}
#box2 {
animation:boxAnimation 3.2s cubic-bezier(0.02, 0.01, 0.31, 1) infinite;
transform:matrix(-1,0,0,1,0,0);
}
#box::after, #box2::after {
content:'';
position:absolute;
top:0;
left:0;
width:6px;
height:6px;
background:#fff;
border-radius:100%;
animation:spanAnimation 3s cubic-bezier(0.3, 0.27, 0.07, 1.64) infinite;
box-shadow:rgba(255,255,255,1) 0 0 20px 2px;
}
@keyframes bigBoxAnimation {
100% {transform:rotate(360deg);}
}
@keyframes boxAnimation{
50% {transform:translateY(-150px);}
}
@keyframes spanAnimation {
50% {transform:translateX(-150px)}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.