[FEATURE REQUEST] Shared element transitions support
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
未指定任何 repository 文件、测试或入口点。首先阅读链接的 shared-element-transitions 开发者指南,并检查当前的 router transition model;完成的标准是定义出一种受浏览器支持的方案,用于在 Solid SPA 中实现 shared element transitions。
由索引模型根据 Issue 内容生成。
描述
This is likely out of the scope for the time being, especially since the feature is still locked behind the chrome://flags/#document-transition flag in chrome canary.
Some resources on the incoming API in question:
- https://github.com/WICG/shared-element-transitions
- https://github.com/WICG/shared-element-transitions/blob/main/developer-guide.md
- https://www.youtube.com/watch?v=JCJUPJ_zDQ4
The transitions function by rendering the soon to be page as a separate DOM structure (kinda similar to solid's Portal) then taking a screenshot of both the previous element and the new element. These screenshots get animated in some form before the new page's contents become interactable again.
It would be really cool to see this feature power solid SPAs as soon as browsers begin to support it.
High level, this could look like:
const App = () => {
return (
<div style={{width: "100vw", height: "100vh"}}>
<NavBar />
<Routes>
<Route path="/" element={<Dashboard/>} />
<Route path="/content/:id" element={<Content/>} transition={true} />
</Routes>
</div>
);
};
it's assumed the user has configured any required css to customize the transition.
- 主要语言
- TypeScript
- 星标
- 1.3k
- 派生
- 180
- 平均合并
- 1 天 11 分钟
- 30 天内合并 PR
- 34
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
solidjs/solid-router 的其他 Issue
-
bug
难度 4/5 3-5 天 新手友好度 52/100
solidjs/solid-router#643 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 50/100
solidjs/solid-router#625 · 1 条评论 ·
维护者通常 1 天内回复
-
<A> costs ~6us of server CPU per instance during SSR (20x a plain <a>), mostly mergeProps/splitProps未关闭
难度 4/5 3-5 天 新手友好度 55/100
solidjs/solid-router#583 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
solidjs/solid-router#569 · 3 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 38/100
solidjs/solid-router#518 · 2 条评论 ·
维护者通常 1 天内回复
查看 solidjs/solid-router 的全部 Issue
相似的 Issue
-
area/frontend good first issue kind/cooldown
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
voidzero-dev/oxc-angular-compiler#511 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
langchain-ai/deepagentsjs#898 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
anomalyco/models.dev#8509 · 2 条评论 ·
维护者通常 1 天内回复
-
bug documentation P2 UI/UX
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复