交互设计愿景#
本项目立项之初便设定了一条铁律:拒绝千篇一律的卡片堆叠,让每一次访问像翻开一本流动的技术杂志。
六大签名级交互规范#
- 开场序幕 (M1): 首次进入时的字重压印。
- 共享元素转场 (M2): 封面卡片通过 GSAP Flip 扩展为特稿头图。
- 智能上下文光标 (M6): 8px 悬浮圆点根据目标元素动态切换。
- 四时光照系统 (M10): 晨昼暮夜随本地时钟平滑过渡。
import { Flip } from 'gsap/Flip';
export function useFlipTransition() {
const captureState = (el: HTMLElement) => Flip.getState(el);
const animateToTarget = (state: Flip.FlipState, targetEl: HTMLElement) => {
return Flip.from(state, {
targets: targetEl,
duration: 0.8,
ease: 'power3.inOut'
});
};
return { captureState, animateToTarget };
}