Return to Snippet

Revision: 31019
at August 27, 2010 09:36 by iloveitaly


Initial Code
Element.implement({
 	isFullyVisible: function() {
		if(this.isVisible()) {
			var coord = this.getCoordinates(),
				winScroll = window.getScroll();
			
			return winScroll.y <= coord.top;
		} else {
			return false;
		}
	}
});

Initial URL
http://stackoverflow.com/questions/1056357/best-way-to-find-if-a-dom-object-is-visible-or-not-using-mootools/3568770#3568770

Initial Description

                                

Initial Title
Check if DOM Element is Fully Visible

Initial Tags
DOM

Initial Language
JavaScript