Add overlay to an element