Page Transitions in WordPress with SmoothState

SmoothState.js is a javascript library that adds transitions between pages on your site using AJAX. I use it on this site to help create a more seamless experience when going through pages. Aside from transitions, it can also be used to

Adding a class to an item in an array in Javascript

Recently I was asked to help finish up a website that had a list of events on it. Using Ajax, you could explore events from months past, and if the event required a ticket, there was a button right there