Anybody here uses YUI Pjax? It's available from NuGet.
I got the loading of content working, but trying to find a way to create a fade CSS transition to show the newly loaded content.
Docs said
Enabling transitions for an app just requires opting-in. The following will create a new Y.App instance with the default transitions enabled:
var app = new Y.App({transitions: true});
I've added that inside a <script></script> tag but not working. Where/how do I add it? This is my current script.
<script src="http://yui.yahooapis.com/3.17.2/build/yui/yui-min.js"></script>
<script>
YUI().use('pjax', function (Y) {
new Y.Pjax({
container: '#content', // replace this container with new content
contentSelector: '.episode-content', // only grab new content from this section
linkSelector: ...
Go to the complete details ...