The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

React-Motion: Introduction to the Spring Component

React-Motion: Introduction to the Spring Component

2:03
Spring is the simplest component available to us in React-Motion. It allows us to transition from a defaultValue to an endValue leaving what to do with that value as it transitions up to us. In this lesson we'll create a simple Spring and use it to update the style of our component.
Watch this lesson now
Avatar
egghead.io

Spring is the simplest component available to us in React-Motion. It allows us to transition from a defaultValue to an endValue leaving what to do with that value as it transitions up to us. In this lesson we'll create a simple Spring and use it to update the style of our component.

Avatar
Deniz

Video explains react-motion 0.2.7. Either install that version explicitly or if you are using newer 0.3.x version you can see the difference between two versions from https://github.com/chenglou/react-motion/wiki/v0.3.0-examples

Avatar
James

Every video up to now has been written in jsx and now you flip to ES (I presume). It's hard enough learning one new framework and syntax without another one being piled on for no apparent reason.

Avatar
Arthur

There is no more Spring component in the latest version (0.3.1), also the new Motion component uses a different set of props, and a string instance for calculations.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?