我目前有这个工作小提琴 - http://jsfiddle.net/B8Abd/
我想使用jquerys淡出然后在功能期间淡入.目前的代码是这样的:
function changetoYellow() {
//change the color of the div
createGradientV([0, 0, 0], [255, 255, 0], 7, 200);
}
Run Code Online (Sandbox Code Playgroud)
我想要这样的东西:
function changetoYellow() {
//fade to black:
$("#fadeBandsV").fadeOut(1000);
//change the color of the div
createGradientV([0, 0, 0], [255, 255, 0], 7, 200);
//fade from black:
$("#fadeBandsV").fadeIn(1000);
}
Run Code Online (Sandbox Code Playgroud)
谢谢.
这个怎么样:
function changetoYellow() {
$("#fadeBandsV").fadeOut(1000, function() {
createGradientV([0, 0, 0], [255, 255, 0], 7, 200);
$("#fadeBandsV").fadeIn(1000);
});
}
Run Code Online (Sandbox Code Playgroud)
演示: http ://jsfiddle.net/B8Abd/1/
归档时间: |
|
查看次数: |
587 次 |
最近记录: |