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?