I've created a container with overflow scroll for a list of elements, when click on an element, it would then triggers an event, I'm wondering how can I check if the element is fully visible, if it's not visible, make the outter div scroll until the element is fully visible than trigger event.
Is there a way of doing the scrolling with a combination of native css3 animation and some js?
Only needs to work for webkit browser, more specifically mobile safari.
Heres some sample code of my efforts so far:
http://jsfiddle.net/calebo/hywnc/