3 ms·
If you were wondering, this is one of the techniques involved in making the awesome zoom at DISQUS.com (disclaimer: I didn't make it, just investigated it throu
by EGreg 15y ago
If you were wondering, this is one of the techniques involved in making the awesome zoom at DISQUS.com (disclaimer: I didn't make it, just investigated it through Chrome Developer Tools :)
Can anyone reply here and elaborate on how exactly that "zoom" effect was made, because it's awesome, and DISQUS is the only place I've seen it. I have made a similar effect at http://myownstream.com http://myownstream.com and http://www.fotomozo.com/gallery?name=out4c2df5372f234.png http://www.fotomozo.com/gallery?name=out4c2df5372f234.png but without the round lens.
- damncabbage 15y agoBy "zoom", I'm assuming you mean the zoomed-in-on-hover effect on the illustration on http://disqus.com http://disqus.com. (I was a little confused as to what you meant until I went looking.) To answer the question: it's done by having a 120px square div that: * Has the full "zoomed" image as the background: http://mediacdn.disqus.com/1318540955/img/marketing/homepage/illustration.jpg http://mediacdn.disqus.com/1318540955/img/marketing/homepage... * Has a thick white border, 120px border-radius and a box-shadow applied. * Is absolutely positioned, with its top and left being controlled by javascript.
- EGreg 15y agoThanks! I assume that the border-radius is what causes the image to appear round like that. Do you think it works in all the major browsers which support rounded corners? FF, IE8+, and WebKit? Also I think there is one more factor * The background position is probably being controlled by javascript as well
- damncabbage 15y agoOh! Sorry, forgot that one. border-radius will work on Firefox and Webkit (but you'd best include the -moz and -webkit versions as well, for older versions that don't pay attention to the plain attribute). It's a bit tougher with IE. IE7 and IE8 don't support border-radius, but support can be faked with something like http://css3pie.com/ http://css3pie.com/ or http://fetchak.com/ie-css3/ http://fetchak.com/ie-css3/
- EGreg 15y agoThat's awesome! I wasn't aware of these IE behaviors. Thanks once again for the info. Now the effects can work everywhere!
- amccloud 15y agoI'm pretty sure @ckj did that. I've sent him a link to your question. He also used the same technique for our 404 page on Pixelcloud. http://pixelcloud.com/404/ http://pixelcloud.com/404/
- EGreg 15y agoOh man, that guy is good. Chris Jennings. I wonder if he would do consulting work for another company? How did he work for pixelcloud and disqus? I would really like to reach out to him about possibly designing stuff for Qbix.com if he's interested.