begin adding css animation instead of jquery