Happy to help! Here is less complex solution using invalidate. Instead of using another object, I am animating element directly. On resize, activeTween gets invalidated to record new values. I have left some comments for key parts but this is far less complex and better for performance because we are not creating new set tween on every frame.   See the Pen KrNPem?editors=0010 by Sahil89 (@Sahil89) on CodePen  
    • Like
    3