hueyhe / translate3d

A jQuery plugin that transforms HTML-elements depending on the previous transformation with callback.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Translate3d

Super-smooth CSS3 translate3d for jQuery

Translate3d is a plugin for to help you do CSS translate3d in jQuery.

Usage

Just include jquery.translate3d.js after jQuery. Requires jQuery 1.2+.

<script src='jquery.js'></script>
<script src='jquery.translate3d.js'></script>

It is also available via npm.

$ npm install --save translate3d

Animating - $.fn.translate3d

$("#example").translate3d({
  x: 100,
  y: 0,
  z: 0
}, 400, 'ease', function() {
	/* ... */
});

About

A jQuery plugin that transforms HTML-elements depending on the previous transformation with callback.

License:MIT License


Languages

Language:JavaScript 100.0%