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?

レスポンシブ対応 GSAP パララックス

Posted at

CSSに記述を加えるだけで簡単にレスポンシブ対応できるパララックスのメモ

See the Pen パララックス by yumyum-02 (@yumyum-02) on CodePen.

@media (max-width: 767px) {
  .js-parallax {
    --parallax-y: -50;
  }
}

これにより767px以下でパララックスで動く程度を指定しています。

参考
https://hakoirioyaji.com/blog/gsap-scrolltrigger-parallax/

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?