Home >Web Front-end >JS Tutorial >Let the snowflakes on your blog exceed the screen and still be visible_jquery
A few days ago, I saw the article that made your blog snowflakes in the garden, so I quickly put it on my blog to see the effect. Needless to say, it is really beautiful. But after looking at it for a while, I found that the page became particularly stuck.
After looking at the code, I found that the original author kept inserting multiple small div snowflakes into the body to slowly float downward. After floating to the bottom of the body, the snowflakes were removed.
But, in fact, we can’t see the page beyond the screen, so what’s the point even if there are snowflakes floating.
So, I slightly modified the original code so that it only fell from the top of the screen to the bottom of the screen (not the bottom of the body), then removed the snowflake, and changed the snowflake to fixed positioning.
Refreshed the page and it was much better. Now post the modified code to share with everyone.
PS. I couldn’t find the link to the original author. The copyright belongs to the original author:)