[feat]: Move to keyframe
Open
Nobody has claimed this yet.
template: request
- Dominant language
- TypeScript
- Stars
- 29.1k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
A clear and concise description of what the feature is
import { Component, createRef } from 'react'
import { Controller, animated } from '@react-spring/web'
class AnimatedComponent extends Component {
isShowing = createRef(false)
animations = new Controller({ opacity: 0 })
render() {
return (
<>
<animated.div style={this.animations.springs}>I will fade</animated.div>
</>
)
}
}
if i want div to animate to 50% of the whole animation
i could just call some function like animation.moveTo(0.5) or animation.moveTo('50%')
Why should this feature be included?
A lot of animations will become handy
Please provide an example for how this would work
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Controller and animated usage shown in the issue, then inspect the existing animation API and related tests in the repository. Clarify the intended moveTo behavior, supported position format, and completion criteria before identifying the implementation and test locations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100