Skip to content
Fahri Kolağası
Back to journal

JOURNAL · CODE & DESIGN

Captivating Users with Actions using Framer Motion

Fahri Kolağası1 min read
Framer MotionAnimationUI/UX

If you don't want a user entering your site to get bored, you should integrate micro-animations into your system. In the React world, the undisputed king of this is Framer Motion.

A Simple Visibility Animation

Making elements appear as the user scrolls down (scroll trigger) is now very easy.

<motion.div
  initial={{ opacity: 0, y: 50 }}
  whileInView={{ opacity: 1, y: 0 }}
  transition={{ duration: 0.5 }}
>
  I appear as you scroll down!
</motion.div>

When you use this on all your card components, you can create a much more modern interface feel.

Thanks for reading.