adjusted css rule for an animation