Git Product home page Git Product logo

woodroots / infiniteslide Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 13.0 332 KB

横方向に無限にスクロールするプラグインです。極めてシンプル。

Home Page: http://wood-roots.com/web%E5%88%B6%E4%BD%9C/jqueryjavascript/%E7%84%A1%E9%99%90%E3%81%AB%E6%A8%AA%E6%96%B9%E5%90%91%E3%81%AB%E3%82%B9%E3%82%AF%E3%83%AD%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8Bjquery%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3

JavaScript 34.97% HTML 65.03%

infiniteslide's Introduction

jQuery infiniteSlide Plugin

横方向に無限にスクロールするプラグインです。極めてシンプル。

デモ

http://wood-roots.com/sample/infiniteslide/

使い方

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script src="infiniteslide.js"></script>

<script type="text/javascript">
	$(function(){
		$('.infiniteslide1').infiniteslide({
			'height': 400, //高さ
			'speed': 30, //速さ
			'direction' : 'left', //向き
			'pauseonhover': true //マウスオーバーでストップ
		});
	});
</script>

<!-- 途中略 -->

<div class="infiniteslide1">
	<ul>
		<li><img src="common/img/1.jpg" alt="" /></li>
		<li><img src="common/img/2.jpg" alt="" /></li>
		<li><img src="common/img/3.jpg" alt="" /></li>
		<li><img src="common/img/4.jpg" alt="" /></li>
	</ul>
</div>

オプション

オプションは4種類のみです。

  • height : 高さ
  • speed : 速さ
  • direction : 向き('left'か'right'のみ可能)
  • pauseonhover : マウスオーバーでアニメーションをストップする(true/false)

更新情報

2013.09.09 jQuery pauseプラグインを使ったマウスオーバーによるストップを追加 http://tobia.github.io/Pause/

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.