Trang trí blog mùa giáng sinh với hiệu ứng tuyết rơi, ông già Noel và giàn chuông cực độc.
Mùa giáng sinh mà có ông già Noel cưỡi tuần lộc chạy tới chạy lui thì không có gì thú vị bằng. Hiệu ứng này rất đơn giản chỉ cần chèn đoạn code này ngay phía sau thẻ <body> là được.
DEMO
<b:if cond='data:blog.url == "URL_HERE"'> <style> body{margin:0;padding:0;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGyFsS0KKP1zqYe_XLdrT1hiIbru5Q3A-jcpcusNHNZFDD-2R5TDB68Mq_j4erhsBN7xdnf39ApRYlZgYnvIrlZ_7aAocbDN-unAL1gG_5tzzqr8l88drrraTZsI4YLaUe9-N_3XA4rfpr/s0/christmas-background.jpg);background-size:cover;text-align:center;word-wrap:break-word;background-attachment:fixed;background-position:center} #top-comment{box-shadow:0 1px 0 rgba(0,0,0,.05),0 3px 3px rgba(0,0,0,.05);margin-top:20px;overflow:hidden;font-size:100%;position:fixed;background:rgba(255,255,255,0.83);width:300px;bottom:0;right:10px} #top-comment h4,.related-post h4{font-size:17px;margin:0 0 .5em;background:rgba(214,5,13,0.73);color:rgb(255,255,255);padding:10px;font-weight:normal;position:relative;text-transform:uppercase} .santa{z-index:600;cursor:pointer;-webkit-animation:FlyingSanta 38s infinite linear;-moz-animation:FlyingSanta 38s infinite linear;-ms-animation:FlyingSanta 38s infinite linear;-o-animation:FlyingSanta 38s infinite linear;animation:FlyingSanta 38s infinite linear;bottom:0%;left:0%;position:absolute} @keyframes FlyingSanta{25%{bottom:80%;left:85%;transform:rotateY(0deg)}26%{transform:rotateY(180deg)}50%{bottom:60%;left:0%;transform:rotateY(180deg)}51%{transform:rotateY(0deg)}75%{bottom:40%;left:85%;transform:rotateY(0deg)}76%{bottom:40%;left:85%;transform:rotateY(180deg)}99%{transform:rotateY(180deg)}} .snow-container{position:fixed;width:100%;max-width:100%;z-index:99999;pointer-events:none;overflow:hidden;top:0;height:100%} .snow{display:block;position:absolute;z-index:2;top:0;right:0;bottom:0;left:0;pointer-events:none;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);-webkit-animation:snow linear infinite;animation:snow linear infinite} .snow.foreground{background-image:url("https://dl6rt3mwcjzxg.cloudfront.net/assets/snow/snow-large-075d267ecbc42e3564c8ed43516dd557.png");-webkit-animation-duration:15s;animation-duration:10s} .snow.foreground.layered{-webkit-animation-delay:7.5s;animation-delay:7.5s} .snow.middleground{background-image:url(https://dl6rt3mwcjzxg.cloudfront.net/assets/snow/snow-medium-0b8a5e0732315b68e1f54185be7a1ad9.png);-webkit-animation-duration:20s;animation-duration:15s} .snow.middleground.layered{-webkit-animation-delay:10s;animation-delay:10s} .snow.background{background-image:url(https://dl6rt3mwcjzxg.cloudfront.net/assets/snow/snow-small-1ecd03b1fce08c24e064ff8c0a72c519.png);-webkit-animation-duration:25s;animation-duration:20s} .snow.background.layered{-webkit-animation-delay:12.5s;animation-delay:12.5s} @-webkit-keyframes snow{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{-webkit-transform:translate3d(5%,100%,0);transform:translate3d(5%,100%,0)}} @keyframes snow{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{-webkit-transform:translate3d(5%,100%,0);transform:translate3d(5%,100%,0)}} .lgo{position:absolute;width:200px;z-index:1;overflow:hidden;top:-39px;left:1%;height:100%} .thong{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_zz9EkwQVp-yJ1tbRUijXEBN8yJZxxPR_CbHMrZL2M_JXB09OZiV08pKfU8nnhl-_y9n60P0YlW2CxqwY1NaGfPokjpY2yI3zk3y0M2AuJd0FBXOUAILahP6vu2D0GIeSO1gYziR6ZFRQ/s320/cay-thong-giang-sinh-noel-2.png);background-repeat:no-repeat;position:absolute;width:300px;z-index:1;overflow:hidden;bottom:0;left:0%;height:300px} .daythong{background-image:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2SW99sdour4KHmXl7E1iWLo47bcji-UCEmkT5BohOqC0GLyRMKxvLYGZbOBg5NWM9K_Q-Y5t6pVykNyZAt_TL2uFkeNTNSOyIp0yDNuk5erwBF8qngGNYR4rGZWebROpWCcEOhxpFRlTb/s0/qua-chau-trang-tri-noel.png");background-repeat:repeat-x;top:-39px;width:100%;height:236px;position:relative} .sthong{position:relative;top:-39px} h2{background:rgba(1,107,183,0.79);padding:10px;color:white} </style> <div class='daythong'/> <h2 class='happy'>Christmas spells out love, hope and joy. Pass it on to everyone in your life. Have a great Christmas.</h2> <div class='sthong'/> <a class='lgo' href='/'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRsoujqFZ_AO6zqvJoiWFukktm6IPMiQ24ukcQrbduSMTxo7aopiu3VtGTGLrxXi5F0lnW7wkksgL6Pryqx3uFd0-taYUGdG_1TAubZcS1rQ23jg0r8p6QBY1CJMxjzmd1tQ92gRReyVN1/s320/large_merry-christmas-title2.png' width='320'/></a> <div class='thong'/><div class='snow-container'><div class='snow foreground'/> <div class='snow foreground layered'/><div class='snow middleground'/><div class='snow middleground layered'/><div class='snow background'/><div class='snow background layered'/> <img alt='Santa Be Watchin' class='santa' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik_cc1bFsH0edOARNYUGMwQiKiqAjkaSpAHGPnQxipQUxeOfM7engYad01wGyqBL239RNbFyyQMs4ZG6_P1HwXuWpZpeksufdhyUC9VXnA7ROevQ6mKhOIs_6SUDO3Vxg6dIu2Jjl53V7F/s0/santas.gif'/> <object width="1" height="1"> <param name="movie" value="http://www.nhaccuatui.com/m/f32o3Q4f6Q" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <param name="allowscriptaccess" value="always" /> <param name="allowfullscreen" value="true"/> <param name="flashvars" value="autostart=true" /> <embed src="http://www.nhaccuatui.com/m/f32o3Q4f6Q" flashvars="target=blank&autostart=true" allowscriptaccess="always" allowfullscreen="true" quality="high" wmode="transparent" type="application/x-shockwave-flash" width="1" height="1"></embed></object> </div> <div id='top-comment'> <h4><span>Bình luận</span></h4> <div class='top-content'><div id='fb_comments'> <div class='fb-comments' data-colorscheme='light' data-href='URL_HERE' data-numposts='8' data-width='300'/> <div id='fb-root'/> <script type='text/javascript'> /*<![CDATA[*/ //Facebook Script (function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="//connect.facebook.net/vi_VN/sdk.js#xfbml=1&appId=880116602106596&version=v2.3";fjs.parentNode.insertBefore(js,fjs)}(document,'script','facebook-jssdk')); //Google Plus Script (function(){var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src='https://apis.google.com/js/plusone.js';var x=document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x)})(); /*]]>*/ </script> </div></div></div> <b:else/>
và thêm </b:if> trước thẻ </body>
Thay thế URL để hiên thị code giáng sinh nơi muốn hiên thị.
Chúc các bạn thành công