Skip to content

Instantly share code, notes, and snippets.

View ngotchac's full-sized avatar

Nicolas Gotchac ngotchac

  • Moonce
  • Berlin, Germany
View GitHub Profile
@jasonfarrell
jasonfarrell / usage.js
Last active February 23, 2021 22:15
Checks if a DOM element is visible. Takes into consideration its parents and overflow.
var my_element = document.getElementById('my-element');
//-- Returns true/false
my_element.isVisible(my_element);