JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo update Sep 25, 2017
dist doesn't run on mobile devices Oct 10, 2017
src doesn't run on mobile devices Oct 10, 2017
.gitignore current Sep 8, 2017
.npmignore proper NPM package Sep 23, 2017
README.md Update README.md Sep 25, 2017
index.html removed logs Sep 25, 2017
package.json version update Oct 10, 2017
webpack.config.js getting ready for release 1 Sep 23, 2017
webpack.prod.js added uglify Sep 14, 2017

README.md

tilted.js

Installation

NPM

npm install tilted.js

CDN

<script src="https://cdn.jsdelivr.net/npm/tilted.js/dist/tilted.js"></script>

Instructions

Run the function tilted() with the parameters of (id of element, properties)

tilted('thisIsaID', {
      intensity: 15,
      onHover: true,
      disableX: false,
      disableY: false,
      invert: false
    });

Properties

Property Name Description Defaut Value Value Type
intensity controls the intensity 12 int
onHover controls if tilt happens only on hover false boolean
disableX enables/disables tilt on the X axis false boolean
disableY enables/disables tilt on the Y axis false boolean
invert tilt will be inverted false boolean