(re)setting something on scroll-into-view

There is also this polyfill, which seems to work for the bare basics at least (I have not tested it at all thoroughly)