themes-wordpress/shoreditch/js/featured-content.js
2018-02-27 14:15:38 +11:00

27 lines
511 B
JavaScript

( function( $ ) {
var featuredContent
function initSlider() {
featuredContent
.flexslider( {
selector: '.featured-content-wrapper > .featured-post',
animation: 'slide',
smoothHeight: true,
slideshow: false,
animationSpeed: 500,
directionNav: false,
useCSS: false
} )
.animate( {
'opacity': 1
}, 500 );
}
$( document ).ready( function() {
featuredContent = $( '.featured-content' );
$( window ).on( 'load.shoreditch', initSlider );
} );
} )( jQuery );