Created
January 31, 2013 16:39
-
-
Save reatcory/4684197 to your computer and use it in GitHub Desktop.
Rough js implementation for slider image and text boxes to be different
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('view-homepage-slider').cycle({ | |
fx: 'fade', | |
speed: 'slow', | |
timeout: 0, | |
before: onBefore, | |
after: onAfter, | |
}); | |
function onBefore(curr, next, opts){ | |
// Code to do stuff before the slide changes | |
$('.views-field-title').slideUp(); | |
} | |
function onAfter(curr, next, opts){ | |
// Code to do stuff after the slide changes | |
$('.views-field-title').slideDown(); | |
} | |
function onBefore(curr, next, opts){ | |
// Code to do stuff before the slide changes | |
$('.views-field-field-homepage-slider-text').slideUp(); | |
} | |
function onAfter(curr, next, opts){ | |
// Code to do stuff after the slide changes | |
$('.views-field-field-homepage-slider-text').slideDown(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment