npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

infiniteslidev2

v2.0.1-1

Published

要素を無限スクロールさせるjQueryプラグインです。CSS3 Animationを使用しているため、滑らかです。

Downloads

63

Readme

Infiniteslide.js v2

日本語の解説はこちら

Infiniteslide.js v2 is jQuery plugin that is scrolling infinite. This is using CSS3 Animation (keyframes), so smooth and light for browser.

Browser Support

Infiniteslide.js v2 use Flexbox and @keyfremas. so over IE10,Android 4.4.

Demo

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

Blog Article

Sorry japanese only. http://wood-roots.com/?p=1975

Usage

<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="infiniteslidev2.js"></script>
<!--
if using jsdelivr,write this.
<script src="https://cdn.jsdelivr.net/npm/infiniteslidev2/infiniteslidev2.min.js"></script>
-->
<script type="text/javascript">
	$(function(){
		$('.infiniteslide').infiniteslide({
			'speed': 100, //speed this is px/min
			'direction': 'left', //choose  up/down/left/right
			'pauseonhover': true, //if true,stop onmouseover
			'responsive': false, //width/height recalculation on window resize. child element's width/height define %/vw/vh,this set true.
			'clone': 1 //if child elements are too few (elements can't "infinite"), set 2 or over.
		});
	});
</script>

<!-- omitted -->

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

Options

  • speed : speed / px/min
  • direction : direction(choose up/down/left/right)
  • pauseonhover : animation stop on mouseover (true/false)
  • responsive : responsive support
  • clone : Number of times to duplicate child elements. If the number of child elements is small and the loop is interrupted, specify 2 or more.

History

2018.09.17 English readme add. 2017.07.11 clone option add. 2017.07.10 release.

日本語の解説

要素を無限スクロールさせるjQueryプラグインです。 CSS3 Animationを使用しているため、滑らかです。

対応ブラウザ

Flexboxと@keyframeによるアニメーションを使用しているため、IE10以上、Android4.4以上です。

デモ

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

ブログ記事

http://wood-roots.com/?p=1975

使い方

<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="infiniteslidev2.js"></script>
<!--
jsDelivrから読み込む場合は下記のように記述してください。
<script src="https://cdn.jsdelivr.net/npm/infiniteslidev2/infiniteslidev2.min.js"></script>
-->

<script type="text/javascript">
	$(function(){
		$('.infiniteslide').infiniteslide({
			'speed': 100, //速さ 単位はpx/秒です。
			'direction': 'left', //up/down/left/rightから選択
			'pauseonhover': true, //マウスオーバーでストップ
			'responsive': false, //子要素の幅を%で指定しているとき
			'clone': 1 //子要素の複製回数
		});
	});
</script>

<!-- 途中略 -->

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

オプション

オプションは5種類です。

  • speed : 速さ
  • direction : 向き(up/down/left/right より選択)
  • pauseonhover : マウスオーバーでアニメーションをストップする(true/false)
  • responsive : レスポンシブ対応するかどうか。スライドの子要素を%で指定している場合はtrueにしてください。
  • clone : 子要素を複製する回数。子要素の数が少なくループが途切れる場合は2以上を指定してください。

更新情報

2018.09.17 英語のreadmeを作成(なお作者の英語力は…) 2017.07.11 cloneオプションの追加。 2017.07.10 初版公開