Hi there!
I wanted to modify the 3D effect to pivot around the center of the image.
I’ve modified it a bit to include a scale as well as some modifications to the yDelta.
You can replace the existing transition blocks with the one below:
Tell me what you think…
local scaleDelta = 1.15; local yDelta = halfW \* 0.6; transition.to( a.path, { x1=halfW, y1=-yDelta, x4=-halfW, y4=yDelta, x2=halfW, y2=yDelta, x3=-halfW, y3=-yDelta, time=1500, delay=1000, transition=easing.inExpo } ); transition.to( a, { xScale=scaleDelta, yScale=scaleDelta, time=1500, delay=1000, transition=easing.inExpo } ); transition.from( b.path, { x1=halfW, y1=yDelta, x4=-halfW, y4=-yDelta, x2=halfW, y2=-yDelta, x3=-halfW, y3=yDelta, time=1500, delay=2500, transition=easing.outExpo } ) transition.from( b, { xScale=scaleDelta, yScale=scaleDelta, time=1500, delay=2500, transition=easing.outExpo } );