mozilla-b2g/gaia — pull request #25716 by kentaromiura (2014-11-01 16:05:44+00:00)
Title: Add a clear all notifications effect

bugzilla bug
https://bugzilla.mozilla.org/show_bug.cgi?id=1092536

I implement a simple slide to right animation,
I changed the ns_closeNotification in a backward compatible way, so that when no delay are passed it will just work as before (if you try to swipe for example the new effect doesn't collide).
On the other hand you can now pass a delay and a waitBeforeClosing parameter, and if you do, there will be a percentual TranslateX applied to each notification.

The waitBeforeClosing is needed to avoid the animation that will trigger when a single notification get removed.
Another solution would have been to start from the bottom, but that's just does not feel natural.