Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在画布中的形状上应用 3 种类型的动画[出现、动画、消失]。我想指定所有 3 个动画发生的特定时间,例如:如果用户指定 5 分钟,那么在该持续时间内所有 3 个动画应该按顺序发生。所以请在代码中提供帮助。
在用户输入处理程序中使用以window.setTimeout在指定的暂停后启动动画。
window.setTimeout