mirror of
https://github.com/micku7zu/vanilla-tilt.js
synced 2024-05-18 05:36:39 +02:00
Fix npm audit errors
This commit is contained in:
parent
f57ca7bcf4
commit
8be9c70c82
|
@ -33,7 +33,7 @@ A smooth 3D tilt javascript library forked from [Tilt.js (jQuery version)](https
|
|||
glare: false // if it should have a "glare" effect
|
||||
"max-glare": 1, // the maximum "glare" opacity (1 = 100%, 0.5 = 50%)
|
||||
"glare-prerender": false, // false = VanillaTilt creates the glare elements for you, otherwise
|
||||
// you need to add .js-tilt-glare>.js-tilt-glare-inner by yourself
|
||||
// you need to add .js-tilt-glare>.js-tilt-glare-inner by yourself
|
||||
"mouse-event-element": null // css-selector or link to HTML-element what will be listen mouse events
|
||||
}
|
||||
```
|
||||
|
@ -58,6 +58,10 @@ element.vanillaTilt.getValues();
|
|||
|
||||
// Reset instance
|
||||
element.vanillaTilt.reset();
|
||||
|
||||
// It also supports NodeList
|
||||
const elements = document.querySelectorAll(".js-tilt");
|
||||
VanillaTilt.init(elements);
|
||||
```
|
||||
|
||||
### Install
|
||||
|
|
3144
package-lock.json
generated
3144
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -18,7 +18,7 @@
|
|||
"release": "release"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.22.2",
|
||||
"babel-cli": "^6.26.0",
|
||||
"babel-plugin-add-module-exports": "^0.2.1",
|
||||
"babel-plugin-external-helpers": "^6.22.0",
|
||||
"babel-plugin-transform-class-properties": "^6.22.0",
|
||||
|
|
Loading…
Reference in a new issue