Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I like Metropolis very much. Nice theme ...
I want to hide the mission statement after two slides using following code in jquery.cycle.all.min.js
jQuery(document).ready(function($) {
$('.slideshow').cycle({
fx: 'uncover' , timeout: 16000, delay: -15000, speedOut: 2500, after: onAfter });
});
function onAfter(curr, next, opts) {
var index = opts.currSlide;
$('.mission')[index > 2 ? 'hide' : 'show']();
}
As soon as I add the parameter "after: onAfter" the slideshow won't start anymore.
Any idea?
Thank.
Michael
Comments
Comment #1
lavisrap CreditAttribution: lavisrap commentedI found the problem. It was not in the cycle plugin. It works fine with following code in jquery.cycle.all.min.js
Comment #2
lavisrap CreditAttribution: lavisrap commented