HTML Page Transitions / Animiations

While developing a hybrid mobile app with DevExtreme I was looking for other options for full page transitions. I first looked at jQuery Mobile but the routing engine in jQuery Mobile conflicted with the routing engine.
The example below uses Bootstrap for styling, Animate.css for full page transitions and smoothState.js. The demo navigates between Home and an About Page. These are two pages, not one page with two DIVs.
Run Live Demo  -  Source code for this example: download the source - (13.9KB).

jQuery Scroll To Position Demo

This scroll demo will scroll the page to a specific DIV on the page. This demo works by calling a function and that function then scrolls the page to the DIV passed. 
function scrollToSection(containerID)
   var target = $('#' + containerID);

   $('html, body').animate({
           scrollTop: target.offset().top
   }, 1000);

<button onclick="scrollToSection('section2');">Scroll to Section II</button>