Showing posts with label show flakes. Show all posts
Showing posts with label show flakes. Show all posts

How To Add Snow In The Background of Your Blog Using CSS

Posted by Unknown

falling snow, snow, winter background, bloggerToday we’re going to go over a super simple CSS technique that you can use to make it snow on your Blogger blog. It seems particularly attractive since it doesn't require scripts, only CSS and three small images.

An advantage of this method is that by not using scripts doesn't overload the blog, the disadvantage is that users with not so modern browsers, will not be able to see it (in Internet Explorer works for version 10 and up).

The snow will fall in the background of the blog, which, in addition, prevent interfering with links or content (because the flakes are images), also prevent blocking the visibility of the content of the blog.

You can see the demo in this test blog.


How To Add Falling Snow To Blogger Blogspot

Step 1. Go to Template and click on the Edit HTML button:


Step 2. Click the small arrow on the left of <b:skin>...</b:skin> to expand the style (screenshot 1), then click anywhere inside the code area to search (using CTRL + F) for the ]]></b:skin> tag (screenshot 2) and add this code just above it:

/* Snow falling for Blogger
----------------------------------------------- */
@keyframes snow {
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}
}

@-moz-keyframes snow {
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}
}

@-webkit-keyframes snow {
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}
}

@-ms-keyframes snow {
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}
}

#falling-snow {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUtlqHl9Djs5p0pte_rCn6D5-mhNtCdTr-bSnoeJBZaRQc5NjAQiBUgWhqEKNm5dJIUraYkbD_xuDy3ItQGZPzDcRwNzvX1iezyMOAhiTZFIJLqgNwzb7_MikvtsW6TuY9-zGKYswJRra6/s1600/snow.png), url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTlybuN5heKdi7f4j31m3QfGWtTgI4csfK0Y21V4nZASnbV9Wj4fsSDzi0-cnkcUNvT_SZH_HcoCUe-GRkbnBJJItSUEDiYmepQh2IWb-XqfQyWJbXOo4KO_Djq_xScBXj6s5ZgXOvK_j5/s1600/snow3.png), url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqLaCtDaG6Xfwo-OmySdSzgbIqvnWVTqCKW-B5Lwi4yc5XXO8paGNdTGHnCrLqz5QHV6YmqtqboofkTctGGl_IGTdrjf6TXWvjU50EPYi0hIz3UjhosKywqIAetfjxZA5M1W9CrWJGoeLT/s1600/snow2.png);
-webkit-animation: snow 20s linear infinite;
-moz-animation: snow 20s linear infinite;
-ms-animation: snow 20s linear infinite;
animation: snow 20s linear infinite;
}


Screenshot 1: 


Screenshot 2:


Step 3. Now, search (CTRL + F) for the <body> tag or this line:

<body expr:class='&quot;loading&quot; + data:blog.mobileClass'>

Step 4. And just below, add this:

<div id='falling-snow'>

Step 5. Finally, find the </body> tag (CTRL + F) and add the following just above it:

</div>

Step 6. Save the changes and that's it. Enjoy!!! :)

As you can see this tricks is very simple and easy to install, does not block the visibility of blog's content and the best is that it has no scripts, only CSS and nothing else.
More aboutHow To Add Snow In The Background of Your Blog Using CSS