0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[gsap] SrollTriggerでdelayが効かない

Posted at

動作環境

gsap: 3.10.4
react: 17.0.2

これのdelayが動かない・・・

gsap.to(Element, {
  y: () => '0',
  ease: Power1.easeOut,
  duration: 1.5,
  delay: delay ? delay : null,
  scrollTrigger: {
    trigger: trigger ? trigger : Element,
    start: () => `${start ? start : 'top 30%'}`,
    invalidateOnRefresh: true,
    markers: true,
  },
})

参考サイトで海外の人がいろいろ話しているのを見ると、とりあえず下記オプションをflaseで動いた

invalidateOnRefresh:true

[参考]同じ現象の話↓
https://greensock.com/forums/topic/25610-problem-delay-property-not-working-with-srolltrigger/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?