[Support request] How to create sticky Ad hook

Home Forums Support [Support request] How to create sticky Ad hook

Home Forums Support How to create sticky Ad hook

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1153539
    Ahmed

    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.

    #1153977
    David
    Staff
    Customer Support

    Hi there,

    do you have an example of what you’re trying to achieve?

    #1154236
    Ahmed

    Hi David,

    I need to have a sticky timed banner just like this. Try to scroll down and wait for 2 sec.

    https://time.com/

    Pls help!

    #1154242
    David
    Staff
    Customer Support

    Do you mean the Subscribe Today pop out that appears at the bottom of the site ?

    #1154279
    Ahmed

    No, I’m talking about the banner (970*250) shows under the logo.

    #1154694
    Tom
    Lead Developer
    Lead Developer

    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/.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.