Jump to content

[SOLVED] Div resize


EagerWolf

Recommended Posts

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?

 

 

Link to comment
Share on other sites

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()

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.