Git Product home page Git Product logo

Comments (13)

jackdoyle avatar jackdoyle commented on August 15, 2024 5

You just forgot to load the ScrollToPlugin :)

<script src="/js/vendor/gsap/src/minified/plugins/ScrollToPlugin.min.js"></script>

FYI, the best place for questions like this is in the forums at http://forums.greensock.com. 

Happy tweening!

from gsap.

jackdoyle avatar jackdoyle commented on August 15, 2024 2

I am new to this topic, could you tell me where and how to announce ScrollToPlugin?

I assume you mean "load", not "announce", right? Sure, you can load ScrollToPlugin from the CDN or download it from greensock.com or github or NPM. Lots of options. Have you read the "getting started" article? https://greensock.com/get-started-js

from gsap.

jackdoyle avatar jackdoyle commented on August 15, 2024 1

@savva-shishak It sounds like you just forgot to load ScrollToPlugin (or perhaps your build system dumped it as part of tree shaking which you should be able to resolve by directly referencing ScrollToPlugin somewhere in your code).

from gsap.

savva-shishak avatar savva-shishak commented on August 15, 2024 1

I sometimes am not attentive, thanks for helping me. You have a very cool platform. )

from gsap.

binarykitchen avatar binarykitchen commented on August 15, 2024

OH right, thanks so much!

from gsap.

jonaskuiler avatar jonaskuiler commented on August 15, 2024

Does someone here know how i can load this plugin using RequireJS? Can't get it to work, throws an "undefined is not a function" from the TweenMax source (line 6550).

from gsap.

jackdoyle avatar jackdoyle commented on August 15, 2024

Sure, here's an example set of files: http://www.greensock.com/dl/RequireJS_and_GSAP.zip

Make sure you're not using a stale version of GSAP.

from gsap.

jonaskuiler avatar jonaskuiler commented on August 15, 2024

Thanks Jack ;-)

from gsap.

pakman198 avatar pakman198 commented on August 15, 2024

I'm working on a horizontal navigation site and im using the ScrollMagic plugin, i got stuck on the anchor-link-scrolling.
This was so helpful, thanks :D

from gsap.

savva-shishak avatar savva-shishak commented on August 15, 2024

Does anyone know what to do with the error "Uncaught TypeError: Failed to execute 'scrollTo' on 'Window': parameter 1 ('options') is not an object." when i use webpack?

from gsap.

savva-shishak avatar savva-shishak commented on August 15, 2024

I am new to this topic, could you tell me where and how to announce ScrollToPlugin?

from gsap.

savva-shishak avatar savva-shishak commented on August 15, 2024

thank you for noticing

from gsap.

jackdoyle avatar jackdoyle commented on August 15, 2024

No problem at all! Happy to help. If you need anything else, there's a fantastic community at https://greensock.com/forums. It's a great place to learn even if you don't post a question.

Enjoy!

from gsap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.