A comprehensive, reusable React component showcasing advanced scroll animations using Framer Motion. Perfect for modern web portfolios and landing pages.
- Scroll Progress Indicator - Visual progress bar that fills as user scrolls
- Parallax Effects - Elements that move at different speeds during scroll
- Scroll-Triggered Animations - Reveals that activate when elements enter viewport
- Stagger Animations - Sequential reveals for lists and grids
- 3D Transforms - Rotation and perspective effects for depth
- Hover Interactions - Smooth micro-interactions on buttons and cards
- Performance Optimized - Uses Framer Motion's optimized hooks
npm install framer-motion react tailwindcss postcss autoprefixerimport SmoothScrollUI from "./components/SmoothScrollUI";
function App() {
return <SmoothScrollUI />;
}framer-motion: 12.23.12 - Animation libraryreact: ^19.0.0 - React frameworktailwindcss: 4.1.12 - Utility-first CSS framework
Update the data arrays in the component:
// Change skills in StaggerSection
const skills = ["React", "Redux", "Tailwind"];Replace Tailwind color classes:
// Change theme
className = "bg-gradient-to-br from-purple-900 via-blue-900 to-indigo-900";- SmoothScrollUI - Main wrapper component
- ParallaxSection - Demonstrates parallax scrolling
- ScrollRevealTitle - Letter-by-letter text animation
- ScrollRevealCard - 3D card reveal animation
- StaggerSection - Grid with staggered item reveals
useScrolluseTransformuseInViewuseAnimation
All animations are responsive and work on:
- Desktop
- Tablet (768px - 1023px)
- Mobile (320px - 767px)
MIT License - Feel free to use in personal and commercial projects.
- Fork the repository
- Create your feature branch
- Make your changes
- Test on multiple devices
- Submit a pull request
If you have questions or need help implementing:
- Open an issue on GitHub
- Please check Framer Motion documentation
- Review Tailwind CSS documentation
Built with ❤️ by Krishna S (Waller)