Better events, classes for CSS animation