He's doing a trill. Basically all you do is pick a note, hammer on to a higher note, and then pull off back down to the original note. You do this a bunch of times and you're doing a trill.

It probably "fades" away because your fingers aren't strong enough to get a consistent volume.

Try doing exercises that involve a lot of hammer ons and pull offs.