LoginSignup
1
2

More than 3 years have passed since last update.

【JavaScript/CSS】スクロールしたら順番に要素を表示するデモ(IntersectionObserver使用)

Posted at

はじめに

Webページで良く見る、スクロールしたら順番に要素が表示される演出のデモを作成してみました。

JavaScriptのIntersectionObserverを使っています。

環境

OS: macOS Catalina 10.15.1

結論:デモ

各要素の数字は、data-delayを何秒に設定したかです。
参考までに表示してあります。

See the Pen PowbvVx by terufumi (@terufumi1122) on CodePen.

おわりに

最後まで読んで頂きありがとうございました:bow_tone1:

どなたかの参考になれば幸いです:relaxed:

参考にさせて頂いたサイト(いつもありがとうございます)

IntersectionObserver?! Scroll Activated Animations & More with No Dependencies - YouTube

1
2
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
1
2