Okay
  Public Ticket #225119
Smooth scroll to anchor
Closed

Comments

  • Joseph started the conversation

    When using an html id tag and anchor, I'd like the screen to scroll to the anchor position as Salient does when using the Down Arrow on the Nectar Slider, in a smooth animated fashion, instead of an abrupt jump to the anchor.  Is there a code I can use to achieve this?  Thanks!

  •  8,849
    Tahir replied

    Hey Joseph!

    Please see this ticket and the last comment :http://themenectar.ticksy.com/ticket/183626 . 

    All the Best,

    -T


    ThemeNectar Support Team 

  • Joseph replied

    That worked, thanks!!!!

  • Web Tranquility replied

    Hello Tahir, copying and pasting the ticket link you sent keeps going back to the homepage, could you post the answer here please?

    The issue with my website is that, it was jumpy just as Joseph pointed out, but i added the following CSS into the custom code section: html{scroll-behavior:smooth !important}

    and it has worked well since then except for one thing: When i click on a n anchor tag that is suppose to move to another section of the same page, the smooth scroll goes slow at first and then fast but i want the reverse - fast then slow, i have tried all the Javascript i could but nothing seem to work, please could you help.

    Again, the anchor tag does not go precisely to the section where i want it to go, it sort of goes a bit higher, i guess it is because of the sticky header, i have found a way around this but not quite what i want. If you could help with this too, i will sincerely not mind.

    Thank in advance

  •  8,849
    Tahir replied

    Hey Web Tranquility,
    Please make sure you follow the steps mentioned in here : https://themenectar.ticksy.com/article/6266/ the Video is to just to provide more context.
    Best.


    ThemeNectar Support Team 

  • Web Tranquility replied

    Thanks. I will try and let you know if it works!

  • Web Tranquility replied

    Hello again Tahir, I have tried this but still did not work. What I am trying to achieve is to make the "Slow then Fast scroll" be reverse: When the button is clicked, it should scroll fast and then begin to slow down as it gets to the section it is going to (Basically the opposite of what it is doing now.)
    This is the link to the website: https://pparable.com/


    If you click on the button that says "YES, I WANT MY FREE COLORING BOOK", the button is suppose to lead to a contact form, it moves slow then fast but i want the opposite; fast then slow..
    Thanks again!

  •  8,849
    Tahir replied

    @Web Tranquility,

    Unfortunately, there are no such Theme Option Controls available to adjust it at the moment. Also, you have several Third Party Plugins that could alter this default smooth scroll behavior. Try testing for a plugin conflict.

    Thanks 


    ThemeNectar Support Team