Animate the native next/image Image component using motion.dev. In this example, I’m animating the NEXT.js logo of a default Next.js project created with npx create-next-app@latest (works with all image types):
Create a new client component, e.g., motion-image.tsx
// motion-image.tsx
'use client'
import { motion } from 'motion/react' import Image from 'next/image'