update readme on NPM installation

This commit is contained in:
m gb 2021-05-17 10:39:44 +02:00
parent 129f3e31f1
commit 2af49bec96
2 changed files with 12 additions and 0 deletions

View file

@ -91,6 +91,12 @@ Also available on npm https://www.npmjs.com/package/vanilla-tilt
npm install vanilla-tilt
```
Import it using
```
import VanillaTilt from 'vanilla-tilt';
```
### Known issues
- [Getting weird rendering issues on Safari](https://github.com/micku7zu/vanilla-tilt.js/issues/22)

View file

@ -90,6 +90,12 @@ Also available on npm https://www.npmjs.com/package/vanilla-tilt
npm install vanilla-tilt
```
Import it using
```
import VanillaTilt from 'vanilla-tilt';
```
### Credits
Original library: [Tilt.js](http://gijsroge.github.io/tilt.js/)