flâneur — a map of the web's best reading

Animated Elements | React Spring

react-spring.dev · 1,806 words · saved by 1 readers

An in-depth conceptual guide to animated elements and what they are in React Spring.

Animated Elements What are they? The basis of react-spring depends on two things, SpringValues & animated components. Let's explore the latter. An animated component receives SpringValues through the style prop and updates the element without causing a React render. It works because it is a Higher-Order component (HOC) assigned to a dictionary of elements depending on the target you've selected thus being able to pass the props you desire for your application but also containing the logic to interpolate the SpringValues from the hook you've used. Animating elements The animated component can b

Explore this link on the map →

related reading