EagerWolf Posted March 5, 2007 Share Posted March 5, 2007 I would like DIV layer to be resized until zero ... I wrote a script which opens div layer on mouseover image and shows bigger image and hide it on mouse out... I want to add animation (with setinterval) to resize div layer until set to proper width and height... It would give me a nice effect.. Any ideas how should I do this? Quote Link to comment Share on other sites More sharing options...
nogray Posted March 5, 2007 Share Posted March 5, 2007 You can use the NoGray JS Library, it has an animation file that will do exactly what you want. I haven't wrote the docs for the animation library, but it's pretty easy to figure out if you know some javascript (you can ask any question if you have issues with it). Here is an example of how it works http://www.nogray.com/new_site/examples/animate_example.html You can download the script from http://www.nogray.com/new_site/download.php the function you'll probably us is animateSizeTo() Quote Link to comment Share on other sites More sharing options...
mainewoods Posted March 8, 2007 Share Posted March 8, 2007 Here's a tutorial recently posted to Digg that does exactly what you want, uses a very small amount of code, and is smooth in animation. http://firblitz.com/2007/3/6/re-how-to-create-digg-comment-style-sliding-divs-with-javascript-and-css Quote Link to comment Share on other sites More sharing options...
EagerWolf Posted March 12, 2007 Author Share Posted March 12, 2007 Thanks man ... This was what I've been looking for! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.