Skip to content

dodio/Carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carousel

一个轮播图框架

##使用 使用很简单,下载回去看example

本质上轮播的div,而不是图。

##可以自定义添加切换效果。 例如:


(function($){
  $.Carousel.effects.fade = function(now,then){
    var _self = this;
    var elenow = $(_self.conf.items.get(now));
    var elethen = $(_self.conf.items.get(then)); 

    var speed = _self.conf.effect.speed || 300;
    elenow.fadeOut(speed,function(){
      elethen.show();
      _self.doneAction();
    });
  }
})(jQuery);

About

一个轮播图框架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published