Barba: Animations not working when navigating back to previous page

Created on 17 May 2018  路  3Comments  路  Source: barbajs/barba

Honestly, this plugin is more trouble than its worth!!!

I've got the basic set-up fadeIn & fadeOut between pages.

When I navigate back to the previous page the animations using anime.js won't reanimate back in only if I refresh the page.

Most helpful comment

Hi, @apsolut thanks for your reply.

Wasn't using $(document).ready function

I've tried you're solution above with no enjoy, it's ignoring the fadeIn - fadeout behavior.

Anyway, I'm done (trash can) with this plugin, for one of the most utter frustrating plugins.

The only way to use Barba.js is by NOT using it!

You could try actually learning some javascript instead of cyring.

All 3 comments

maybe you are using just $(document).ready...

http://barbajs.org/events.html
mentioned also here: https://github.com/luruke/barba.js/issues/135

did you try to use: Barba.Dispatcher.on('newPageReady', function() { //your scripts here ... });

Hi, @apsolut thanks for your reply.

Wasn't using $(document).ready function

I've tried you're solution above with no enjoy, it's ignoring the fadeIn - fadeout behavior.

Anyway, I'm done (trash can) with this plugin, for one of the most utter frustrating plugins.

The only way to use Barba.js is by NOT using it!

Hi, @apsolut thanks for your reply.

Wasn't using $(document).ready function

I've tried you're solution above with no enjoy, it's ignoring the fadeIn - fadeout behavior.

Anyway, I'm done (trash can) with this plugin, for one of the most utter frustrating plugins.

The only way to use Barba.js is by NOT using it!

You could try actually learning some javascript instead of cyring.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hosxes picture hosxes  路  3Comments

bobbyballard picture bobbyballard  路  3Comments

shanewmurphy picture shanewmurphy  路  3Comments

pierredarrieutort picture pierredarrieutort  路  3Comments

gitgudcameron picture gitgudcameron  路  3Comments