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
https://forums.phpfreaks.com/topic/41340-solved-div-resize/
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
https://forums.phpfreaks.com/topic/41340-solved-div-resize/#findComment-200315
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.