Charly
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Charly
-
-
I'm struggling with this error, never happened to me before even after using ScrollTrigger on multiple projects.
I'm getting an error each time I want to use the "markers" or "start" parameter. My set-up is pretty simple though, anything I missed ?
Invalid property markers set to true Missing plugin? gsap.registerPlugin()"
import { gsap } from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; gsap.registerPlugin(ScrollTrigger); document.addEventListener('DOMContentLoaded', () => { gsap.to('.fade-up', { scrollTrigger: '.key-figures', y: 0, opacity: 1, markers: true, }); });
I created a separated copePen below just to try it out on a clean base but the result is the same...
Thank you for your support.
See the Pen LYeooKg by _cbernard (@_cbernard) on CodePen
-
On 11/18/2019 at 12:55 AM, OSUblake said:
It looks like you can configure nuxt to use es-modules.
https://nuxtjs.org/api/configuration-build/#transpile
Just tested, and this seems to work for all the files.
build: { transpile: [ "gsap" ] }
Thank you so much for this, you made my day !
Invalid property markers set to true Missing plugin? gsap.registerPlugin()
in GSAP
Posted
I feel really stupid now, thank you for your help @PointC