How to stop jealousy!?

How do you stop being jealous or stop jealousy from taking over?

Because when I become jealous I tend to start hating them but then I get over it.