luncheon / ripplet.js

Fully controllable vanilla-js material design ripple effect generator.
https://luncheon.github.io/ripplet.js/demo/
Do What The F*ck You Want To Public License
78 stars 7 forks source link

Option to set class for parent of ripple element #9

Closed AgentSmith0 closed 1 year ago

AgentSmith0 commented 1 year ago

It would be nice to have an option to set the class for the parent of the ripple effect, which can be set with the option className already. This would make styling much easier.

luncheon commented 1 year ago

ripplet() returns the container element of the generated ripple element. className can be set with the following code:

const rippleContainer = ripplet({ ... });
rippleContainer.className = "...";

But for what use cases?

AgentSmith0 commented 1 year ago

I use it to add a border radius to the ripple container element. Thank you for your help!