React Animation

Tap to Expand Hero Animation

How to harness a simple React Hook to cycle through UI states

Seth Corker
Dec 4, 2019 · 3 min read
Title image showing “Tap to Expand — UI state transitions” with 5 animal images in card shapes, on a midnight blue background.

What we’re making

A demonstration video of the tap to expand animation

Tips for web animation

How to animate with the useCycle hook

The useCycle definition
Consuming the data from our useCycle hook
More complex use of useCycle hook

Where to go from here?


Benevolent Bytes

Thoughts, stories and ideas about development. Web development and beyond.

Seth Corker

Written by

Sharing ideas, facts, and opinions about programming. 📚 Learn more React and JavaScript. 🗺 Learn web development tips and tricks 🛸 Discover something new

Benevolent Bytes

Thoughts, stories and ideas about development. Web development and beyond.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade