![]() |
| How to Add Falling Snow Effect in Blogger for Chirstmas |
Also check : Decorate your Blogger Blog for Christmas with Christmas Goodies
Adding Falling Snow Effect in Blogger
Go to blogger dashboard >Template>Edit HTMLCTRL+F to find
</head> tag. Copy and paste below code just above it.
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js'/>
<script type='text/javascript'>//<![CDATA[
(function($){$.fn.snow=function(options){var $flake=$('<div id="flake" />').css({'position':'absolute','top':'-50px'}).html('❄'),documentHeight=$(document).height(),documentWidth=$(document).width(),defaults={minSize:10,maxSize:20,newOn:500,flakeColor:"#FFFFFF"},options=$.extend({},defaults,options);var interval=setInterval(function(){var startPositionLeft=Math.random()*documentWidth-100,startOpacity=0.5+Math.random(),sizeFlake=options.minSize+Math.random()*options.maxSize,endPositionTop=documentHeight-40,endPositionLeft=startPositionLeft-100+Math.random()*200,durationFall=documentHeight*10+Math.random()*5000;$flake.clone().appendTo('body').css({left:startPositionLeft,opacity:startOpacity,'font-size':sizeFlake,color:options.flakeColor}).animate({top:endPositionTop,left:endPositionLeft,opacity:0.2},durationFall,'linear',function(){$(this).remove()});},options.newOn);};})(jQuery);//]]></script><script>$(document).ready( function(){
$.fn.snow({ minSize: 10, maxSize: 50, newOn: 400, flakeColor: '#ffffff' });
});</script>You can remove above red colored line of code, If you have already installed jQuery plugin in your blog. If it doesn't works without that plugin then keep it as it is.
Finally, Save Changes in your blogger template, and you're done. Now you should have some nice snowfall effect to your blogger blog.
So, guys it were a steps of adding snowfall effect in your blogger blog, if you have any questions, feel free to ask by commenting below, i would love to answer your questions.
Thanks :)

No comments:
Post a Comment