Giter Club home page Giter Club logo

carousel-3d's Introduction

Jquery 插件 - 3D 轮播图

Jquery 插件,3D 轮播图。亦可用于轮播的块。

效果图

carousel-demo.gif

API

html

html写法:

<div class="carousel">
	<div class="item"></div>
	<!-- more .item element... -->
	<div class="item"></div>
</div>

引入js:

<script src="your-jquery-path/jquery.min.js"></script>
<<script src="this-carousel-path/jquery.carousel.js"></script>

javascript

$("your-carousel-element").carousel(options);

options

{
	'itemGap': 10, // 每个.item的距离
	'speed': 3000, // ms/次
	'isLeft2Right': true, // 滚动方向是否为从左往右
	'numFront': 6, // 大于1,少于.item的个数
	'hasPreNext': true, // 是否有 前一张 后一张 按钮
	'carousel': { // .carousel 样式设置
		'backgroundColor': '#aaa',
		// ...	
	},
	'item': { // .item 公共样式设置
		'width': 100,
	},
}

carousel-3d's People

Contributors

virtualstory avatar

Watchers

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