CSS animation properties are animation-name, animation-duration, animation-timing-function, animation-delay, A shorthand form of the animation-rotund-count, animation-direction, animation-fill-mode, and animation-play-state properties.
Surrounded by little balls
@keyframes around{ 0% { transform: translateX(0); } 25%{ transform: translateX(180px); } 50%{ transform: translate(180px, 180px); 75%} {the transform: translate (0180 px); } 100%{ transform: translateY(0); } } div { width: 200px; height: 200px; border: 1px solid red; margin: 20px auto; } div span { display: inline-block; width: 20px; height: 20px; background: orange; border-radius: 100%; animation-name:around; animation-duration: 10s; animation-timing-function: ease; animation-delay: 1s; animation-iteration-count:infinite; }Copy the code