size_x = transform.position[0]*2;
size_y = transform.position[1];
x_offset = effect("Offset")("Shift Center To")[0]+(time*(size_x/thisComp.duration));
if(time < (thisComp.duration/2)){
y_offset = ease(time, 0, thisComp.duration/2, size_y, size_y*2);
} else {
y_offset = ease(time, thisComp.duration/2, thisComp.duration, size_y*2, size_y);
}
[x_offset, y_offset];
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter