Moving line

Hello :beam:

I was wondering how i make a line go around a shape, like kinda draw the shape, do u know what i mean? i cant find a example but ive seen it somewhere

If you could help me i will be very grateful

Thanks

Jason