Perfected animations using transform and transition in the main page's CSS.