PDA

View Full Version : animating also the width of the div



mayerlink
11-04-2011, 10:05 AM
1) Script Title: Animated Collapsible DIV v2.4
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
3) Describe problem: is it possible to integrate this excellent script with the possibility of managing and animating also the width of divs together with their height? I get it by adding a specific function, but without animation and it's not good-looking. I took a look to the script, but it's better for me not to touch it.
thanks a lot
mayerlink

ddadmin
11-04-2011, 03:58 PM
Animating the width at the same time as the height is easy to do, though personally I don't think it enhances the transition effect. Try the below modified .js file for this.

mayerlink
11-04-2011, 04:18 PM
thank you, admin!
I'll try it and let you know.
all the best
mayerlink

mayerlink
11-05-2011, 12:27 PM
hallo
this was missing:

this.$divref.css(ac.generatemap(['width', this.getAttr('width')], ['display', cssdisplay]))
I'm testing the script with width parameter and it seems to do the job I want, exept an "odd to me" behaviour: I'll post again.
have a nice day
mayerlink