Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //nivo-slider
- jQuery(window).load(function() {
- if (document.documentElement.clientWidth > 768) {
- jQuery('#slider').nivoSlider({
- effect: 'random',
- slices: 1,
- boxCols: 8,
- boxRows: 4,
- animSpeed: 500,
- pauseTime: 3000,
- startSlide: 0,
- directionNav: true,
- directionNavHide: true,
- controlNav: true,
- controlNavThumbs: false,
- controlNavThumbsFromRel: false,
- controlNavThumbsSearch: '.jpg',
- controlNavThumbsReplace: '_thumb.jpg',
- keyboardNav: true,
- pauseOnHover: true,
- manualAdvance: false,
- captionOpacity: 0.8,
- prevText: 'Prev',
- nextText: 'Next',
- randomStart: false,
- beforeChange: function(){},
- afterChange: function(){},
- slideshowEnd: function(){},
- lastSlide: function(){},
- afterLoad: function(){
- var $slider = jQuery('#slider');
- $slider.css('opacity',0);
- jQuery('#preloader').fadeOut(500, function(){
- $slider.animate({'opacity':1}, 500);
- });
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement