alx23 Posted February 29 Share Posted February 29 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 More sharing options...
Solution Rodrigo Posted February 29 Solution Share Posted February 29 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! 2 Link to comment Share on other sites More sharing options...
alx23 Posted February 29 Author Share Posted February 29 Hi @Rodrigo thanks for the quick reply. I had already thought so. Thanks for the clarification. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now