Initially working example.
Fully working example.
Working for multiple elements.