Demo showing the functionality of detecting an element in viewport