短评 · ·

X 归档 2022-09-17

1 条动态 · 图 0 · 视频 1
@jh3yy15:04原推文
Future CSS Tip! 🔮

Scroll-linked animation powered by CSS 🤯

header { view-timeline-name: --head; }
.avatar{
animation: size;
animation-timeline: --head;
animation-time-range: exit 0% 50%;
}
@ keyframes size {to{scale: 0.3;}}

See the changes? 🧐

Demo link/info below! 👇
未来 CSS 技巧!🔮

用 CSS 实现滚动关联动画 🤯

header { view-timeline-name: --head; }
.avatar{
animation: size;
animation-timeline: --head;
animation-time-range: exit 0% 50%;
}
@ keyframes size {to{scale: 0.3;}}

看到变化了吗?🧐

Demo 链接/详情在下方!👇