Skip to content

Using client hints to avoid content layout shift with prefers-reduced-motion and framer motion animations.

Notifications You must be signed in to change notification settings

kentcdodds/epic-stack-with-framer-motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Epic Stack Example with Framer Motion

This demonstrates how to use Framer Motion with the Epic Stack. Easiest way to explore this is to check the commit history to see what changed from the init commit.

Pretty much:

  1. Install framer-motion
  2. Add a client hint for prefers-reduced-motion
  3. Use framer motion with reducedMotion to respect user preferences, even on the server render.

About

Using client hints to avoid content layout shift with prefers-reduced-motion and framer motion animations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published