【发布时间】:2018-11-15 22:44:18
【问题描述】:
大家好,我在 jQuery 中得到了这段代码:
function onRight() {
$(this).css(
'background',
'linear-gradient(to right, rgb(255, 255, 255), rgb(196, 196, 196)'
);
}
效果很好,但我遇到了问题,变化太快了。 我怎样才能让它看起来像淡入淡出?或者只是使用任何持续时间来减慢速度?
** 不能用 css 做,因为它的渐变。
衷心感谢
【问题讨论】: