Javascript

【Javascript】vanilla JSの3DホバーエフェクトPivot.js

June 4, 2017
pivot

Pivot.jsはvanilla JSの3Dホバーエフェクト。

Usage

<script src="pivot.js"></script>
<script>pivot.init({ options });</script>
Key Expects
selector string
perspective number
sensitivity number
invert boolean
scale boolean
shadow boolean
shine boolean
persist boolean
position {object}
transition {object}
hoverInClass "string"
hoverOutClass "string"
hoverClass "string"
touchEnabled N/A