npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hekimcan/react-sticky-stepper

v1.1.0

Published

Apple-style sticky scroll storytelling for React & Next.js powered by GSAP + ScrollTrigger.

Downloads

6

Readme

@hekimcan/react-sticky-stepper

Apple-style sticky scroll storytelling for React & Next.js — powered by GSAP + ScrollTrigger.

✨ Features

  • 🍎 Apple-inspired design - Smooth scroll-driven storytelling like Apple product pages
  • High performance - Built with GSAP and ScrollTrigger for buttery smooth animations
  • 🎨 Multiple animation presets - Fade, slide, scale, or create custom animations
  • 📱 Fully responsive - Desktop split-layout, mobile single-column (text-only)
  • 🔧 TypeScript ready - Fully typed with excellent developer experience
  • 🌐 SSR compatible - Works with Next.js 14+ and other SSR frameworks
  • 🎯 Zero config - Works out of the box with sensible defaults
  • 📦 GSAP included - No need to install GSAP separately

📦 Installation

npm install @hekimcan/react-sticky-stepper

🧠 Usage Example

import { StickyStepper, Step } from '@hekimcan/react-sticky-stepper'

export default function AppleScrollDemo() {
  return (
    <StickyStepper height="500vh" animation="slide" layout="split">
      {/* Apple-style split layout */}
      <Step
        leftContent={
          <div>
            <h1>Introducing the Future</h1>
            <p>Revolutionary technology that changes everything.</p>
            <ul>
              <li>✨ Smooth animations</li>
              <li>📱 Responsive design</li>
              <li>🎯 TypeScript ready</li>
            </ul>
          </div>
        }
        rightContent={
          <img src="/product-hero.jpg" alt="Product" />
        }
      />
      
      <Step
        leftContent={
          <div>
            <h1>Performance Beyond Limits</h1>
            <p>Experience the power of next-generation technology.</p>
          </div>
        }
        rightContent={
          <video src="/performance-demo.mp4" autoPlay muted loop />
        }
      />
      
      {/* Fullscreen step */}
      <Step>
        <div style={{ textAlign: 'center' }}>
          <h1>Experience the Magic</h1>
          <p>Full-screen immersive experience</p>
        </div>
      </Step>
    </StickyStepper>
  )
}

⚙️ Props & Options

StickyStepper Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | height | string | "400vh" | Total scroll height for the stepper section | | pinOffset | number | 0 | Offset from top when pinning starts | | animation | 'fade' \| 'slide' \| 'scale' \| 'none' | 'fade' | Animation preset for step transitions | | layout | 'split' \| 'fullscreen' | 'split' | Layout mode: split for left-right content, fullscreen for centered | | onStepChange | (index: number) => void | undefined | Callback fired when active step changes | | children | ReactNode | - | Step components |

Step Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | leftContent | ReactNode | - | Left side content (text, descriptions) for split layout | | rightContent | ReactNode | - | Right side content (images, videos) for split layout | | children | ReactNode | - | Content for fullscreen layout | | className | string | "" | Optional className for custom styling | | contentSide | 'left' \| 'right' | 'left' | Content alignment side for split layout |

🧩 Animation Presets

Fade

Smooth opacity transition between steps.

<StickyStepper animation="fade">
  {/* Your steps */}
</StickyStepper>

Slide

Steps slide up from bottom with fade effect.

<StickyStepper animation="slide">
  {/* Your steps */}
</StickyStepper>

Scale

Steps scale up from 80% with bounce effect.

<StickyStepper animation="scale">
  {/* Your steps */}
</StickyStepper>

None

No animation, just opacity changes.

<StickyStepper animation="none">
  {/* Your steps */}
</StickyStepper>

🧰 TypeScript Support

The package includes full TypeScript definitions:

import type { 
  StickyStepperProps, 
  StepProps, 
  AnimationFunction 
} from '@hekimcan/react-sticky-stepper'

// Custom animation function
const customAnimation: AnimationFunction = (element) => {
  return gsap.fromTo(element, 
    { rotateY: 90, opacity: 0 }, 
    { rotateY: 0, opacity: 1, duration: 1 }
  )
}

📱 Responsive Design

The component automatically adapts to different screen sizes:

Desktop (>768px):

  • Split layout with left content (text) and right content (visuals)
  • Progress dots on the right side
  • Full Apple-style experience

Mobile (≤768px):

  • Single column layout showing only left content (text)
  • Right content (visuals) hidden for better mobile UX
  • Smaller progress dots
  • Centered text alignment
<Step
  leftContent={
    <div>
      <h1>Always Visible</h1>
      <p>This content shows on both desktop and mobile</p>
    </div>
  }
  rightContent={
    <img src="visual.jpg" alt="Hidden on mobile" />
  }
/>

🎯 Advanced Usage

Step Change Tracking

const [currentStep, setCurrentStep] = useState(0)

return (
  <StickyStepper 
    onStepChange={(index) => {
      setCurrentStep(index)
      console.log(`Now viewing step: ${index}`)
    }}
  >
    {/* Your steps */}
  </StickyStepper>
)

Custom Styling

<Step className="my-custom-step">
  <div style={{ 
    background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
    padding: '2rem',
    borderRadius: '20px',
    color: 'white'
  }}>
    <h1>Custom Styled Step</h1>
  </div>
</Step>

🌐 Next.js Integration

The component works seamlessly with Next.js:

// pages/index.tsx or app/page.tsx
import dynamic from 'next/dynamic'

const StickyStepper = dynamic(
  () => import('@hekimcan/react-sticky-stepper').then(mod => mod.StickyStepper),
  { ssr: false }
)

export default function HomePage() {
  return (
    <StickyStepper height="500vh">
      {/* Your steps */}
    </StickyStepper>
  )
}

🚀 Development

# Clone the repository
git clone https://github.com/hekimcanaktas/react-sticky-stepper.git

# Install dependencies
npm install

# Run development server
npm run dev

# Build the package
npm run build

🧑‍💻 Author

Hekimcan Aktaş

📜 License

MIT License - see the LICENSE file for details.


Made with ❤️ for the React community