I am trying to find a Javascript event that will be triggered when an element's Display is set to none. style="display: none;"
.
I have to use vanilla JS (cannot use jQuery) and, unfortunately, cannot implement Mutation Observer as a possible solution.
In other words, I am trying to find an event to use with Element.addEventListener
.
Is there any other event that gets triggered when an element is being hidden?