Hello folks !
I have 2 questions:
1. how can I identify an element gotten from an event, (aka function(event){$(this)}) ?
It has no selector property so I cannot identify the element, (I'm using event delegation, with 2 kinds of css classes f.e. "
a.something, a.somethingelse", behavior changes according to classes)
2. Animating overflow:hidden; elements(like div and p) which has a certain width, and height:
Currently I've established a function that calculates the size of the text(chars) and according to the font size,
I animated the height (isn't too efficient, and produces me duplicate code)
I know there must be a way to animate overflowed hidden elements to the right size,
(Has to be, I just couldnt find it, even though I looked).
One thing I do know, the answer lays within the scrollHeight param, which isn't initiated by default..
Any help would be very much appriciated,
Any direction would be very helpful to me !!
Thanks !