replace jquery to css animation