Horizontal Scroll
横スクロール演出
どんな動き?
通常の縦スクロール操作を検知して、コンテンツを横方向へ流すセクション演出。カードやギャラリーを横一列に並べ、縦にスクロールしているだけなのに横方向へコンテンツが流れていくため、ポートフォリオや作品一覧セクションでインパクトを出したいときに使われる。
よく使う場所
ポートフォリオ作品ギャラリー製品ラインナップ
日本語での表現例
こんな言葉で説明される動きです。
AIへの指示文(プロンプト)
ChatGPTやClaudeなどの生成AIに、このままコピーして渡せます。「詳細版」を使うと実装結果が安定しやすくなります。
Convert vertical scroll input into horizontal movement of a pinned row of content.Trigger:
Vertical scroll position within a pinned section.
Start:
The section pins to the viewport and vertical scroll begins converting to horizontal movement.
End:
All horizontally-arranged content has passed; the section unpins and vertical scrolling resumes normally.
Behavior:
While the section is pinned, vertical scroll input is translated into horizontal translateX movement of a row of cards, so scrolling down visually moves content sideways.
Initial state:
translateX: 0
Final state:
translateX: -(total row width minus viewport width)実装方法の候補
この動きは以下の技術で実装できます。
GSAP ScrollTrigger (pin + horizontal tween)CSS Scroll-driven Animations
別名・関連ワード
Horizontal Scroll SectionSideways ScrollScroll-jacked Gallery