forgot the $in the snippet

and fixed the animate