Various fixes and CSS3 smooth animation support