Skip to content

Instantly share code, notes, and snippets.

@heddn
Last active December 17, 2015 01:19
Show Gist options
  • Select an option

  • Save heddn/5527875 to your computer and use it in GitHub Desktop.

Select an option

Save heddn/5527875 to your computer and use it in GitHub Desktop.
ManagementTeamSlideShow
Drupal.r2i_theme.ManagementTeamSlide = function (context, settings) {
$('div.view-management-team-flexslider div.views-row', context).each(function () {
$('div.flexslider', this).bind({
mouseenter: function() {
var slideshow = $(this);
clearTimeout(resetPlayer);
slideshow.flexslider('play');
resetPlayer(slideshow);
},
});
var resetPlayer = function(s) {
setTimeout(function(){
s.flexslider('pause');
s.flexslider(0);
}, 1750);
};
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment