Jump to content
Search Community

aLinarte1920

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by aLinarte1920

  1. 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
×
×
  • Create New...