Everyone goes through a phase of negativity at some point in life, and this happens when people are experiencing some sort of turmoil around them and are constantly experiencing anxiety, depression or anger. These conditions generate negativity in people. In a negative state, people entangle themselves so much that they do not find any way to get out, due to which their life becomes monotonous, there is no joy in their life, they always feel sad.
Whenever such a situation arises and disturbs the mind, establish an internal dialogue with yourself and check to what extent which thought is troubling you the most. While doing it on yourself, understanding it deeply, slowly break the chain of that thought and try to overcome it by understanding the feelings. You will see that after some time your negativity will automatically end and happiness will come again in your life.