├── .gitignore ├── assets └── js │ ├── script.min.js │ ├── script.min.js.map │ └── src │ └── script.js ├── README.md ├── functions.php └── style.css /.gitignore: -------------------------------------------------------------------------------- 1 | config.codekit 2 | -------------------------------------------------------------------------------- /assets/js/script.min.js: -------------------------------------------------------------------------------- 1 | !function($){function n(){$("a").each(function(){-1===this.href.indexOf("/wp-admin/")&&-1===this.href.indexOf("/wp-login.php")||$(this).addClass("wp-link")})}$(function(){n();var t={anchors:"a",blacklist:".wp-link",onStart:{duration:280,render:function(n){n.addClass("slide-out")}},onAfter:function(t){n();var o=$(window.location.hash);if(0!==o.length){var i=o.offset().top;$("body, html").animate({scrollTop:i-60},{duration:280})}t.removeClass("slide-out")}};$("#page").smoothState(t)})}(jQuery); 2 | //# sourceMappingURL=./script.min.js.map -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### Envato Tuts+ Tutorial: [How to Integrate SmoothState.js Into a WordPress Theme](http://webdesign.tutsplus.com/tutorials/how-to-integrate-smoothstatejs-into-a-wordpress-theme--cms-26610) 4 | #### Instructor: Thoriq Firdaus 5 | 6 | In our previous tutorial, we used the History Web API within a static site to serve smooth page transitions. In this tutorial we’re going to take things to the next level, by applying what we learned in a WordPress website. There’ll be one crucial difference; we’ll leverage SmoothState.js instead of building our own from scratch. 7 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 |