Jump to content
Search Community

joycode

Members
  • Posts

    5
  • Joined

  • Last visited

joycode's Achievements

1

Reputation

  1. Can anyone test ScrollTrigger using Angular. I found that I'm not able to register it but I'm able to register f.e ScrollToPlugin
  2. Hello guys, yesterday I created a topic and managed to set an animation such as this one animation such as this one: https://codepen.io/GreenSock/pen/YzygYvM. But today I get this error: "ERROR TypeError: Cannot read property 'style' of undefined" when trying to build the project. I think it comes from ScrollTrigger but I'm not sure how to fix it and I don't know why it worked yesterday but it doesn't work today.
  3. Hey @elegantseagulls, thanks for the help. I managed to add 'active' class to the current active child element by using the onUpdate callback and checkging the progress variable.
  4. Hello @elegantseagulls, thanks for the prompt answer. When I try to use toggleClass it only toggles the parent container not the current child element. Can you suggest which callback to use to implement the class toggle via js?
  5. Hello there, I'm trying to achive a vertical scroll such as this one with Angular but I'd like to be able to add a css class to the current active child slide and then remove it on leave. Is this possible? https://codepen.io/GreenSock/pen/YzygYvM Thanks in advance!
×
×
  • Create New...