Jump to content
Search Community

chattago2002

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by chattago2002

  1. Hi. Thanks for reply. Adding top:0; left:0 to .dot class helped me a bit but changing the my Codepen example, adding other DOM elements before, the problem persists. I didn't found where to read something about the positioning "system" of Gsap. If .contenitore has position:relative; and .dot has position:absolute; why is .dot is not positioned relatively .contenitore element?
  2. I'm trying to make an animation with "L" movement (and another as flipped "L"). Animation is ok but it should follow the emitter (in my code identified by the red and green squares) instead currently animation is at the right edge. In "createDot" function I changed the basic (from taken example) document.body.appendChild(dot); to document.getElementById('contenitore').appendChild(dot); What is going wrong? Where are my mistakes?
×
×
  • Create New...