Fix css animation