Fix animations

- Slightly longer delay between inserting element and triggering animation (from 1 to 10ms).
- Moved translate styles from classes to css. Not sure if it made any difference in performance, although someone on the web suggested it. No more silly classes, though.