hover-effect icon indicating copy to clipboard operation
hover-effect copied to clipboard

How to get this to work on NPM?

Open Seeingred0 opened this issue 4 years ago • 0 comments

I'm setting up on JS file as the following, however I'm getting an issue - Uncaught TypeError: Cannot read property 'greensock' of undefined

Here's my JS code:

import { hoverEffect } from 'hover-effect';


new hoverEffect({

parent: document.querySelector('.img'),
intensity: 0.3,
image1: './1.jpg',
image2: './2.jpg',
displacementImage: './4.png'

})

Seeingred0 avatar May 29 '21 16:05 Seeingred0