Page MenuHomePhabricator

[e.cash] Add animation package and reusable settings
ClosedPublic

Authored by johnkuney on Jul 10 2023, 16:27.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Commits
rABC88279535d814: [e.cash] Add animation package and reusable settings
Summary

Need some nice animations on the page. Adding framer motion package which is a popular tool for creating animations
Wrote a script that can return the animation settings object based on specified parameters
Put it in the components directory, but not sure this is best as its not really a component, but didnt really fit in data either. Open to thoughts there
Added the animations to a few places on the homepage so it can be seen in action

Test Plan

npm run test
preview the site and check the homepage animations

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

@bot preview-e.cash

web/e.cash/components/framer-motion/index.js
6–9 ↗(On Diff #41357)

Put it in the components directory, but not sure this is best as its not really a component, but didnt really fit in data either. Open to thoughts there

any reason it can't live in styles/ ?

This revision now requires changes to proceed.Jul 10 2023, 21:07

move it to styles, edit comment

@bot preview-e.cash

web/e.cash/styles/framer-motion/index.js
7 ↗(On Diff #41368)
This revision is now accepted and ready to land.Jul 10 2023, 21:56