Tutorials

Latest Word » Tutorials » Simple Page Peel Effect with jQuery & CSS
Simple Page Peel Effect with jQuery & CSS

Simple Page Peel Effect with jQuery & CSS

Tags: ,

You have probably seen these forms of advertisings where you can peel a corner of a website and see a message underneath. It seems most are flash driven, but I decided to try it out using some simple lines of jQuery.

Page Peel Effect with jQuery and CSS

1. HTML – Page Peel Wireframe

The “pageflip” div will act as the container, mainly used to establish the relative positioning. Then nest the image and the span class of “msg_block” wrapped in an <a> tag. Note – If you don’t have any conflicting absolute/relative positioning properties, you technically don’t need the “pageflip” container at all.

<div id="pageflip">
	<a href="#">
		<img src="page_flip.png" alt="" />
		<span class="msg_block">Subscribe via RSS</span>
	</a>
</div>

2. CSS – Page Peel Styles

Set the image property to a smaller size (50px by 50px) by default and set the absolute positioning to be in the top right corner. The image will be used similar to the “masking” technique in Photoshop or Flash, where it will be placed on top of the hidden message, so only a portion of the message will be shown. Check out the image below for a visual:

Page Peel Effect with jQuery and CSS

The actual message behind the “peeling” effect, is all within the “msg_block” class. By default, it will start at 50px by 50px, positioned on the top right corner of the page. The text-indent will shoot the text off of the page for anyone with CSS enabled.

#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(subscribe.png) no-repeat right top;
	text-indent: -9999px;
}

Note that the “msg_block” height is off by 2px compared to the image property – this is taking in consideration of the drop shadow that the image has.

3. jQuery – Animating Page Peel

All we are doing here is expanding the image and msg_block on hover, then retracting to its default size on hover out.

$("#pageflip").hover(function() { //On hover...
	$("#pageflip img , .msg_block").stop()
		.animate({ //Animate and expand the image and the msg_block (Width + height)
			width: '307px',
			height: '319px'
		}, 500);
	} , function() {
	$("#pageflip img").stop() //On hover out, go back to original size 50x52
		.animate({
			width: '50px',
			height: '52px'
		}, 220);
	$(".msg_block").stop() //On hover out, go back to original size 50x50
		.animate({
			width: '50px',
			height: '50px'
		}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
});

Conclusion

The concept is very simple and may come in handy one day. If you have any questions or know of other techniques, please don’t hesitate to let me know~

Page Peel Effect with jQuery and CSS

Related Posts

Author Bio

My name is Soh Tanaka and I am a Los Angeles based designer/front-end developer specializing in CSS driven web design with an emphasis on usability and search engine optimization. I also run a CSS Gallery which is updated daily with the best CSS websites from around the world. Come check it out!

You can learn more about me or Twitter  Follow me on twitter for more updates and resources!

Did You Enjoy This Post?

subscribe  Subscribe via RSS or by email to get all upcoming tutorials and articles delivered straight to you.

+ Add Comment260 Peeps Have Spoken Their Minds...

  1. MAX

    Absolutely Amazing! I thought that without flash it is impossible! But I was wrong :)

  2. saurabh shah

    amazing work …

  3. Michel Morelli

    Great tutorial. Tnx. Can I translate it in italian language? M.

  4. Greg McAusland

    great effect without flash, really good job

  5. Sérgio Soares

    beautiful, u rock SOHTANAKA

  6. Forgetme

    Thanks for sharing. It is better than flash version. It works well in IE6, IE7 and Firefox 3.0.4 for me. I will use this feature in future. :)

  7. TiagoOs

    Very Cool !! and Cross!! great effect!

    gratters
    bye!

  8. Dennison Uy

    Very cool idea. Tested working in IE 6-8 and Opera as well. Kudos!

  9. Aslam A Memon

    kool stuff, keep up the gr8 work


    http://www.aslammemon.com/blog.html

  10. John

    It’s always nice to have other fish in the sea. (It’s kinda lonely out here) Just to keep the options out there though, a non-flash based plugin was already developed for this: http://www.elliottkember.com/sexy_curls.html
    I also developed a plugin that can be Flash or not at http://www.smple.com/pagePeel/ although I need to revisit some of the methods used once I have more time on my hands.

    Great tut though!

  11. Neal G

    That’s pretty cool! I’m having one of those ‘why didn’t I think of that myself’ moments right now.

  12. glnster

    Huge Thank you for making an outstanding non-Flash method!

  13. Erica McGillivray

    Really cool effect that I’m already conjuring up uses for.

  14. Juan Cherry

    I love the simplicity of the method. Thanks for the excellent post!

  15. mrLami

    Awesome stuff guy!

  16. Rafael R.P (Raff)

    Great Tutorial!

    Thx soh!

  17. alian

    Very nice “non-flash” tutorial, than you

  18. Gilbert

    Nice tut. I was actually thinking about trying something like this the other day. Never realised how simple it could be. Thanks.

  19. tomato

    EXCELENT !! thanks

  20. zaan

    awesome tutorial.thanks..

  21. Miguel

    Great work! I have no words! Thanks for it.

  22. dandyyoh

    Really great. kudos

  23. conray

    Excellente!!!

  24. Adrian.Coria

    perfect, really perfect…

  25. Ariyo

    I Love it. Thanks for sharing it with us. YOU ROCK!

  26. Derrick

    Lovely….Just lovely.

    Thanks

    MD

  27. Cristian Eslava

    Just amazing. I do not like very much this paper effect because it´s very common and pretencious, nevertheless I think you made a great of it. If I´d use it I´d use your way.

    Congrats

  28. aymen

    it’s a great effect
    thanks

  29. MorayWeb

    Fantastic! I’ll be using this for sure. Bookmarked on delicious….

  30. Sonny

    Very elegant solution. Your site is very elegant also.
    Thanks for sharing.

  31. Şukufe

    no follow=)

  32. photoshop image masking

    This is absolutely fabulous!!!!

  33. Mahbub

    JQuery jFlip is a similar plugin for photos that I yesterday blogged about in http://www.jquerymagic.com/2009/05/page-flip-with-jquery-jflip-plugin-of-the-week-may-12/. This one is nice as well.

  34. flying

    I like

  35. Jon

    That’s brilliant!

  36. art2code

    nice effect! thx

  37. Mae

    I just wanted to say thanks for your entire site. I’ve learned a lot! (and on a side note, I love your color scheme for this layout)

  38. Kawsar Ali

    Very nice Soh, Its a really cool effect and allows for functionality.

  39. mark@free wii

    Awesome! A simple solution to a problem I thought could only be done in flash too.

  40. sivas

    very good, thank you

  41. Hutek

    Exellent job, thanks

  42. Logo Bang

    That was an awesome tutorial. Thanks for the inspiration and the idea.

  43. Neka

    Good tutorial

  44. Baris

    wonderfull, very good.

  45. AndiOnline

    Thank you very much!

    I used it for the webpage http://www.gasthof-steinerwirt.at – together with prototype.js and scriptaculous, so I had to change your code like this:

    Subscribe via RSS

    and js:


    var isBig=false;
    var scaleFactor=4;
    Event.observe(window,'load',function() {

    Event.observe('pageflip','mouseover',function(event) {
    if(!isBig) {
    new Effect.Scale($('pageflip_img'), 100*scaleFactor, {scaleFromCenter:false,scaleMode: { originalHeight: 52, originalWidth: 50 },scaleContent:false, duration:0.5,delay:0.1});
    new Effect.Scale($('pageflip_msg_block'), 100*scaleFactor, {scaleFromCenter:false,scaleMode: { originalHeight: 50, originalWidth: 50 },scaleContent:false,duration:0.5,delay:0.1});
    isBig=true;
    }
    });

    Event.observe('pageflip','mouseout',function(event) {
    if(isBig) {
    new Effect.Scale($('pageflip_msg_block'), 100/scaleFactor, {scaleFromCenter:false,duration:0.5,delay:0.1});
    new Effect.Scale($('pageflip_img'), 100/scaleFactor, {scaleFromCenter:false,duration:0.5,delay:0.1});
    isBig=false;
    }
    });

    });

  46. Newbie

    I am having problem making this code work.

    It keeps showing up on the website has text when i test it out.

    I am using dreamweaver to design the website.

    Please let me know if i am missing a coding that a more experience person would know to make this work..

    Thank you in advance!

  47. Newbie

    Ok so i figured how to resolve the coding showing up on the screen but now i have no idea how to get the peel to work.

    please help

  48. Reino

    Rocks!

  49. Ali

    thank you for sharing…

  50. bl@nkster

    nice effect, i like it

  51. Joel

    Perfect, thanks for sharing :)

  52. A

    No words to describe. Wonderful.

  53. Akif

    Nice work. Thanks for sharing!

  54. ncj

    This is very nice, however, I don’t believe its key accessible. Someone using a screen reader would miss this totally.

  55. joyologo design shop 2.0

    Very Cool thanks for tut..

  56. Soh

    @all, thanks for the feedback, suggestions, and helpful links!

    @ncj, to degrade nicely for a text reader, all you would have to do is add some text in between <div class="msg_block"></div> :-)

  57. chris

    Hello Guys

    This tuto is fab !!

    But I have an issue with IE someone can check the website http://www.getfitlondon.com

    Work fine with FF

    Cheers

  58. Grégoire Noyelle

    Thanks a lot to share this tuto with us !

  59. Soh

    Hey Chris, can you describe your issue?

  60. chris

    The script work amazingly fine but on IE i got a grey mask on the subscribe picture.
    I edited the picts on fireworks then change the canvas color background but didn t work if you go on my website with IE you will see the issue

    Thanks so much for your help

  61. Soh

    Oh ok, that is due to IE6 not being able to handle PNG files.

    Check out this tutorial on how to get it to work on IE6: http://www.sohtanaka.com/web-design/png-transparency-in-ie6/

  62. Mjf

    Question, is there a way to make it so we can force the page peel to stay in the top right corner no matter if the browser is resized or not? I am not sure if anyone has asked this or not yet, but it is sort of an eye sore when someone resizes or minimized the window so there is a scroll bar the image moves over and then when scrolling doesn’t move back to the corner. This happens in ie7 and Firefox. I am sure there is a way to do it, but I don’t know how.

    Thanks,

    Matt

  63. Soh

    Hey Mjf, I was trying to see that issue, but perhaps I didn’t clearly understand your explanation, can you rephrase your scenario and issue?

  64. mjf

    Sure Soh.

    By the way I forgot to mention this is an awesome tutorial. Thanks so much.

    If you open the pixel design demo for the page peel effect and resize the browser window or viewport so it is small enough for a horizontal scroll bar to appear you will notice a couple things about the page peel.

    When you make the browser window smaller the page peel will stay in the corner as it should, but when you scroll to the right to see the rest of the “website” or in the demo case the background image of the sofa you will notice the page peel effect stays put thus putting it in the center of the screen or covering part of the background.

    It is a really small issue and not even really a bug, but if you were implementing this on a site like yours with the navigational bar in the top right and someone made the browser window smaller and then wanted to scroll to your navigational menu the page peel effect could be covering a portion of the menu bar.

    It would be nice if even when scrolling the page peel effect stayed in the top right hand corner no matter the size of the browser window.

  65. Soh

    Thanks for the break down, I see what your seeing now :-)

    That is actually a problem with the entire layout, not this page peel specifically.

    You can correct that simply by adding a min-width of your body tag. If you notice, that same bug was affecting the entire layout, not just the page peel~

    body {
    min-width: 920px; /*–or whatever size you want it to be–*/
    }

    Let me know if you have any questions :-)

    Thanks!

  66. Enrique

    Gracias por compartir…excelente trabajooo!
    Thanks for sharing this great work!

  67. Arif

    Nice job THanks..

  68. chris

    Thanks soh it worked !!

    Thanks so much l ami

  69. Bobz

    This is nice, but this can’t be delivered trough Ad Serving system.
    So this would be useful if you put this only on your site trough CMS.

  70. GeLZa

    nice…..

  71. Giacomo Ratta [ITA]

    Great idea! Simple code for a professional work.

    Thank you

  72. darwin

    thanks for this great tutorial

  73. Armando

    How can I do this using Tables? Or It is neccesary with Position tags?
    That´s because I prefer Table>Tr>Td method.

  74. Soh

    Armando, Although I don’t recommend it, yea you should have no problem using a table. Just make sure you adjust the css accordingly to hit the right elements.

  75. Stanley @ SEOAdsenseThemes

    Soh, this is very nice and slick jQuery script. Cool effect.

  76. Moschos

    Congratulations! The most amazing CSS code I’ve ever come up to !!! Keep up this excellent work!! I give you 20 / 10

  77. Anthony Alexander

    Wow, page curls are really the shiznit.

    Here’s a demo using Very Versatile Electronic Document V.V.E.D. 1.0

    http://novatvmedia.com/vvcurl

  78. zhangjinlon

    wow!!!non-flash,rather cool~thanks

  79. zhangjinlong

    I like jQuery,jQuery is amazed.

  80. Heri NXI

    nice and simple,
    I need to learn more about jQuery….

  81. Iresh Dilan

    I was finding a tutorial to do this effect. This is the best because no Flash.

  82. goemo

    Hi,

    first of all: Great tutorial and a big “Thank you” for sharing :-)

    My Question: Is it possible to have more than one peel on the same html-site? Thanks for you answer!!!

  83. Rajat chodhary

    oh my gosh! i never thought that before. Really! cool piece of work man.
    Great thanks to sharing this tip.
    Well -n- Done

  84. moralde

    Couldn’t aesthetically beat flash versions, but looks cool and very safe for people like me who doesn’t have a clue about flash.

  85. zac

    Wow.. your work is really beautiful and your tutorials top notch. I am really glad I found this site. Thanks for your excellent work !!

  86. yanzi

    I still don’t know how to make it work like your demo.why?

  87. yanzi

    Now I know how to use it.it’s so nice.Thanks.

  88. Sena kendali

    Damn,,,it’s totaly cool bro…

  89. Gastón Rojas

    Cool!
    nice and simple-
    Thanks!

  90. benson

    nice effect…fantastic technique
    wer could i download it

  91. InternetFluent

    Nice and simple ! Why didn’t I think of it …. animate :P ?
    @benson – dude the code is on this page! What do you want to download? Use copy – paste or is that to hard ?

  92. simo

    great! I’ll try it soon!

  93. Jeremy Denlinger

    Thanks for this awesome tutorial just put it in place here:

    http://www.pequeachurch.com

  94. Jamie Giberti

    This script is awesome and looks great! I was trying to adapt it into a design where underneath the folding corner you have an image that is an image map (so a set of links rather than just one link). I have managed to get this to work in all browsers, apart from IE6 (sigh). IE6 cannot handle the z-index of 99 on the folded corner image in the front. I have tried setting the z-index of said image to 0 during the hover event but this has no effect. Have yourself or anyone else tried anything like this and do you have any ideas?

    Cheers

    Jamie

  95. Gautham Sarang

    I visited your demo site. The peel didn’t come out. I am using Firefox 3.0.11

    Is it my browser?

  96. silviu

    hello,
    first of all congrats on this effect, is really nice. works fine for me on any browser/OS, but unfortunately the exception is called IE6. the problem is that both png files load very very slow. eventually they do appear, but it takes around 6sec to do so. and this is happening on every mouseover/mouseout.
    I have tested this on a mac/virtual machine with win xp and IE6, but also on a native win xp/also IE6.
    anyone else had this problem?
    I would include an exemple link, but unfortunately this also happens on the default demo link provided on this page by the author.

    thank you,
    silviu

  97. Troy Dean

    Great work. Any idea how to place the peel at the bottom left of a div and make it peel up and to the right? I cannot figure out the css for the life of me.

    Cheers.

  98. Behzad

    thNx :)
    i was looking for this

  99. Mel

    Where are the files? I cannot seem to make this work… I am confused what to name the psd files? Or, screen shots? PNG???
    HELP!

    Also, Why doesn’t the script have the proper tags around it??? confused…

  100. spirov92

    Thanks, very useful script! I am thinking of putting it into a plugin.

  101. ivan

    It’s so great. I want to use it. Thank you for the cool idea.

  102. marko272

    how come the background image is transparent????? its supposed to cover whats on the page and not let it show through????? i even tried it with a .jpg background image and its still transparent!!

  103. Ardhiansyam

    awesome…thank alot, it work at my blog

  104. Avery

    It is okay for my blog,thanks.

  105. yayo

    good job !!!

  106. Robert

    I really appreciate you posting your code for the pageflip feature. I cannot seem to get it working though. It’s showing up in the right place. As far as I can tell, all the code is correct, but it does not flip.

    The website is as http://www.cloverroad.ca and you can see it there. I’ll keep it up until you get back to me. I’m not sure if it’s the javascript or the CSS. You can see the css at this URL at the very bottom of the page…
    http://www.cloverroad.ca/wp-content/themes/CloverRoad-theme-3/style.css

  107. Leon Dudovich

    Is that possible to use this code when you create website on one of websiting builder like http://www.site2you.com/ ?

  108. mapb_1990

    did’t work on my site

    http://www.anime-land.org/index.php

  109. Robert

    mapb_1990 – your bug seems to be the same as mine.

  110. Luis

    Excellent! … thanks for share this

  111. lisa

    Great script! Got it to work correctly until I make my window smaller and then the page peel animates but below my navigation. I think it’s a z-index prob? Any ideas? I’d love to be able to implement this on the live site!! http://www.champsinternational.org/sponsors.html
    Thanks in advance for any help,
    -lisa

  112. Hjorth

    Ok so i got it to run and it looks great.
    But I am not very good with java and want it to work in two places at the same time.

    If I want to have 2 page peel effects on the side how would I write that?
    When I connect it to both they move ofc at the same time :D

    I know I can copy the text and rewrite it so it fits the new names, but I was hoping I could reuse the code that was allready there.

    Hope you understand what I mean :)

  113. güvercin

    it’s wonderfull example :|

  114. Swagat Sharma

    Hey SOh,
    I wantu apply it on my blogger template, I included the skin, but i have problem handling javascript, i saved it as .js and uploaded on mediafire.. can any1 explain how it works? i know t sounds so lame but..

  115. Adrian

    woow ..really good job.thanks

  116. Manmohan

    Good work

  117. hadi

    If anyone work and run this and run successfully then Give me. I cannt figure that out.

  118. Soh

    For those having trouble getting this to work on your site, please refer to the jquery tutorial page for instructions on getting jquery to work: http://docs.jquery.com/Tutorials:How_jQuery_Works most likely the jquery file/script is not being called properly~

    @Hjorth if you want to have two of them just make sure the elements you are targeting in your events have something like: $(this).find(“img”) instead of just $(“#pageflip img”)

    @lisa I was not able to make your page break where the peel goes underneath the nav?

  119. Hahnefeld

    I’m using jQuery for our website. I will use your libary to get more interaction in our page. With jQuery we also use idTabs. Great work!

  120. Anders

    This is absolutely stunning! ;) Thanks for this plugin, I simply love it! However, I have a little issue with it. On the site I’ve just integrated it on, I have sort of JavaScript showreel for some pictures running. When I hold the mouse over the peel effect, and it’s expands – the JavaScript showreel is alway on the top of the content behind the peel effect.

    Please check the website : http://www.nit-hockey.no.
    If your screen solution is so big that the peel effect doesn’t go over the “main” rotating image, please just make the browser window smaller, and you’ll see what I’m trying to explain here.

    Is there any way to fix this? It’s really bothering me :-)

    Thanks again for the plugin, and thanks for any help I can get !

  121. Andrew

    In reply to Anders. Looks nice I see the problem your having.
    With CSS you should control whats called the Z-index
    which places items on top or below other items
    the higher the number the higher the spot.
    here is tutorial on zindex
    http://www.w3schools.com/Css/pr_pos_z-index.asp

  122. Anders

    Oh yes! That was the thing. In the CSS provided from this tutorial it was only the page flip that had z-index on it – not the picutre under the page flip. Thank you so much, Andrew! :-)

    Maybe an idea to set zindex on the ad under the page flip for this tutorial, Soh?

  123. Soh

    Hey Anders, sorry for not getting to your question soon enough~

    @Andrew, thanks very much for helping Anders out :-)

    *The tut has now been updated~

  124. erhan

    Güzel Ama Ben Çözemedim…!!!!!!!!

  125. CSSJockey

    Amazing Stuff!! Keep it coming.

  126. Helen

    Would be easier to understand, if you just display the single images.

  127. Bill Gates

    Soh,

    Great fucking tutorial!!

    You have not only inspired many others but also express’d your tutorial with a pro-style attitude.

    Great job and keep up the good fucking work!!

  128. Xtence

    Great, great ! Good work man, and thanks for sharing, this is awesome !

  129. Bradford Sherrill

    Great post! You can also do this with a flash version, but why?

  130. dapas

    Perfect, without flash.. :-bd

  131. Andreas

    Searched for that – found it at smashignmagazing – great stuff!
    Andreas

  132. BN Wiersma

    Hi, great stuff. Just can’t get it to work.

    I downloaded jquery from the official website and uploaded it in the right folder (http://www.slimshirts.nl/jscripts/jquery/jquery.js). I created a new css file (“peeleffect.css”) and uploaded it. Finally I added the following in the of my page:

    $(“#pageflip”).hover(function() { //On hover…
    $(“#pageflip img, .msg_block”).stop()
    .animate({ //Animate and expand the image and the msg_block (Width + height)
    width: ’307px’,
    height: ’319px’
    }, 500);
    } , function() {
    $(“#pageflip img”).stop() //On hover out, go back to original size 50×52
    .animate({
    width: ’50px’,
    height: ’52px’
    }, 220);
    $(“.msg_block”).stop() //On hover out, go back to original size 50×50
    .animate({
    width: ’50px’,
    height: ’50px’
    }, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
    });

    WHY WON’T THIS WORK? Anyone?

  133. Soh

    @BN Wiersma and for anyone who is having issues with getting started,
    please refer to this tut http://docs.jquery.com/Tutorials:How_jQuery_Works

  134. BN Wiersma

    @Soh:
    Yeah, thanks for the fast response but I already read it…. ;((

  135. Soh

    @BN, did you read the part about:

    $(document).ready(function(){
    // Your code here
    });

    Because it seems you don’t have that on your site :-)

  136. BN Wiersma

    @Soh:
    Thanks again for the quick response AND more so for helping me out!

    It works after adding the document.ready. Thanks a lot man! Keep it up!
    :-)

  137. Ajiu

    can it be on the left top corner?

    if response pls email me.

  138. yossarian

    merci !! excellent..

  139. gchan

    Can I combine this page peel CSS & JQuery with CMS application?

    Thanks

  140. Moksha Solutions

    simply amazing………without flash its really cool

  141. Ambili Kutty

    Awesome! Does it work in Google Chromo and IE 6.0

    Regards
    Ambili

  142. Timo

    Greatjob, but where do iget subscribe.png from?

  143. Smashing Themes

    These web 2.0 Javascripts like jQuery and Prototype actually kicked the flash out. An awesome thing done with Javascript.

    Thanks for sharing the technique with world :)

  144. Andy

    Thanks for sharing, thats an awesome technique!

    Andy

  145. Keith Davis

    Great website and well explained tutorial.

    If I ever need a page peel effect… I know where to come.

  146. Sean

    If you use an image sprite of the page peel before and after, you could create a CSS class that would reveal the peel on hover, making this degrade gracefully (which I’m thinking about doing for a bug submitting report on a site I’m working on). Then, if javascript is enabled, it can change the class to something that will not trigger the css hover state.

  147. harish

    hey you really rocks me man!

  148. luis santillan salinas

    Great website and well explained tutorial.

    If I ever need a page peel effect… I know where to come.

  149. laurent

    Bonjour,
    Vraiment très beau. Mais je suis débutant et j’ai du mal à intégrer le script. J’ai juste 2 questions à vous poser :
    dans quelle partie de la page html faut-il placer le code html ?
    Comment présenter le script jquery (structure , mode d’execution) ?

    Merci d’avance pour votre aide !
    salutations à tous !

  150. sregoryor

    Is it possible to peel back and view a live website? Can a web address be used instead of the picture for the source?

  151. Christian

    @Soh,
    under which license do you set your example?
    is it ok if I use this image: page_flip.png

    greets
    Christian

  152. Milaw

    Some troubles on explorer 8…
    Very good job!

  153. Mithilesh

    Great job. its so simple to integrate i am impressed.

  154. amine

    absolutly amazing

  155. haberler

    i hate from flash . Thank you very much guys for css + jquery combination.

  156. ziko

    Thank you! Very good script!

    Viktor from Slovakia

  157. 4hmeT

    Awesom job man , Thnk u , from Türkiye

  158. Farid Hadi

    Wow, this is just wonderful. Thanks for sharing.

  159. Santanu

    Awesome man………..

  160. Ryan Schwartz

    Awesome job! This was really easy to implement and works cross-browser without a hitch. One thing, I had to change your css for the pageflip to position absolute to get it to position correctly in IE.

    #pageflip {
    margin: 0px;
    padding: 0px;
    z-index: 99;
    position: absolute;
    right: 0; top: 0;
    -ms-interpolation-mode: bicubic;
    }

  161. Alex

    Great job man!
    I have no knowledge in javascript and I had it to work perfect…

    BUT how on earth will this script work with lightbox on the same page ??? :(((

    Could someone give me an answer to that?:(

    Best regards!

  162. jplayer

    Great website and well explained, without flash its really cool !!!

  163. ahmed

    Thank you very much!
    j’ame je partage

    merci bc mon ami….. o_O

  164. melissa

    The script work amazingly fine but on IE i got a grey mask on the subscribe picture.

    Thanks so much for your code! Keep up the good work.

  165. Greg

    Can some one help me with instructions to use this on Ning?

  166. Bill

    Greg, I was able to get this to work on Ning. Check it out:
    http://www.pagepeeler.ning.com

  167. Luis

    Great job man.
    Please the code for ASP.NET.

  168. Godster

    Trying to implement this on my site, but having problems in IE7. Where the image overlaps one of my containers, it becomes transparent i.e. I can see the contents of the container through the peeled back image. Any suggestions?

  169. Austin

    How do I keep from covering up input fields with the page peel?
    <img src="http://i38.tinypic.com/10fyz51.jpg" border="0" />

  170. Austin

    http://i38.tinypic.com/10fyz51.jpg

    [IMG]http://i38.tinypic.com/10fyz51.jpg[/IMG]

  171. Soh

    Hey Austin, just make sure your z-index is set higher than anything on the page so it stays on the very top layer~

  172. Cory Mathews

    javascript 1 flash 0. Glad to see a non flash way of accomplishing this. Gotta love jQuery!

  173. ahmet

    wonderfull very helpful

  174. Ray

    Nice tutorial…I have put one in my blog…thanks

  175. منتديات ماي بكتشرز

    OooH Wow wonderfull very helpful

  176. techhsot

    this is very gud thx

  177. Scott

    I cannot seem to get it working. I currently have lightbox on the same page and there is a clash when I add:

    AND

    On the same page (neither will work).

    How can I get around this? Thank you :)

  178. sushil shirbhate

    Great effect without flash, really good job

  179. Uldis

    Great work. Thanks!

  180. Uldis

    But one problem..for me plugin dosnt work with IE 7.0.5730.11

  181. chandrashekharmurthy

    its realy nice,without flash it is working,whether it s working in all browsers?
    tnx

  182. wajira

    Great tip…
    I m not good in coding, how can I use this on blogger(blogspot).
    Thanks.

  183. Prateek Suhane

    amaaaaaazing idea….

  184. Cassandra Bryan

    Awesome! Thanks a bunch, I am using it for a promotion coming out soon.

  185. hosein

    thanks man

  186. ilknur

    thank you….very good..

  187. Hussain Cutpiecewala

    I will just say.. AWESOME, AMAZING, EXCELLENT, PERFACT

  188. achint

    Hi, Thanks for this script. I’m a FAN of JQuery. Your Blog is pretty. :)

  189. Burak GÜDER

    Wow wonderfull,, very helpful

  190. Anaa

    Great tutorial.thanks!

  191. Gianna

    I don’t comment much had to just say that I thought it was great that you were able to develop a “page peel” plugin using jQuery & CSS. Is there a way to code it to peel from the bottom? Never seen that. Was wondering why it has never been done.

    Thanks for the reading. Great insite! Will check back often to see any updates.

  192. London Website Designing

    Hi..
    Really I was thinking that its a flash work..and I never tried it. you did really well..Again Thanks..

  193. Matt

    Wow, perfect. Exactly what I was looking for.

  194. eSmoker

    Great work.

    Will try it on our site soon.

    Thanks.

  195. Stephen

    We will be using this effect on our website soon for free signup links, very very cool effect.

  196. shweta gusain

    hi i tried it but the mouse over effect is not working properly…can u help me out..

  197. nashekrashe

    thnks for sharing

  198. FALCONSEYE

    Great stuff! Thanks for sharing.

  199. Abhinav

    Thank you!

  200. Aion-Top

    Thank you, I will apply this website.

  201. Rave

    Thank you for a long time searching for something like this!

  202. Betty

    Thanks a lot! I really like the simplicity of it. And the design of the peel is also not too “slick”. Regards, Betty

  203. Tosh

    It looks like the wordpress plugin “Page Cornr” is basically this code. Works great, but now my Featured Content Gallery shows an empty frame. Any ideas why?

  204. P-L Gendreau

    Maybe because PageCornr is “Based on the work by Soh Tanaka: http://www.sohtanaka.com/web-design/simple-page-peel-effect-with-jquery-css/

    ;)

  205. Esmoker

    Awesome tutorial, I will use it on my website

  206. Ary Wibowo

    a great tutorial…. i like it very much. thanks

  207. Mehedi

    WOW!! Great Tutorial

    Thanks
    Mehedi Hasan
    Web Designer & Developer

  208. Jason

    thanks very nice!!

  209. hebba

    this sample is very well ineed change position to left direction plz help me

  210. hastalık belirtileri

    Thanks a lot! I really like the simplicity of it. And the design of the peel is also not too “slick”. Regards.

  211. KBDesign

    Wow, this is just wonderful, but can it be on the left top corner?
    Regards.

  212. steve

    great! just one thing… I have a flash movie on my site… so when peel go on, the peel show under!!! the flash movie, so bad why??? I need put other z-index or put something to the flash movie?

  213. steve

    I forget, this happend just on ie 6, 7 and 8

  214. Ghastley

    Anyone fancy checking the source at http://www.roberttoreki.com to see whats wrong with the setup for peeling. Probably i missed something obvious.

  215. Zeeshan Ali

    Is it possible to add HTML in Flex, I want to add some thing to my Flex Web Site, this is an animated web site developed in Adobe Flex Builder, Is there anyone who can help me for this problem.

  216. Adam

    You are one of kind soh. I am a fan of yours.

  217. Nitin

    Hiiii This is really nice effect to display briefing points to user. Nice Work really appreciable. One thing want to know in place of peel off effect can we have a page roll effect to some extent.

  218. BigD

    Had to make some adjustments to the Z-index since it was expanding below a drop down menu I had, and that fixed it. However, in IE8, it continues to drop down behind the menu, but yet works in Firefox.

  219. Okan Can BOLAYI

    Thanks for this artical. I Like it!

  220. skouta

    10X a lot, very helpful

  221. Vinod

    Hey Soh,

    Have been trying to use this. But am getting stuck. No matter what I try, my background image (subscribe.png in your case) just isn’t loading in any browser. Everything else is working… the peel is happening… even the link is working but the image is just not loading. Would you be able to help? Thanks.

  222. Vince357

    A-M-A-Z-I-N-G
    Awesome stuff, thx for sharing :D
    I was wondering… is it possible to have multiple links in it?
    Like an unordered list of links revealed by the “opened” peel?

  223. zedmelody

    thx, great – exactly what I need :)

  224. bora

    lovely thanks to share

  225. Hotbird Frekansları

    That’s pretty cool! I’m having one of those ‘why didn’t I think of that myself’ moments right now.

  226. EsmerÖzcan

    Great Tutorial, thank you :)

  227. Magazin

    Have been trying to use this. But am getting stuck. No matter what I try, my background image (subscribe.png in your case) just isn’t loading in any browser. Everything else is working… the peel is happening… even the link is working but the image is just not loading. Would you be able to help? Thanks.

  228. Philip

    Thanks for sharing this! Works perfectly w/ Safari/iPad!

  229. paylasim

    Thanks soh it worked !!

    Thanks so much l ami

  230. Cankız

    Excellent! … thanks for share this

  231. David

    Not working for me. Javascript conflict I reckon as I’m using a bunch on the page.

    Any ideas how to solve?

  232. Chintan Ganatra

    u rock SOh!!!!! u rock big time!!!!!!!! thanks a million for this code!!!

  233. Gsm

    Have been trying to use this. But am getting stuck. No matter what I try, my background image (subscribe.png in your case) just isn’t loading in any browser. Everything else is working… the peel is happening… even the link is working but the image is just not loading. Would you be able to help? Thanks.

  234. steve @ web design kent

    Had some issues with clashing stylesheets and Z index but these blog comments have been the perfect FAQ. Thanks again guys for sharing.

  235. ceasar

    For those who want an animation effect on ouse over here the solution

    jQuery.easing['easeOutBounce'] = function (x, t, b, c, d) {
    if ((t/=d) < (1/2.75)) {
    return c*(7.5625*t*t) + b;
    } else if (t < (2/2.75)) {
    return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
    } else if (t < (2.5/2.75)) {
    return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
    } else {
    return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
    }
    };
    $(document).ready(function(){

    //Page Flip on hover

    $("#pageflip").hover(function() {
    $("#pageflip img , .msg_block").stop()
    .animate({
    width: '307px',
    height: '319px'
    }, {duration: 1500, easing: 'easeOutBounce'});
    } , function() {
    $("#pageflip img").stop()
    .animate({
    width: '50px',
    height: '52px'
    }, 220);
    $(".msg_block").stop()
    .animate({
    width: '50px',
    height: '50px'
    }, 200);
    });
    });

  236. Düzce Bilisim

    This is a great article. Many Thanks

  237. elena

    Great Tutorial, thank you :)

  238. torsten

    Great Tutorial. Thank’s for that.

  239. Anything Graphic

    Awesome tutorial dude. Thanks! I had no idea this was so simple to impliment, and I’m a newbie to jQuery, so I’m still learning a lot. Genius!

  240. Joe

    It doesn’t work.
    Why didn’t you just zip the files that work (like your demo) then we wouldn’t have to waste our time copy ‘n’ pasting your code just to find it doesn’t work. Either you missed sthg in your explanation or the only people who can use this are people that understand all that code, in which case they’d probably make it themselves anyway.

  241. Soh

    Joe, this article is for you ;-) http://www.sohtanaka.com/web-design/learning-one-step-at-a-time/ – I’m assuming your not adding the jQuery code in the right place, or not calling it at all. I would read up on jquery at jQuery.com. Good luck my friend.

  242. oyun oyna

    Excellent! … thanks for share this

  243. Malowanie

    Wow, simple and the effect is owesome. Thanks for this tut.

  244. Su bayileri

    Thanks for sharing, thats an awesome technique!

  245. Dereck Bester

    Awesome tutorial Soh thanks.

    Will definitely make use of this.

    Great Blog keep it up!

  246. Chris

    Hi Soh. Thanks for the great post. Ive seen a few comments asking if it is possible to modify the script and place the peel effect in different corners (e.g. im particularly interested in using it in the bottom right corner of a page). Is this possible? Thanks!

  247. fallnirvana

    Thank you!this trick is wonderful~~

  248. jqueryAddict

    Awesome dude…………

  249. Tuna

    Thanks for this artical. I Like it.. :)

  250. Real Name

    Dear Brother, it is not as realistic like flash thing. Though a nice post. Cheers

  251. Craig Moss

    Dear Sir

    Just a quick thanks for the great site and all the cool information you offer…

    I have only been learning web design for 7 months now and really enjoy your site…layout, design and content is awesome….

    Keep up the excellent work and I will definately be checking in regularly…

    Again, thanks…

    MoOose

  252. Ramanan

    Concept is awesome… but I’m try in cakephp ,it has not working yet…

  253. 3d oyunlar

    thank you admin… great post

  254. Edmundo Junior

    There’s anyway to put this in the right bottom of the page?

  255. Edmundo Junior

    Oh, I forget, love this! :D

  256. Jonas

    Really good thing…

  257. Gofar

    hohoho.. like this..
    thanks

  258. xat sohbet

    thnx for post very nice informations.

Speak Your Mind...

Post HTMLNeed to Post HTML Code? Use Postable to post code friendly html. *Wrap all html code in <pre></pre> tags.
Post HTMLNeed to Keep Updated with Comments? Subscribe to comments now.

CSS Gallery