Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
kmytor

Page change transition

Recommended Posts

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 post
Share on other sites

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

  • Like 2
Link to post
Share on other sites
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 post
Share on other sites

Search for threads related to Barba.js and GSAP like this one:

 

  • Like 1
  • Thanks 1
Link to post
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.

×