Added rotating/scaling animation. Supports dynamic card margin positioning and container sizing.