Download OFFICIAL THEME USER GUIDE Interactive Parallax Theme
Transcript
Main Files: Files you should know about javascripts/skrollr.min.js - The skrollr core file. That's all you need for modern desktop browsers. javascripts /skrollr.ie.min.js - For IE < 9, include it after the core using conditional comments. The plugin makes IE understand opacity, rgb() and hsl() (the ones with alpha are mapped to them) and it creates a very simple document.querySelector polyfill which only supports ID selectores (using getElementById). Needed if you want to use data-anchor-target. javascripts /skrollr.mobile.min.js - Includes iScroll and a bridge script which initializes iScroll and makes it work with skrollr. Include it after the core when you need mobile support. How to find the Scrolling Index and setup Skrollr Parallax Animations? skrollr allows you to animate any CSS property of any element depending on the horizontal scrollbar position. The horizontal scroll bar position (we say, Scroll Index value) of any element can be easily found with the help of a jQuery plugin, we have included this as “helper plugin Please see the following: When you scroll the site, you will get scroll position of the scroll bar on any element and you have to copy this value. Now all you need to do is define key frames for each element at certain points in top scroll offset by supplying this Scroll Index value as well as the animation CSS rule as explained in the Operation Examples given in the next section. Note: We have disabled this Helper Plugin on live preview of our theme, but we have enabled it on downloadable theme pack. Once you have done all editing of your site, you can disable it by removing / commenting the following element: AMAZE v2.1 – Premium Theme from Designova