How do I make this effect?

This may be possible with Repositioning tools extension by @Mohamed_Tamer(see the video in the first post of the extension topic), Dynamic component extension(which you are already using) and some logic.