Soldato
- Joined
- 12 Feb 2006
- Posts
- 17,627
- Location
- Surrey
ok this is very first time i am using mootools and i'm very lost with it so far so needing a quick bit of help.
i am playing around with the demos, this one at the bottom of the page, the morph to .myClass. I'm trying to alter it to work in different ways and so far i can get it to do simple things different.
now the problem i have is getting to to work for many different examples but only one at a time if that makes sense, so say i have box_44, box_32, box_39 if i clicked box_39 it only worked on box_39, box_32 it only works on box_32 etc. i have tried passing a variable to the function by the standard CSSmorphEffect(3) but mootools doesn't work with the typical onClick, the id of the element is just called CSSmorphEffect so i have no way of passing the function a variable as far as i can see.
anyone know how i can pass a variable to the function?
i am playing around with the demos, this one at the bottom of the page, the morph to .myClass. I'm trying to alter it to work in different ways and so far i can get it to do simple things different.
now the problem i have is getting to to work for many different examples but only one at a time if that makes sense, so say i have box_44, box_32, box_39 if i clicked box_39 it only worked on box_39, box_32 it only works on box_32 etc. i have tried passing a variable to the function by the standard CSSmorphEffect(3) but mootools doesn't work with the typical onClick, the id of the element is just called CSSmorphEffect so i have no way of passing the function a variable as far as i can see.
anyone know how i can pass a variable to the function?
Last edited: