An open API service indexing awesome lists of open source software.

https://github.com/aholachek/react-animations-from-scratch


https://github.com/aholachek/react-animations-from-scratch

animation animejs react react-life-cycle transition tutorial

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

[This blog post explains the techniques in more depth](https://medium.com/about-codecademy/building-animations-in-react-from-scratch-c66a582c9b65)

# Building animations in React from scratch

## 1. Basic sequenced enter & exit
![enter and exit animation](./gifs/basic_enter_exit.gif)

- [Live example](http://alex.holachek.com/react-animations-from-scratch/?selectedKind=Animation%20Examples&selectedStory=1.%20The%20basic%20technique&full=0&down=1&left=1&panelRight=0)
- [Code](./src/examples/BasicEnterExitExample)

## 2. Grouping items
![grouping items transition](./gifs/group_update.gif)

- [Live example](http://alex.holachek.com/react-animations-from-scratch/?selectedKind=Animation%20Examples&selectedStory=2.%20Object%20persistence&full=0&down=1&left=1&panelRight=0)
- [Code](./src/examples/GroupItemsExample)

## 3. Enter/update/exit
![enter/update/exit animation](./gifs/array_update.gif)

- [Live example](http://alex.holachek.com/react-animations-from-scratch/?selectedKind=Animation%20Examples&selectedStory=3.%20Enter%2C%20update%20and%20delete%20transitions&full=0&down=1&left=1&panelRight=0)
- [Code](./src/examples/ArrayUpdateExample)