Barba: Sync mode doesnt work with @barba/css

Created on 24 Jun 2020  路  5Comments  路  Source: barbajs/barba

I鈥檓 i right that the sync mode doesn鈥檛 work with barba/css ? When so it would be a useful feature.

@barbcss await test repository

Most helpful comment

Here you go @xavierfoucrier !
I tested it on a live server, and setting sync to true or false affects each transition as expected.
barba-css-test.zip

All 5 comments

Hi @danielschmid,

You supposed well, this feature is not part of @barba/css, just because it's impossible to make leave and enter transitions to be concurrent with only CSS...

EDIT: @danielschmid yes you can, I made a typo/mistake in my local code, that's why I answer that... check the code of @Jac733 below and enjoy!

I just tried it today and it works like a charm! Could you show some code to see how you are attempting to do it?

Hi @Jac733,

Can you provide a reproductible test repository to let me know how you make it works?
Thanks a lot.

Here you go @xavierfoucrier !
I tested it on a live server, and setting sync to true or false affects each transition as expected.
barba-css-test.zip

@Jac733 good job!

After checking the code of my local @barba/css test, I notice that I place the sync: true in the Barba root object instead of the Transition itself... that's why I haven't succeed to properly make it work! #fail :smile:

Thanks for your packed code, it will help other people dive into @barba/css transitions.

I am closing the issue.
Have a nice day :wink:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ershad989 picture ershad989  路  4Comments

Mellis84 picture Mellis84  路  3Comments

S1SYPHOS picture S1SYPHOS  路  3Comments

bobbyballard picture bobbyballard  路  3Comments

lasagner picture lasagner  路  3Comments