We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

(Smooth) Scroll to div ID in Parent

Home Forums Puzzles (Smooth) Scroll to div ID in Parent

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18240
    hoody
    Participant

    Hey Guys im new to Verge3d. right now im playing a bit with different puzzles.

    What i try to achieve is: clicking on an object in the scene should (smoothly) scroll down to a specific div in the parent document.

    right now i´ve got a puzzle that almost does the job, except of the (smooth) scrolling part – instead of scrolling it jumps right to the div (scroll effect is not visible). – I attached the puzzle , so that you can take a look.

    can someone point me in the right direction?

    thanks

    #18250

    Hi,

    here is an example how you can this:

    https://www.w3schools.com/howto/howto_css_smooth_scroll.asp

    see also:

    Smooth Scrolling

    Chief 3D Verger | LinkedIn | Twitter

    #18388
    hoody
    Participant

    I forgot to say that it worked! Thanks for helping me out! :good:

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