GithubHelp home page GithubHelp logo

nativeui's Introduction

nativeUI安装

###1.npm install ###2.webpack --watch

##使用方法

<script src="./dist/nativeUI.js"></script>

####轮播 image

 <div id="carousel" style="width: 500px; height: 300px;"></div>
//创建轮播数组
var imgArray = [
    'https://img.alicdn.com/simba/img/TB1DtYSPFXXXXcWXXXXSutbFXXX.jpg',
    'https://img.alicdn.com/simba/img/TB12F_9PpXXXXcvXpXXSutbFXXX.jpg',
    'http://img1.imgtn.bdimg.com/it/u=3081053742,1983158129&fm=23&gp=0.jpg',
    'http://img0.imgtn.bdimg.com/it/u=4195805644,827754888&fm=23&gp=0.jpg'
  ];
var carouselDom = document.getElementById('carousel');
//创建轮播对象
var loopImages = new LoopImages(imgArray, carouselDom);
loopImages.createImages();
//自动播放
loopImages.autoPlay();
//切换按钮
loopImages.createSlideButton();

nativeui's People

Contributors

muwoo avatar silence-j avatar sinhide avatar

Watchers

James Cloos 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.