You can safely copy/paste this legacy code and use it as a starting point for playing with Barba.
In a web page called
index.html, put the following code:
In order to see the opacity transition properly run, you need to add another page next this one and link them together.
Be sure to read the markup section before diving into Barba.