Simple Page Peel Effect with jQuery & CSS
Tags: Intermediate, Widgets
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.
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:

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~
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
Follow me on twitter for more updates and resources!
Did You Enjoy This Post?
Subscribe via RSS or by email to get all upcoming tutorials and articles delivered straight to you.





+ Add Comment260 Peeps Have Spoken Their Minds...
Absolutely Amazing! I thought that without flash it is impossible! But I was wrong :)
amazing work …
Great tutorial. Tnx. Can I translate it in italian language? M.
great effect without flash, really good job
beautiful, u rock SOHTANAKA
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. :)
Very Cool !! and Cross!! great effect!
gratters
bye!
Very cool idea. Tested working in IE 6-8 and Opera as well. Kudos!
kool stuff, keep up the gr8 work
–
http://www.aslammemon.com/blog.html
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!
That’s pretty cool! I’m having one of those ‘why didn’t I think of that myself’ moments right now.
Huge Thank you for making an outstanding non-Flash method!
Really cool effect that I’m already conjuring up uses for.
I love the simplicity of the method. Thanks for the excellent post!
Awesome stuff guy!
Great Tutorial!
Thx soh!
Very nice “non-flash” tutorial, than you
Nice tut. I was actually thinking about trying something like this the other day. Never realised how simple it could be. Thanks.
EXCELENT !! thanks
awesome tutorial.thanks..
Great work! I have no words! Thanks for it.
Really great. kudos
Excellente!!!
perfect, really perfect…
I Love it. Thanks for sharing it with us. YOU ROCK!
Lovely….Just lovely.
Thanks
MD
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
it’s a great effect
thanks
Fantastic! I’ll be using this for sure. Bookmarked on delicious….
Very elegant solution. Your site is very elegant also.
Thanks for sharing.
no follow=)
This is absolutely fabulous!!!!
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.
I like
That’s brilliant!
nice effect! thx
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)
Very nice Soh, Its a really cool effect and allows for functionality.
Awesome! A simple solution to a problem I thought could only be done in flash too.
very good, thank you
Exellent job, thanks
That was an awesome tutorial. Thanks for the inspiration and the idea.
Good tutorial
wonderfull, very good.
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;
}
});
});
sorry..webpage is http://www.falschparken.at/gasthof-steinerwirt
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!
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
Rocks!
thank you for sharing…
nice effect, i like it
Perfect, thanks for sharing :)
No words to describe. Wonderful.
Nice work. Thanks for sharing!
This is very nice, however, I don’t believe its key accessible. Someone using a screen reader would miss this totally.
Very Cool thanks for tut..
@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> :-)
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
Thanks a lot to share this tuto with us !
Hey Chris, can you describe your issue?
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
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/
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
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?
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.
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!
Gracias por compartir…excelente trabajooo!
Thanks for sharing this great work!
Nice job THanks..
Thanks soh it worked !!
Thanks so much l ami
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.
nice…..
Great idea! Simple code for a professional work.
Thank you
thanks for this great tutorial
How can I do this using Tables? Or It is neccesary with Position tags?
That´s because I prefer Table>Tr>Td method.
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.
Soh, this is very nice and slick jQuery script. Cool effect.
Congratulations! The most amazing CSS code I’ve ever come up to !!! Keep up this excellent work!! I give you 20 / 10
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
wow!!!non-flash,rather cool~thanks
I like jQuery,jQuery is amazed.
nice and simple,
I need to learn more about jQuery….
I was finding a tutorial to do this effect. This is the best because no Flash.
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!!!
oh my gosh! i never thought that before. Really! cool piece of work man.
Great thanks to sharing this tip.
Well -n- Done
Couldn’t aesthetically beat flash versions, but looks cool and very safe for people like me who doesn’t have a clue about flash.
Wow.. your work is really beautiful and your tutorials top notch. I am really glad I found this site. Thanks for your excellent work !!
I still don’t know how to make it work like your demo.why?
Now I know how to use it.it’s so nice.Thanks.
Damn,,,it’s totaly cool bro…
Cool!
nice and simple-
Thanks!
nice effect…fantastic technique
wer could i download it
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 ?
great! I’ll try it soon!
Thanks for this awesome tutorial just put it in place here:
http://www.pequeachurch.com
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
I visited your demo site. The peel didn’t come out. I am using Firefox 3.0.11
Is it my browser?
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
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.
thNx :)
i was looking for this
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…
Thanks, very useful script! I am thinking of putting it into a plugin.
It’s so great. I want to use it. Thank you for the cool idea.
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!!
awesome…thank alot, it work at my blog
It is okay for my blog,thanks.
good job !!!
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
Is that possible to use this code when you create website on one of websiting builder like http://www.site2you.com/ ?
did’t work on my site
http://www.anime-land.org/index.php
mapb_1990 – your bug seems to be the same as mine.
Excellent! … thanks for share this
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
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 :)
it’s wonderfull example :|
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..
woow ..really good job.thanks
Good work
If anyone work and run this and run successfully then Give me. I cannt figure that out.
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?
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!
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 !
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
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?
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~
Güzel Ama Ben Çözemedim…!!!!!!!!
Amazing Stuff!! Keep it coming.
Would be easier to understand, if you just display the single images.
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!!
Great, great ! Good work man, and thanks for sharing, this is awesome !
Great post! You can also do this with a flash version, but why?
Perfect, without flash.. :-bd
Searched for that – found it at smashignmagazing – great stuff!
Andreas
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?
@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
@Soh:
Yeah, thanks for the fast response but I already read it…. ;((
@BN, did you read the part about:
$(document).ready(function(){
// Your code here
});
Because it seems you don’t have that on your site :-)
@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!
:-)
can it be on the left top corner?
if response pls email me.
merci !! excellent..
Can I combine this page peel CSS & JQuery with CMS application?
Thanks
simply amazing………without flash its really cool
Awesome! Does it work in Google Chromo and IE 6.0
Regards
Ambili
Greatjob, but where do iget subscribe.png from?
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 :)
Thanks for sharing, thats an awesome technique!
Andy
Great website and well explained tutorial.
If I ever need a page peel effect… I know where to come.
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.
hey you really rocks me man!
Great website and well explained tutorial.
If I ever need a page peel effect… I know where to come.
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 !
Is it possible to peel back and view a live website? Can a web address be used instead of the picture for the source?
@Soh,
under which license do you set your example?
is it ok if I use this image: page_flip.png
greets
Christian
Some troubles on explorer 8…
Very good job!
Great job. its so simple to integrate i am impressed.
absolutly amazing
i hate from flash . Thank you very much guys for css + jquery combination.
Thank you! Very good script!
Viktor from Slovakia
Awesom job man , Thnk u , from Türkiye
Wow, this is just wonderful. Thanks for sharing.
Awesome man………..
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;
}
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!
Great website and well explained, without flash its really cool !!!
Thank you very much!
j’ame je partage
merci bc mon ami….. o_O
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.
Can some one help me with instructions to use this on Ning?
Greg, I was able to get this to work on Ning. Check it out:
http://www.pagepeeler.ning.com
Great job man.
Please the code for ASP.NET.
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?
How do I keep from covering up input fields with the page peel?
<img src="http://i38.tinypic.com/10fyz51.jpg" border="0" />
http://i38.tinypic.com/10fyz51.jpg
[IMG]http://i38.tinypic.com/10fyz51.jpg[/IMG]
Hey Austin, just make sure your z-index is set higher than anything on the page so it stays on the very top layer~
javascript 1 flash 0. Glad to see a non flash way of accomplishing this. Gotta love jQuery!
wonderfull very helpful
Nice tutorial…I have put one in my blog…thanks
OooH Wow wonderfull very helpful
this is very gud thx
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 :)
Great effect without flash, really good job
Great work. Thanks!
But one problem..for me plugin dosnt work with IE 7.0.5730.11
its realy nice,without flash it is working,whether it s working in all browsers?
tnx
Great tip…
I m not good in coding, how can I use this on blogger(blogspot).
Thanks.
amaaaaaazing idea….
Awesome! Thanks a bunch, I am using it for a promotion coming out soon.
thanks man
thank you….very good..
I will just say.. AWESOME, AMAZING, EXCELLENT, PERFACT
Hi, Thanks for this script. I’m a FAN of JQuery. Your Blog is pretty. :)
Wow wonderfull,, very helpful
Great tutorial.thanks!
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.
Hi..
Really I was thinking that its a flash work..and I never tried it. you did really well..Again Thanks..
Wow, perfect. Exactly what I was looking for.
Great work.
Will try it on our site soon.
Thanks.
We will be using this effect on our website soon for free signup links, very very cool effect.
hi i tried it but the mouse over effect is not working properly…can u help me out..
thnks for sharing
Great stuff! Thanks for sharing.
Thank you!
Thank you, I will apply this website.
Thank you for a long time searching for something like this!
Thanks a lot! I really like the simplicity of it. And the design of the peel is also not too “slick”. Regards, Betty
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?
Maybe because PageCornr is “Based on the work by Soh Tanaka: http://www.sohtanaka.com/web-design/simple-page-peel-effect-with-jquery-css/”
;)
Awesome tutorial, I will use it on my website
a great tutorial…. i like it very much. thanks
WOW!! Great Tutorial
Thanks
Mehedi Hasan
Web Designer & Developer
thanks very nice!!
this sample is very well ineed change position to left direction plz help me
Thanks a lot! I really like the simplicity of it. And the design of the peel is also not too “slick”. Regards.
Wow, this is just wonderful, but can it be on the left top corner?
Regards.
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?
I forget, this happend just on ie 6, 7 and 8
Anyone fancy checking the source at http://www.roberttoreki.com to see whats wrong with the setup for peeling. Probably i missed something obvious.
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.
lovin this!
You are one of kind soh. I am a fan of yours.
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.
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.
Thanks for this artical. I Like it!
10X a lot, very helpful
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.
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?
thx, great – exactly what I need :)
lovely thanks to share
That’s pretty cool! I’m having one of those ‘why didn’t I think of that myself’ moments right now.
Great Tutorial, thank you :)
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.
Thanks for sharing this! Works perfectly w/ Safari/iPad!
Thanks soh it worked !!
Thanks so much l ami
Excellent! … thanks for share this
Not working for me. Javascript conflict I reckon as I’m using a bunch on the page.
Any ideas how to solve?
u rock SOh!!!!! u rock big time!!!!!!!! thanks a million for this code!!!
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.
Had some issues with clashing stylesheets and Z index but these blog comments have been the perfect FAQ. Thanks again guys for sharing.
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);
});
});
This is a great article. Many Thanks
Great Tutorial, thank you :)
Great Tutorial. Thank’s for that.
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!
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.
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.
Excellent! … thanks for share this
Wow, simple and the effect is owesome. Thanks for this tut.
Thanks for sharing, thats an awesome technique!
Awesome tutorial Soh thanks.
Will definitely make use of this.
Great Blog keep it up!
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!
Thank you!this trick is wonderful~~
Awesome dude…………
Thanks for this artical. I Like it.. :)
Dear Brother, it is not as realistic like flash thing. Though a nice post. Cheers
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
Concept is awesome… but I’m try in cakephp ,it has not working yet…
thank you admin… great post
There’s anyway to put this in the right bottom of the page?
Oh, I forget, love this! :D
Really good thing…
hohoho.. like this..
thanks
thnx for post very nice informations.
Speak Your Mind...