![]() |
VOOZH | about |
The glowing star effect is one of the coolest effects that is used for dark themed websites. It is known as star effect because it has small glowing balls animated in different ways which looks like stars. This effect can be used for image slider, loader, and maybe as an showcase UI element.
Approach: The approach is to create small balls using unordered list and then animating them using keyframes and n-th child property. Basic knowledge of these two properties is a prerequisite of going any further in this article.
HTML Code: In this section, we have created an unordered list.
CSS Code: For CSS, follow the given below steps:
Tip: This effect is one of the most versatile effects. You can change the type of animation on different frames or can change the delay. So, try out different values of the properties that are used in this article to find the best animation for yourself. Also this effect only looks good on a dark-theme page so don't use it on light-themed websites.
Complete Code: It is the combination of the above two sections of code.
Output: