Jump to content
Search Community

Invalid property markers set to true Missing plugin? gsap.registerPlugin()

Charly test
Moderator Tag

Go to solution Solved by PointC,

Recommended Posts

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

Link to comment
Share on other sites

  • Solution

You're just missing the vars object. Please give this a try.

document.addEventListener("DOMContentLoaded", () => {
  gsap.to(".text", {
    scrollTrigger: {
      trigger: "wrapper",
      markers: true
    },
    x: 200
  });
});

Happy tweenig.

:)

 

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...