Timeline new 时间轴 web

    标本可交互,可以直接操作。

    Anatomy — every part, named解剖 —— 每个部件的名字

    1. 1 Connector连线 ::before

      The line that links events in order.

      把事件按顺序连起来的线。

      Prompt fragmentPrompt 片段

      a 2px connector line between nodes

      节点之间的 2px 连线

    2. 2 Node节点 state

      Filled when done, pulsing when current, hollow when upcoming.

      完成时填满,进行中呼吸,未开始空心。

      Prompt fragmentPrompt 片段

      nodes that are filled when done, pulse when current, and hollow when upcoming

      完成填满、当前呼吸、未开始空心的节点

    3. 3 Event事件 <li>

      Title and short detail for each moment.

      每个时间点的标题和简短说明。

      Prompt fragmentPrompt 片段

      an event title with a one-line detail

      事件标题加一行说明

    4. 4 Timestamp时间 <time>

      When it happened, aligned on the right.

      发生时间,右侧对齐。

      Prompt fragmentPrompt 片段

      right-aligned timestamps in one column

      右侧对齐成一列的时间

    Prompt — paste into your agentPrompt —— 直接粘贴给你的代理

    Build a vertical order-tracking timeline as an ordered list: each item has a round node, a title, a short detail and a time on the right; draw a 2px connector between nodes; finished items get filled green nodes with a check and a filled connector, the current item a blue pulsing node with aria-current="step", upcoming items are dimmed; animate the connector filling when the step advances; honour prefers-reduced-motion.

    用有序列表做一个纵向物流时间轴:每一项有圆形节点、标题、一行说明和右侧时间;节点之间画 2px 连线;已完成的节点填成绿色并带对勾,连线也填满;当前项用蓝色呼吸节点并加 aria-current="step";未开始的项变淡;推进时连线有填充动画;尊重 prefers-reduced-motion。

    Debug prompt — when it misbehaves调试 Prompt —— 当它不听话时

    Debug my timeline. Check that it is an ordered list so the sequence is announced; the connector starts and ends at node centres and does not extend past the last item; finished, current and upcoming states are distinguishable without colour alone (check mark, pulse, dimming); aria-current marks only the current step; times align in one column; and reduced motion stops the pulse. The symptom:

    调试我的时间轴。检查:是否用有序列表,让顺序能被读屏读出;连线是否从节点中心开始、在节点中心结束,最后一项后面不多出线;已完成、进行中、未开始三种状态是否不只靠颜色区分(对勾、呼吸、变淡);aria-current 是否只标在当前步骤上;时间是否对齐成一列;以及减少动态效果时是否停止呼吸动画。症状是:

    In code代码里叫什么

    Framework框架Symbol符号Note说明
    HTML <ol> with aria-current="step" an ordered list keeps the sequence meaningful用有序列表保留顺序的语义
    CSS ::before line + node pseudo-elements draw the connector and nodes without extra markup用伪元素画连线和节点,不加多余标签
    CSS transition: height fill the connector as progress moves进度推进时让连线逐渐填满

    See also相关词条

    我的参考集

    组合知名网站、UI 元素、视觉风格和平面设计案例,导出给 AI。

    你的下一份设计,从这里开始。

    在任意案例旁点击「加入参考」,就能把品牌、组件、风格和平面设计案例组合成一份 AI 设计说明。

    搜索参考库Search the library

    输入关键词,搜索所有参考。