Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get this to work on NPM? #39

Closed
Seeingred0 opened this issue May 29, 2021 · 1 comment
Closed

How to get this to work on NPM? #39

Seeingred0 opened this issue May 29, 2021 · 1 comment

Comments

@Seeingred0
Copy link

Seeingred0 commented May 29, 2021

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'

})

@robin-dela
Copy link
Owner

Fixed with the new version (updated GSAP dependency to the last version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants