Create a drag-select animation?

Hi all, I am trying to create a drag-select animation like in the following gif. do you have any hint, really struggling here.

Figma