Lawrence William Trigg Lawrence William Trigg - 5 months ago 7
HTML Question

Delaying Hyperlinks

Is it possible to delay a hyperlink by 3 seconds as CSS has the delay animation, I have some icons with animation on them, for a mobile user they cant hover over the icons, but they would be able to see the icon animation if i had a delay on the hyperlinks?
Is this possible?
Thanks All!

Answer

Related post: I want to delay a link for a period of 500 with javascript

In summary:

HTML:

<a href="javascript:delay('URL', 3000)"></a>

Javascript:

function delay (URL, ms) {
    setTimeout( function() { window.location = URL }, ms);
}
Comments