chenglou / chenglou/react-motion

Removing styles after transition completes

Open
#293 9 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.