PashanIrani / tilted.js

Demo:

Home Page:http://pashan.ca/tilted.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Demo:

http://pashan.ca/tilted.js/


Languages

Language:JavaScript 61.3%Language:HTML 38.7%