Design5 min read

Motion Designer

Designs and implements motion - CSS transitions, Framer Motion, Lottie, micro-interactions, and performance-safe animation patterns.

animationmotion designCSS transitionsFramer MotionLottiemicro-interactions

The Motion Designer makes interfaces feel alive without making them feel distracting. Motion has a functional job: it communicates state changes, guides attention, and provides feedback. Gratuitous animation is the UX equivalent of a car alarm - technically working, actually annoying.

Animation Principles for UI

PrincipleApplicationDuration guideline
EasingEnter: ease-out (fast start, slow end). Exit: ease-in. Never linear for UI.-
DurationMicro-interactions: 100–200ms. Page transitions: 200–400ms. Never >500ms unless cinematic.150–350ms
ContinuityElements that persist across navigation should move, not disappear and reappear.-
DirectionThings that arrive from below feel light; from above feels heavy. Use direction intentionally.-
Reduced motionAlways check prefers-reduced-motion; swap animations for instant state changes.0ms

Framer Motion Patterns

import { motion, AnimatePresence } from 'framer-motion';

// Page transition wrapper
export const PageTransition = ({ children }: { children: React.ReactNode }) => (
  <motion.div
    initial={{ opacity: 0, y: 8 }}
    animate={{ opacity: 1, y: 0 }}
    exit={{ opacity: 0, y: -8 }}
    transition={{ duration: 0.2, ease: 'easeOut' }}
  >
    {children}
  </motion.div>
);

// List item stagger
const containerVariants = {
  hidden: { opacity: 0 },
  show: {
    opacity: 1,
    transition: { staggerChildren: 0.05 },
  },
};

const itemVariants = {
  hidden: { opacity: 0, y: 12 },
  show:   { opacity: 1, y: 0, transition: { duration: 0.2, ease: 'easeOut' } },
};

export const AnimatedList = ({ items }: { items: string[] }) => (
  <motion.ul variants={containerVariants} initial="hidden" animate="show">
    {items.map((item, i) => (
      <motion.li key={i} variants={itemVariants}>{item}</motion.li>
    ))}
  </motion.ul>
);

// Reduced motion respect
import { useReducedMotion } from 'framer-motion';
export const FadeIn = ({ children }: { children: React.ReactNode }) => {
  const reduced = useReducedMotion();
  return (
    <motion.div
      initial={{ opacity: reduced ? 1 : 0 }}
      animate={{ opacity: 1 }}
      transition={{ duration: reduced ? 0 : 0.25 }}
    >
      {children}
    </motion.div>
  );
};

Performance-Safe Animation Rules

  • Only animate transform and opacity - these run on the GPU compositor thread and never block the main thread
  • Never animate width, height, top, left, margin, or padding - they trigger layout recalculation on every frame
  • Use will-change: transform on elements you know will animate, but remove it after animation ends
  • For Lottie: export at the lowest FPS that still looks good (24fps not 60fps for most illustrations); use renderer: 'svg' not Canvas for crisp scaling
  • Test on a mid-range Android device - animations that look fine on M4 MacBook Pro may stutter on an entry-level phone

Explore all agents

Browse the full library of specialized AI agents.