Sorry, but did you do anything yourself before asking this question?
Please try to do some research yourself. There are alot of examples on the internet which you can use. Also, try to play around with the things you know and learn, instead of starting a topic for each thing you want.

Ontopic: This effect is called depth-of-field. It's hard to do it yourself from scratch. Using an example is probably your best bet.