[feat]: skipAnimation at the component level
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
从 useSpring 入口开始,跟踪现有全局 skipAnimation 设置的应用方式。定义组件级别的 skipAnimation: false 如何与全局设置交互,然后添加测试覆盖,证明减少动效的用户仍会跳过其他动画,同时此组件动画会继续执行。
由索引模型根据 Issue 内容生成。
描述
A clear and concise description of what the feature is
skipAnimation currently exists at the Global level which is very useful when used with useReducedMotion to be a good a11y citizen. But what if there are animations we don't want skipped regardless of user preference? Currently we can only block all animations or allow all and selectively block a few. This feature would allow one to maintain skipping animations for folks with reduced motion turned on but allow you to selectively allow certain animations to proceed.
Why should this feature be included?
The alternative is to selectively block animations. In a large codebase where many animations can exist this is not only cumbersome but also exposes the developers to shipping a poor a11y experience by forgetting to check reduced motion setting for new animations added.
Please provide an example for how this would work
// when the property exists and it's set to false the animation will not be skipped regardless of the global setting.
useSpring({ skipAnimation: false });
- 主要语言
- TypeScript
- 星标
- 29.2k
- 派生
- 1.2k
- 平均合并
- 16 小时 25 分钟
- 30 天内合并 PR
- 48
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pmndrs/react-spring 的其他 Issue
-
area: core kind: request
难度 4/5 3-5 天 新手友好度 55/100
pmndrs/react-spring#2542 ·
维护者通常 1 天内回复
-
area: typescript kind: request release: major
难度 4/5 3-5 天 新手友好度 52/100
pmndrs/react-spring#2541 · 1 条评论 ·
维护者通常 1 天内回复
-
animated() throws 'cannot add a new property' on non-extensible React Native host components (Hermes)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
pmndrs/react-spring#2533 ·
维护者通常 1 天内回复
-
release: major type: RFC
难度 5/5 一周以上 新手友好度 35/100
pmndrs/react-spring#2522 · 1 条评论 ·
维护者通常 1 天内回复
-
[bug]: Tab crash with skipAnimation and loop可能已有人在做 @mrityunjay-pandey 于 6 天前认领。 未关闭area: core kind: bug
难度 3/5 1-2 天 新手友好度 52/100
pmndrs/react-spring#2409 ·
维护者通常 1 天内回复
查看 pmndrs/react-spring 的全部 Issue
相似的 Issue
-
check:failed streams:edit
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
package:ios ships XCFrameworks with absolute symlinks, which SwiftPM refuses to extract可能已有人在做 @cusnirvladislav 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
callstackincubator/rock#740 ·
-
S: triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
area:workflow bug ready-for-human
难度 1/5 1 小时以内 新手友好度 78/100
fil-donadoni/tolaria#6108 ·
维护者通常 1 天内回复