Giter Site home page Giter Site logo

gaofei019 / aw-infinity-slider Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 86 KB

adaptive-width-infinity-slider 自适应宽度无缝轮播jquery、zepto插件 支持移动端手指滑动

Home Page: http://www.saikr.com

License: MIT License

HTML 15.84% CSS 24.07% JavaScript 60.09%
infinity-slider jquery-plugin

aw-infinity-slider's Introduction

aw-infinity-slider

adaptive-width-infinity-slider
Support touch event in mobile terminal.
自适应宽度无缝轮播jquery,zepto插件,支持移动端手指滑动。可以配置为固定宽度轮播。

使用方法:

引入jquery或者zepto
(使用zepto时,需要按照zepto的要求修改插件的写法)以及插件文件
html代码在html页面中
JS代码
	$(function(){
        var $skSlider=$('#skSlider');
        $skSlider.slider();//执行轮播
    });
配置成固定宽度轮播(宽度通过CSS控制)
Dispose slider of fixed width which is controled by css;
	$(function(){
        var $skSlider=$('#skSlider');
        $skSlider.slider({
			screenwidth:false
		});//执行轮播
    });
配置自动播放及间隔时间
Dispose auto play and time interval
	$(function(){
        var $skSlider=$('#skSlider');
        $skSlider.slider({
			auto:true, //默认不自动播放
			time:5000 //单位:ms =>默认10000ms
		});//执行轮播
    });

注:长时间运行有点儿内存泄漏,希望各位大神指正! eg: There is some memory leak in it.I hope someone to modify it.

aw-infinity-slider's People

Contributors

gaofei019 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.