barbajs / barba

Create badass, fluid and smooth transitions between your website’s pages
https://barba.js.org/
MIT License
11.63k stars 474 forks source link

Barba! Choose what to reload? #259

Closed pevdp closed 6 years ago

pevdp commented 6 years ago

Hello !

I've an issue with using Barba.

Here is the website : http://www.pierreemmanuelvandeputte.com/index.php

My menu is buging, when I switch pages, the name of the current page should be underline, but it's not when I switch page, you have to refresh the page to get the effect... I dunno why barba interract here... Does anyone can help me to figure this out? Thanks!

Pierre

thisbailiwick commented 6 years ago

Barba is replacing the content within the div #contact.barba-container. Your header is not within that container so it's not being updated. Your options are to use js to manually add/remove the class .active on your menu item links or to replace the full header by changing where your barba classes are within the dom.

prilcool commented 5 years ago

why are all this unresolved issues being closed ? there is no solution provided just hints , I checked the guys website seems he still could not understand your solution so he did not implement barba js and commented it out , If you are a coder or develop you should take pride and provide proper solutions to tickers that actually help someone resolve there issues prior to closing the ticket. Just saying according to ITIL standards for ticket closure this is below standard . facts.

pevdp commented 5 years ago

True... Thanks for your truly comment. All the best, Pierre

idrisdopico commented 4 years ago

The answer: Move your header to where it's inside of the Barba container