So Lucky

I can’t believe I happened to  have my camera on me when this little hummingbird flew by and landed in this tree! The colors of his feathers: pink, purple, green, are just amazing! Unfortunately I wasn’t able to get a photo of him in flight, my camera wouldn’t focus on him! Any tips on how to clearly capture such a small, speedy object in motion?