added option to use jQuery instead of CSS3