replace jQuery animate with CSS transition