Adding a from state to the animation

Unlock this video and the rest of this course by joining Frontend.FYI PRO .

In the previous animations we only told Framer Motion where it should animate to. We never set a starting point.

If you don’t specify a starting point, it will use the current value of the property. This can be either the style you set on the element with CSS, or the default the browser applies. But what if you want to override this default?

Unlock the full lesson with PRO

Want to read the full lesson? Join Frontend.FYI PRO.

PRO is a one time purchase of €149 that gives you lifetime access to this course, any courses released in the future, and so much more!