Day # 75: Flying balls
As I have already mentioned earlier, I strongly believe that animations represent great resources for learning the fundamentals of CSS. I recently came across a website that had a background that consisted of flying balls. I thought it looked pretty awesome so I decided to copy it.
The first step was to create small balls of different colors and place them at the bottom of the website. That way I could make them go and fly to the top in random ways through CSS animations.
The key here is to create several “span” elements with the style attribute of “–i:1x” and then assign to them random animations. This way it looks like they are going all over the place, which is exactly what we want to achieve!
Comments
Post a Comment