【问题标题】:How to make our animation not to carry out at the beginning, only after clicking? [closed]如何让我们的动画一开始不执行,点击后才执行? [关闭]
【发布时间】:2020-04-25 11:47:37
【问题描述】:

我希望在单击菜单按钮后制作该动画。我试过iffunction,但没有成功。 Click here for code

【问题讨论】:

  • 您需要您的代码成为问题的一部分。见how to ask

标签: javascript html css gsap


【解决方案1】:

像这样?

您需要将menuAnim 代码移动到click 侦听器中。

https://codepen.io/nisharg/pen/abvJxKL

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-09-10
    • 1970-01-01
    • 2013-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多