![]() |
VOOZH | about |
Wave ball effect is a new entry in the world of animation effects that are used in the designing of modern web apps. In this effect, we have some balls which are animated like a wave. Now you can add different elements to it make it unique like a different color for balls and animation-delay or by changing the axis of animation.
Approach: The approach is to first create some small size balls and then use keyframes to animate them and also change the color of the balls on each frame division. Then we will be adding some animation-delay to each of the balls. Although, the animation delay part is optional.
HTML Code: In this section, we have created a number of span tags that will be used to make the balls. All of them are wrapped inside a div tag.
CSS Code: For CSS, follow the below given steps.
Tip: Make sure the to keep the size of balls small and you can change the axis of animation to X-axis for a different effect.
Complete Code: It is the combination of the above two sections of code.
Output:
👁 Image