【问题标题】:How to animate this slider?如何为这个滑块设置动画?
【发布时间】:2013-12-06 15:32:27
【问题描述】:

大家好,我做了一个滑块,效果很好,但是我想在单击箭头时为幻灯片设置动画。有我的代码:Code

【问题讨论】:

  • 滑到一边还是淡出?
  • 不相关只是不知道怎么做
  • 这是相关的,因为这两种效果需要不同的插件架构。这不是拍“滑动”或“褪色”那么简单...看看这个:paulmason.name/item/simple-jquery-carousel-slider-tutorial
  • 我想在幻灯片之间移动

标签: jquery animation slider jquery-animate slideshow


【解决方案1】:

您可以使用 jQuery 中转插件:http://ricostacruz.com/jquery.transit/

例如(使用 easeOut.. 的 500 毫秒动画):

$("li").transition({ x: -700 }, 500, 'easeOutExpo', function() {

  // Transition completed

});

这是一个非常好的插件,它支持 CSS3 过渡。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多