paint-brush
Build Smooth Page Transitions with React and GSAPby@joerlop
605 reads
605 reads

Build Smooth Page Transitions with React and GSAP

by Jonathan Erlich6mJune 26th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Jonathan Erlich

Jonathan Erlich

@joerlop

Entrepreneur. Software engineer. Interested in Bitcoin, fintech and AI.

About @joerlop
LEARN MORE ABOUT @JOERLOP'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Jonathan Erlich HackerNoon profile picture
Jonathan Erlich@joerlop
Entrepreneur. Software engineer. Interested in Bitcoin, fintech and AI.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite