Recent Features
![Page Visibility API]()
Page Visibility API
One event that's always been lacking within the document is a signal for when the user is looking at a given tab, or another tab. When does the user switch off our site to look at something else? When do they come back?
![Write Better JavaScript with Promises]()
Write Better JavaScript with Promises
You've probably heard the talk around the water cooler about how promises are the future. All of the cool kids are using them, but you don't see what makes them so special. Can't you just use a callback? What's the big deal? In this article, we'll...
Incredible Demos
![Drag & Drop Elements to the Trash with MooTools 1.2]()
Drag & Drop Elements to the Trash with MooTools 1.2
Everyone loves dragging garbage files from their desktop into their trash can. There's a certain amount of irony in doing something on your computer that you also do in real life. It's also a quick way to get rid of things. That's...
![MooTools: Set Style Per Media]()
MooTools: Set Style Per Media
I'd bet one of the most used MooTools methods is the
setStyle()method, which allows you to set CSS style declarations for an element. One of the limitations of MooTools'setStyle()method is that it sets the specific style for all medias.




