+ 1
Transition
When you click on an option of the navbar, how can I put a transition when the webpage is redirected to that section?
4 Antworten
+ 4
Shudarshan Rai 👑 That will redirect after 1.5 seconds. 15000 is 15 seconds.
+ 2
//setTimeout will will redirect you to sololearn afetr 5seconds
<button onClick="openSite()">Go to link</button>
<script>
function openSite(){
setTimeout(function (){window.location.href="https://www.sololearn.com";},5000);
}
</script>
+ 2
Rowsej my fault 😅😅
+ 1
Thank you Shudarshan and Rowsej!!