我是 drupal 和 GSAP 的新手,我在我的项目中使用 GSAP,其中我导入了 GSAP
从'gsap'导入{gsap};
但是在控制台中我得到了 Uncaught ReferenceError: require is not Defined 的提示。
在 Drupal 中,您可以在 GUI 中或使用 Composer 包管理器安装模块。
我相信您可以使用的一个模块是:https://www.drupal.org/project/gsap