<Recreated

Sensa's Scroll Triggered Card Deck Opening Animation

September 3, 2023

<sensa.co
Like
Card Image 1
Card Image 2
Card Image 3
Card Image 4
Card Image 5
Scroll up
<Packages
npm imotion<
<
<div>
  <div ref={targetRef} className='section-cards'>
    <div className='card-list-container'>
      <div ref={cardsContainerRef} className='card-list'>
        {cardImages.map((img, i) => (
          <div key={img} className='card'>
            <img
              src={img}
              width={594}
              height={1024}
              alt={`Card Image ${i + 1}`}
            />
          </div>
        ))}
      </div>
    </div>
  </div>
  <div className='dummy-box' style={{ height: '900px' }}>
    Scroll up
  </div>
</div>