muicss / mui

Lightweight CSS framework
https://www.muicss.com
Other
4.51k stars 425 forks source link

How to trigger ripple efect with javascript #68

Open sdkcarlos opened 8 years ago

sdkcarlos commented 8 years ago

Is there a way to trigger a ripple effect adding a class to any element ? Or how to trigger the ripple effect using javascript? This feature would be nice, if there isn't.

amorey commented 8 years ago

Currently there isn't but this sounds like a nice feature. Would you be interested in working on it? The ripple code is self-contained so it shouldn't be too difficult to generalize it: https://github.com/muicss/mui/blob/master/src/js/ripple.js