Build Smooth Page Transitions with React and GSAPby@joerlop
416 reads

Build Smooth Page Transitions with React and GSAP

June 26th 2020
6 min
by @joerlop 416 reads
tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

The first step when creating transitions is deciding what are the elements of the current page you want to animate when entering or exiting the page. In our example, we animate all the components of the page, with the exception of the navigation menu. You can decide to include or exclude any element you want from your transitions. This step is important because while React creates and renders components in a virtual DOM, GSAP needs to work with components that exist in the real DOM. We use refs, which provide a way to access DOM nodes from React.

Coin Mentioned

Mention Thumbnail
featured image - Build Smooth Page Transitions with React and GSAP
Jonathan Erlich HackerNoon profile picture

@joerlop

Jonathan Erlich

About @joerlop
LEARN MORE ABOUT @JOERLOP'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa