当欢迎动画完成时,我想重定向到另一个索引
我想这就是答案
if .ml11 opacity == 0
redirect new page
但我做不到,因为我不知道请帮助我的新
这是我的全部代码:https://jsfiddle.net/veuxx/ekvjhf7x/
您可以使用此
setTimeout(10000); //10 seconds in milliseconds here you add time
window.location.replace("./file-what-do-you-need-redirect.html");
也许你可以用这个
function stateChange(newState) {
setTimeout(function () {
if (newState == -1) {
alert('VIDEO HAS STOPPED');
}
}, 5000);
}
const animated = document.querySelector('.animated');
animated.addEventListener('animationend', () => {
window.location.replace(url);
});