Jump to content
Search Community

Horizontal Scroll + Internal Browser Search

alx23 test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Hello GSAP community,

 

First of all, thank you for your great plugins!

 

I just have a small question. Is it possible to jump to sections on horizontal websites using the ctrl/cmd + f keys when searching for text? At the moment it finds the words, but the native behavior doesn't work and the page always stays at the same point.

Link to comment
Share on other sites

  • Solution

Hi @alx23 and welcome to the GSAP Forums!

 

As far as I can tell, no is not possible. The browser will simply take you to to the scroll position where that word/text is but it won't move the content horizontally to get there. This is neither a shortcoming of GSAP nor the browser, keep in mind that with GSAP we're creating horizontal movement through vertical scroll or other events so is not the native way browsers work so the native find/search will not account for that.

 

Maybe this could be done but it would require a bit of custom logic and I'm not 100% sure that it can be done.

 

Finally thanks for the kind words 💚

 

Happy Tweening!

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...