Skip to content
New issue

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

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

Already on GitHub? # to your account

ScrollToPlugin and scrollTop animation #27

Open
mityok opened this issue Oct 11, 2016 · 2 comments
Open

ScrollToPlugin and scrollTop animation #27

mityok opened this issue Oct 11, 2016 · 2 comments

Comments

@mityok
Copy link

mityok commented Oct 11, 2016

I'm trying to animate scrollTop on react element folowing this examle from gsap. From what i was able to see it requires the use of ScrollToPlugin. is it possible to connect plugins with react-gsap-enhancer? and if so how can it be achieved

@azazdeaz
Copy link
Owner

Hi, the react-gsap-enhancer has nothing to do with embedding GSAP (and its plugins) so you should do as you normally do it. (Although, i have no experience with the ScrollToPlugin)

@benstepp
Copy link
Collaborator

I set up a quick create-react-app and ejected to show how to use this particular plugin with webpack. You need to alias the gsap pieces (TweenLite / Other Plugins) using webpack's resolve.alias feature.

benstepp/gsap-scrollto-example@65c53fe

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

No branches or pull requests

3 participants