Jump to content
Search Community

Nicolò

Members
  • Posts

    4
  • Joined

  • Last visited

Nicolò's Achievements

1

Reputation

  1. Thank you very much. The post you gave me seems to be a solution to my problem, i will give it a try!
  2. ok, i was missing the `position: absolute`. Is there any way to get around the absolute positioning? Because it really mess things up since the div contains an image and when i give it position: absolute it stretch all the height...
  3. Thank you for answering. No i'm not switching screen orientation neither during nor after the animation. What you wrote actually positions the element to the center, but what i'm looking for is having the elements going to center with an animation.
  4. Hi everybody, I came across a problem of moving each div of my page with a tween. Looking on this forum i found lot of different solutions, but one works as expected. VIewing the page on mobile, the tween moves the div to the center, but using landscape or laptop seem to move it toward lower right corner. The code i'm using is the following: var t=new TimelineMax() t.to(divId, 0.3, {x: window.innerWidth/2, xPercent: -50, y: window.innerHeight/2, yPercent: -50}) .play() Any idea on what the problem is?
×
×
  • Create New...