Animate hero elements with scroll-driven CSS animations
Join Stefan Judis as he creates a scroll-driven CSS animation that mimics Github's new homepage. Using only modern CSS, he creates animation timelines and animates between states. Here's the process he follows: Use sticky positioning and isolation for proper element stacking. Create CSS keyframe animations for the fade-out effect. Implement scroll-driven animations with animation-timeline. Understand the difference between scroll() and view() functions. Set up named view progress timelines for precise control. Stefan also covers best practices for accessibility and browser support for this effect. ---------------------- 0:00 GitHub scroll-driven animation example 0:39 Add "position: sticky" to create the scroll-over effect 1:34 Add a keyframe animation based on a scroll progress timeline 3:51 Change the keyframe animation to use a view progress timeline 6:14 Change the keyframe animation to use a named view progress timeline 7:07 Add "prefers-reduced-motion" and "animation-range" queries 8:22 Transform Figma designs to code with Visual Copilot ---------------------- About Visual Copilot 2.0: Convert Figma designs to high quality code in a single click. Chat to make quick iterations to code or refactor elements for maximum reusability. Import and use your existing components when you have them. Sync your Figma components with your code components to generate code that leverages your components when you have them. https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more About Builder.io: Empower your entire digital team to quickly code, create, iterate, and optimize differentiated digital experiences using an API-first platform that has AI in all the right spots. Sign up for free at https://www.builder.io/signup For more resources, visit Builder Blog https://www.builder.io/blog Follow us on: Twitter: https://twitter.com/builderio LinkedIn: https://www.linkedin.com/company/builder-io/ Get help with questions at our Community Forum - https://forum.builder.io/ Developer Documentation - https://www.builder.io/c/docs/developers Headless CMS - https://www.builder.io/headless-cms Design to Code with Builder Develop - https://www.builder.io/m/design-to-code
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.