Jump to content
Search Community

When using MottionPathPlugin I get an error

Ilya Markin test
Moderator Tag

Recommended Posts

Hi everyone!
I have a problem when working with the gsap plugin MottionPath. I deployed everything on local server and this is the error webpack gives when building a page

 

image.thumb.png.6bccbebbf8c6dd5a016402ee34190386.png

Here's my code. I made the text move on its own vector. What could be the error? I haven't found any obvious contradictions in my code that could cause it. Thank you!

gsap.timeline({ repeat: -1 }).to(chars, {
		duration: 15,
		motionPath: {
			path: '.hero-line-01',
			align: '.hero-line-01',
			alignOrigin: [0.5, 0.5],
			autoRotate: true,
		},
		ease: 'linear',
		stagger: {
			each: 0.1,
			repeat: -1,
			yoyo: false, // Движение в одну сторону
			from: 'start', // Начало с первой буквы
		},
		immediateRender: true,
	})

 

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...