的「標題」動畫的方式,我發現這個偉大的jQuery的幻燈片: http://slidesjs.com/examples/images-with-captions/更改此jQuery的圖像幻燈片
不過,我想它所以「標題」區域不會消失,並顯示各自圖片。如果只是根據新圖像更改文字,我更喜歡。
這是可能的,如果是這樣,我該如何做到這一點?
以供參考,在這裏是文件:slides.min.jquery.js(http://slidesjs.com/examples/images-with-captions/js/slides.min.jquery.js)
,這裏是正在使用的JavaScript代碼的一個片段:
animationStart: function(current){
$('.caption').animate({
bottom:-35
},100);
if (window.console && console.log) {
// example return of current slide number
console.log('animationStart on slide: ', current);
};
},
animationComplete: function(current){
$('.caption').animate({
bottom:0
},200);
if (window.console && console.log) {
// example return of current slide number
console.log('animationComplete on slide: ', current);
};
},
slidesLoaded: function() {
$('.caption').animate({
bottom:0
},200);
}
非常感謝任何指針。
嘗試刪除第一個字幕 - 動畫部分? – OptimusCrime