Jump to content
LostKobrakai

Barba.js

Recommended Posts

I just wanted to share this library here: http://barbajs.org/

It's a pjax implementations specifically for handling page transitions without full page-reload as simple as possible. It's super lightweight and can literally be installed by pulling the library in, adding two classes to your pages and a single line to initialize the whole thing. I've just added this to my personal site (https://kobrakai.de/) and beyond some js refactorings – mostly so that animations are not only triggered on page loads – it was a very smooth experience to add. Also I've probably only scratched the surface on this simple site. The docs look like this could handle even more complex setups if needed.

  • Like 17

Share this post


Link to post
Share on other sites

Thank you Benjamin. It seems I often pick up very useful information from your posts. I wanted to say thank you also for this link you posted recently.  http://adamwathan.me/refactoring-to-collections/ It's prompted me to put some time aside to do some self-study on functional programming done with PHP

Here's just a few additional links I found should anyone else be interested - There seems to be a good amount of information out there on the subject.

https://blog.liip.ch/archive/tag/functional-programming

https://www.sitepoint.com/functional-programming-and-php/

Thanks again.

  • Like 7

Share this post


Link to post
Share on other sites

Just gave barba.js a try and it's great, thanks for mentioning. I had to remove a similar but more clunkier solution of mine, but this is much better. There are some js events I have to modify in order to make them work but it's a no-biggie.

  • Like 1

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...