use css animations instead of jquery