changed animations to js, made card stay the same size