As a newcomer to JS, I am currently working on creating a website with an introduction animation. My goal is to have this animation displayed on a separate page and once it reaches the end, automatically redirect to the next webpage.
<body onload="setTimeout(
function(){
window.location.href = 'file:///C:/Users/skatto/Desktop/art%20contest/art_contest_page.html';
}, 32000 )">
The script above is what I'm using in my HTML file for the automatic page transition, but it feels somewhat abrupt. How can I incorporate a fade animation to make the transition smoother?