Coder Social home page Coder Social logo

javascript-slider's Introduction

javascript 自适应配置 轮播图

使用方法

效果

Image text

  1. 页面引入js和css;

  2. 页面中调用;

     var silde1 = new silde('slide-wrap', { // 选择要作用的轮播id
    
     time: 2000, // 轮播切换时间
    
     showImgLen: 4, // 显示几张图
    
     betweenMargin: 5, // 图片间的间距
    
     prevBtnShow: false, // 是否显示上一张和下一张按钮, true:显示,false:不显示,默认显示
    
     navigatShow: false, // 是否显示导航条, true:显示,false:不显示,默认显示
    
     prevText: '<', // 上一张的按钮文案
    
     nextText: '>' // 下一张的按钮文案 });
    

javascript-slider's People

Stargazers

 avatar

Watchers

 avatar  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.