chenglou / chenglou/react-motion
Removing styles after transition completes
- Dominant language
- JavaScript
- Stars
- 21.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
I'm using react motion for view transitions and I'm running into problems where the styling needed for my transitions (a mix of transform and opacity) interferes with my child component styling and after the transitions there's really no use for the transitions styles anyway, so I would like to remove them after the animation has completed.
Is there a good pattern for that currently? Something simmilar to `[clearprops](http://greensock.com/docs/#/HTML5/GSAP/Plugins/CSSPlugin/)` in GSAP would be ideal. Is it possible?
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named. Start by tracing how React Motion applies transform and opacity during view transitions and where completion is exposed; done means a documented pattern or API removes those transition styles after animation without interfering with child component styling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100