How do I make my Crosshair Dynamic like COD MW 2020?

I have made a Dynamic Crosshair which expands or contracts depending on the movement. So I was wondering how do I add a sway to the Crosshair when I move my character. Any help will be Appreciated. Thanks

I recommend checking out over-riding the onPaint function in widgets. its capable of creating a number of more dynamic affects, one of which is drawing lines. I have a tutorial that introduces the concept in general:

conceptually, you would have a center point that you base the line positions (I would use screenspace vectors for up/down/left/right) on and therefor you can have movement sway or move that center point, and the crosshairs would move around as well.

this would also allow for the extension that aim can visually grow better or worse by how tight the crosshairs are.