All Projects → gijsroge → Tilt.js

gijsroge / Tilt.js

Licence: mit
A tiny 60+fps parallax tilt hover effect for jQuery.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Tilt.js

Parallax background
jQuery parallax background plugin based on GSAP
Stars: ✭ 30 (-99.13%)
Mutual labels:  parallax, jquery
Paroller.js
Parallax scrolling jQuery plugin
Stars: ✭ 535 (-84.46%)
Mutual labels:  parallax, jquery
Simpleparallax.js
Simple and tiny JavaScript library that adds parallax animations on any images
Stars: ✭ 1,075 (-68.77%)
Mutual labels:  parallax, jquery
Cz Parallax
Simple and tiny jQuery plugin for Parallax effect.
Stars: ✭ 10 (-99.71%)
Mutual labels:  parallax, jquery
Universal Tilt.js
🎆 Parallax tilt effect library
Stars: ✭ 117 (-96.6%)
Mutual labels:  parallax, jquery
Ajaxfileupload
A jQuery plugin that simulates asynchronous file uploads.
Stars: ✭ 291 (-91.55%)
Mutual labels:  jquery
Validate
A simple jQuery plugin to validate forms.
Stars: ✭ 298 (-91.34%)
Mutual labels:  jquery
Boston.gov D7
Once housed code for boston.gov. Have moved to Drupal 8 as of November 2019.
Stars: ✭ 290 (-91.57%)
Mutual labels:  jquery
Stickystack.js
A jQuery plugin that creates a stacking effect by sticking panels as they reach the top of the viewport.
Stars: ✭ 287 (-91.66%)
Mutual labels:  jquery
Customizer Custom Controls
WordPress Customizer Custom Controls
Stars: ✭ 311 (-90.96%)
Mutual labels:  jquery
Hulk
In-browser JSON editor
Stars: ✭ 302 (-91.23%)
Mutual labels:  jquery
Hstardoc
My blogs write with markdown.
Stars: ✭ 297 (-91.37%)
Mutual labels:  jquery
Estoque
Controle de estoque
Stars: ✭ 292 (-91.52%)
Mutual labels:  jquery
Jquery Match Height
a responsive equal heights plugin
Stars: ✭ 3,100 (-9.94%)
Mutual labels:  jquery
Texttailor.js
jQuery plugin, tailor made text to fill the height of the parent element or ellipse it if it doesn't fit
Stars: ✭ 291 (-91.55%)
Mutual labels:  jquery
React Native App Intro
react-native-app-intro is a react native component implementing a parallax effect welcome page using base on react-native-swiper , similar to the one found in Google's app like Sheet, Drive, Docs...
Stars: ✭ 3,169 (-7.93%)
Mutual labels:  parallax
T.js
⌨️ Lightweight $.Hypertext.Typewriter
Stars: ✭ 289 (-91.6%)
Mutual labels:  jquery
Skitter
Skitter - Slideshow for anytime
Stars: ✭ 295 (-91.43%)
Mutual labels:  jquery
Waitme
jquery plugin for easy creating loading css3/images animations
Stars: ✭ 302 (-91.23%)
Mutual labels:  jquery
Jquery.json Viewer
jQuery plugin for displaying JSON data
Stars: ✭ 295 (-91.43%)
Mutual labels:  jquery

Build Status

Tilt.js

A tiny requestAnimationFrame powered 60+fps lightweight parallax tilt effect for jQuery.

Weights just 1.71kb Gzipped Tilt.js demo gif

Take a look at the landing page for demos.

Tilt.js in the wild

Usage

<!DOCTYPE html>
<body>
    <div data-tilt></div> <!-- Tilt element -->
    <script src="jquery.js" ></script> <!-- Load jQuery first -->
    <script src="tilt.js"></script> <!-- Load Tilt.js library -->
</body>

Options

maxTilt:        20,
perspective:    1000,   // Transform perspective, the lower the more extreme the tilt gets.
easing:         "cubic-bezier(.03,.98,.52,.99)",    // Easing on enter/exit.
scale:          1,      // 2 = 200%, 1.5 = 150%, etc..
speed:          300,    // Speed of the enter/exit transition.
transition:     true,   // Set a transition on enter/exit.
disableAxis:    null,   // What axis should be disabled. Can be X or Y.
reset:          true,   // If the tilt effect has to be reset on exit.
glare:          false,  // Enables glare effect
maxGlare:       1       // From 0 - 1.

Events

const tilt = $('.js-tilt').tilt();
tilt.on('change', callback);  // parameters: event, transforms
tilt.on('tilt.mouseLeave', callback); // parameters: event
tilt.on('tilt.mouseEnter', callback); // parameters: event

Methods

const tilt = $('.js-tilt').tilt();

// Destroy instance
tilt.tilt.destroy.call(tilt);

// Get values of instance
tilt.tilt.getValues.call(tilt); // returns [{},{},etc..]

// Reset instance
tilt.tilt.reset.call(tilt);

Install

  • yarn: yarn add tilt.js
  • npm: npm install --save tilt.js

CDN

Alternatives

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].