Giter VIP home page Giter VIP logo

carousel's Introduction

Carousel

闲来无事,写几个轮播器来玩玩

目录

1.纯css实现轮播器

  • demo1:通过css3的动画属性对轮播进行实现,缺点是不灵活,只能是写死的几张图片,另外无法拖动;
  • demo2:通过css3的动画属性对轮播进行实现,缺点是轮播索引不能实时滚动,索引触发滚动后不能从当前轮播图片轮播,而是从第一张图片开始,同时也存在demo1中的缺点;

2.js实现轮播器

  • demo1:实现了简单的轮播自动效果,不过还未实现拖动效果,并且比较繁琐,希望能够用对象进行封装;
  • demo2:通过jquery实现了一个简单的轮播页面;

carousel's People

Contributors

yaodebian avatar

Stargazers

月轻尘 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.