Modify to work on elements instead of window level