kmytor Posted May 18, 2020 Share Posted May 18, 2020 Hello, I would like to make a page change, a transition from one section to another: Example: xxxx.com/about at xxx.com/contac is there any way to GSAP it? Gracias Link to comment Share on other sites More sharing options...
Shaun Gorneau Posted May 18, 2020 Share Posted May 18, 2020 Yes, as far as all the transitions go. The new page content is an AJAX call. From a workflow standpoint you would On click (of something leading to a new URL ... make sure your handler does event.preventDefault() ) 1. Tween out anything you want that's on the page currently 2. Make your AJAX call for the new content 3. Modify the current URL 4. Tween in anything you want tweened in 2 Link to comment Share on other sites More sharing options...
kmytor Posted May 18, 2020 Author Share Posted May 18, 2020 23 minutes ago, Shaun Gorneau said: Yes, as far as all the transitions go. The new page content is an AJAX call. From a workflow standpoint you would On click (of something leading to a new URL ... make sure your handler does event.preventDefault() ) 1. Tween out anything you want that's on the page currently 2. Make your AJAX call for the new content 3. Modify the current URL 4. Tween in anything you want tweened in all i find with ajax is with Jquery i would like to do it without jquery do you have any guide? to implement it with gsap Link to comment Share on other sites More sharing options...
ZachSaucier Posted May 18, 2020 Share Posted May 18, 2020 Search for threads related to Barba.js and GSAP like this one: 1 1 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