OutSystems wrapper for smoothState.js: https://github.com/mdlar/smoothState.js
Benefits of going StateLess
Getting Started
Sample OptionsJSON
Copy/Paste this starter snippet into the OptionsJSON parameter in OS Studio:
"{ prefetch: true, pageCacheSize: 5, onStart: { duration: 400, render: function($container) { $container.find('.main-content').addClass('fade-in-top'); smoothState.restartCSSAnimations(); } }, onReady: { duration: 0, render: function($container, $newContent) { $container.find('.main-content').removeClass('fade-in-top'); $container.html($newContent); } } }"
Notes
This component currently only comes with one animation CSS class for testing purposes:
'fade-in-top'
You'll notice that this class is used in the above OptionsJSON snippet. We recommend that you create your own unique CSS Animations through a tool like this: http://animista.net/
Unobtrusive init tag