首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无效的属性ScrollTrigger Gsap Laravel

无效的属性ScrollTrigger Gsap Laravel
EN

Stack Overflow用户
提问于 2021-02-17 00:19:57
回答 1查看 407关注 0票数 1

安装Gsap后,我在laravel中遇到警告:“ScrollTrigger属性设置为{trigger:"js-title-animation2",start:"20px 80%",markers: true,toggleActions:"resart pause reverse none"}缺少插件? gsap.registerPlugin()”

file.blade.php

代码语言:javascript
复制
@section('scripts')
<script type="text/javascript" src="{{asset('js/newHome.js') }}"></script>
<script src=" {{asset('/js/scripts/gsap.min.js') }} "></script>
<script src="{{asset('/js/scripts/ScrollTrigger.min.js')}}"></script>

<script>
//    TweenMax.to('.js-title-animation', 1, {rotation: 360});
// gsap.registerPlugin(ScrollTrigger);
gsap.to('.js-title-animation', {duration: 3, text: '@lang('home.header-title-new-home')', ease: "none"});
// gsap.to('.js-title-animation2', {duration: 3, text: '@lang('home.header-subtitle-new-home')', ease: "none"});
gsap.to('.js-title-animation2', {ScrollTrigger: {
    trigger: 'js-title-animation2',
    start: "20px 80%",
    markers: true,
    toggleActions: "resart pause reverse none"
},
x: 200,
rotation: 360,
duration: 3
});

</script>
@endection
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-17 13:24:55

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66228200

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档