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.