10 divs inside 1 container div
Each of 10 divs is a circle, 2 classes
Circles styled together, separately
Single animation applied to container
1
Same sizing and border for all
Double border
Each circle has different color, rotations
Container 3D value impact
Rotations, x and y axis
.dot { position: absolute; border: 4px double; border-radius: 50%; width: 50px; height: 50px; }
.dot1 { border-color: #6622CC; transform: rotateY(50deg); }
.contain { transform-style: preserve-3d; }
2
3
4
.contain { animation: rotate 6s infinite linear; }
animation property
element class
animation name
duration
repeat
transition timing
@keyframes rotate { 50% { transform: rotateY(360deg) rotateX(180deg); } }
5
.contain { animation: rotate 6s infinite linear; transform-origin: middle; }
Keep practicing and experimenting
Find all materials at dotdoodl.com
Thanks again!
By icn
Intro to CSS animation class 3: Morphing Dot, for dotdoodl.com series