How to Create a jQuery Peel Away Effect on Your Blogger Blog
First, let’s talk about its
appearance. Just like other Peel away widgets, it would also appear at the top
right corner of your website. Whenever visitors would place their mouse on the
top right corner of your website, it would display the hidden advertisement
with jQuery peel away effect. Check out the following screenshot to learn how
it works.
How to Create a Peel Away Effect on Blogger:
Now, after going through the
online demo let’s get on with the tutorial. Consider the following instructions
and apply them correctly. Remember: The same instructions would also work on
WordPress or any other platform.
Go to Blogger.com >>
Template >> Edit HTML >> Proceed. Now Within the Template search
for the ]]></b:skin> tag and just above it paste the Following StyleSheet CSS coding.
There is no need to do any customization in the StyleSheet. However, if it is necessary
do it accordingly.
/*=======================================================
MBL Page Peel PRO Effect For Blogger
=======================================================*/
.admin-bar #PagePeel{top:27px;}
/*Extra 20px height and width to allow for shadow and movement*/
#PagePeel{
height:120px;
overflow:hidden;
position:absolute;
right:0;
top:0;
width:120px;
z-index:9999;
}
#PagePeel svg{
overflow: hidden;
position: absolute !important;
right: 0;
top: 0;
}
#PagePeel .pointCursor:hover{cursor:pointer;}
#mycontent { position:relative; margin-left:30px; }
Now after adding the CSS
coding search for the </head> tag and just below it Paste the Following
JavaScript coding. However, anyone can also paste it in the Html/JavaScript
Area according to his desire needs.
<!--MBL Page Peel PRO Effect For Blogger-->
<script type='text/javascript' src='https://googledrive.com/host/0B0WJjcJEFNziazIzXzlhMlhtWlU'></script>
<script type='text/javascript' src='https://googledrive.com/host/0B0WJjcJEFNziMmk4anpFWnRPWHc'></script>
<script type='text/javascript' src='https://googledrive.com/host/0B0WJjcJEFNzidExmT1JpWV9xNmc'></script>
<div id="mycontent">Peel Away Effect By <a href="http://www.mybloggerlab.com">MyBloggerLab.com</a></div>
<script type='text/javascript'>
/* <![CDATA[ */
var PagePeelProParams = {"smallImageUrl":"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguOtfQajUAwcSeixAiosSfPkanjWJbs9QGmbich5Bc8h2wlK0VU7O4Owzp9Ou4fdkc_acHmdnRvwcHjOw6tfDJTEWH5LdwUUcRvKQcVXkqwsQ10zjB7-Dk46kYmLpqGjn3RqRoqBzS9kk/s1600/DottedAdvertSmall.png","largeImageUrl":"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN2IpcIlt5Yqs-GzRUWfpXdxf53OS9FvhQoMNGLN4kuzAEl-1nxIiC2mKx6NF-Oy976EAnL22JYLG39lnLM5RTrVeUHU7Z0USTI-NHB4Itnkab7ar6zquQ99HaUdgBuHtqW5GphFVBvd8/s1600/Temppeel.png","peelColorStart":"#545454","peelColorEnd":"#cdcdcf","pagePeelTargetUrl":"http://www.templateism.com","pagePeelActivateEvent":"hover"};
/* ]]> */
</script>
Customization:
- To show your Advertisement on Peel off, just replace https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN2IpcIlt5Yqs-GzRUWfpXdxf53OS9FvhQoMNGLN4kuzAEl-1nxIiC2mKx6NF-Oy976EAnL22JYLG39lnLM5RTrVeUHU7Z0USTI-NHB4Itnkab7ar6zquQ99HaUdgBuHtqW5GphFVBvd8/s1600/Temppeel.png with your Image URL. Make sure the Image size is 500px in Width and 500px in height.
- Replace http://www.templateism.com with your advertisement URL. However, it is not necessary that you always add a URL because we can also use it for notification purpose.
From The Editor’s Desk:
http://www.mybloggerlab.com/2013/01/how-to-create-jquery-peel-away-effect-in-blogger.html