Jump to content
Search Community

Barba bug

Niiitraam test
Moderator Tag

Recommended Posts

We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting, logic troubleshooting, or "how do I recreate this cool effect I saw on another site?" tutorials. Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations.  

 

You can post in the "Jobs & Freelance" forum for paid consulting, or contact us directly. 

 

Otherwise, if you've got a GSAP-specific question just post that here along with a minimal demo and we'd be happy to take a look. 

Link to comment
Share on other sites

32 minutes ago, Niiitraam said:

When i change the page, my Javascript block on this page.

 

A minimal demo will definitely help if you have a question specific to GSAP.

 

To me that sounds like a common issue people have when working with barba.js though - there are several issues in the same vein over on their GitHub, like this one.

 

https://github.com/barbajs/barba/issues/659

 

The gist of things being what is also described on their section on 3rd party scripts - which technically does not only apply to 3rd party scripts (and not only to inline scripts) - you will have to call things in the barba-specific hooks if you want/need them to work after a transition.

 

Quote

Using Barba means that your site is going to behave like a SPA (Single Page Application), so all your inline scripts will be executed once, and they won’t be executed after a page change done through Barba.

 

For questions specific to barba there also is a link where you find other useful links, among them an invite to their Slack-Workspace at the very bottom

 

https://barba.js.org/docs/getstarted/useful-links/#Developer

 

  • 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...