aLinarte1920
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by aLinarte1920
-
-
Hi everybody!
I have an animation defined to the following element, parentContainer:gsap.to(parentContainer.current, {
backgroundImage: url();
duration: 3,
scrollTrigger: {
trigger: parentContainer.current,
start: "center top",
markers: true,
scrub: true,
},
});
it doesn"t work if i do the following: backgroundImage: "url("./assets/background.jpg")"
but it works if i do this backgroundColor: "red",
backgroundImage expects a value from gsap.TweenValue, but I don't know how to pass it to it.
thank you very much in advance, greetings from nicaragua
How to change a backgroundColor to a backgroundImage with GSAP while scrolling?
in GSAP
Posted
Thanks it was that, although I had to add the absolute path of my image.
Cheers!