Archived topic
How to create sticky Ad hook
5 replies · Started by Ahmed on February 3, 2020
Hello,
I'd like to create a sticky hook.
Also, this hook should be sticky only for 3 seconds.
How can i do that?
Thanks.
Hi there,
do you have an example of what you're trying to achieve?
Hi David,
I need to have a sticky timed banner just like this. Try to scroll down and wait for 2 sec.
Pls help!
Do you mean the Subscribe Today pop out that appears at the bottom of the site ?
No, I'm talking about the banner (970*250) shows under the logo.
Hi there,
You can make an element sticky by doing this:
<div class="my-sticky-element">
Your content
</div>
With this CSS:
.my-sticky-element {
position: sticky;
top: 0;
}
To make it timed, you will likely need some custom javascript, I'm afraid. You may be able to get help with this on https://stackoverflow.com/.