Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Delay the Appearance of a Loading Spinner with CSS in React

    reactReact
    ^0.0.0-experimental-b53ea6ca0

    Eager delay spinners are not a good user experience.
    They can make a snappy user interface feel slower.

    We want delay spinners to appear only after a perceivable delay.
    useTransition doesn't yet have an API for customizing this.
    Until it does, we can use CSS animations to delay visibility of delay spinners.