How To Add Beautiful Page Peel Effect with jQuery

1.Login to your blogger dashboard--> layout- -> Edit HTML

2.Don't Click on "Expand Widget Templates"

3.Scroll down to where you see ]]></b:skin> tag:

4.Copy below code and paste it just before the ]]></b:skin> tag.

#pageflip {
position: relative;
}
#pageflip img {
width: 50px; height: 52px;
z-index: 99;
position: absolute;
right: 0; top: 0;
-ms-interpolation-mode: bicubic;
}
#pageflip .msg_block {
width: 50px; height: 50px;
position: absolute;
z-index: 50;
right: 0; top: 0;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2nYUXZbMatVlDFVEN-oCEFWNVL8gKMuGF8YLgPwisZhVKIyFtxxqYpiN6XqGya9CmU546JqThqt3v-READzZUMOM_kPk8_NUQqR20YqFfSRA_7ntYPgFbg9Vsh8ZUbJrTdvNNafoLxURe/) no-repeat right top;
text-indent: -9999px;
}


Note : Please host 'subscribe.png' image yourself.

5.Scroll down to where you see </head> tag:

6.Copy below code and paste it just before the </head> tag.

<script src='http://code.jquery.com/jquery-latest.js' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function(){

//Page Flip on hover

$(&quot;#pageflip&quot;).hover(function() {
$(&quot;#pageflip img , .msg_block&quot;).stop()
.animate({
width: &#39;307px&#39;,
height: &#39;319px&#39;
}, 500);
} , function() {
$(&quot;#pageflip img&quot;).stop()
.animate({
width: &#39;50px&#39;,
height: &#39;52px&#39;
}, 220);
$(&quot;.msg_block&quot;).stop()
.animate({
width: &#39;50px&#39;,
height: &#39;50px&#39;
}, 200);
});


});
</script>


6.Scroll down to where you see <body> tag:

7.Copy below code and paste it just after the <body> tag.

<div id='pageflip'>
<a href='http://feeds2.feedburner.com/blogspot/WyNa'>
<img alt='' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBxjNruxpdFsi9Y5RtkWUQg4pXdzWFh4DRey-NsWNU7QUlIalXduKDCExjmXulq3BnZhtfxzwuixtGzoXGoPGal_hifHRq7rk3tzi5ScrcAw3mhHfyKCyFO5LVV-s-itcod7idEu5lMgKQ/'/>
<span class='msg_block'>Subscribe via RSS</span>
</a>
</div>


Note : Please host 'page_flip.png' image yourself.

Replace 'http://feeds2.feedburner.com/blogspot/WyNa' with your feed address.

8.Click on "Save Templates" and now you are done.It will look like this :



When your mouse brings towards above icon it willlook like this :

0 comments:

Post a Comment

 

Support By Blogger