1.0.1 • Published 5 years ago
material-ui-fast-ripple v1.0.1
material-ui-fast-ripple
Patches @material-ui/core/ButtonBase
to speed up the animation on ripples.
To use, simply run this before importing any @material-ui
packages, or anything that uses it.
import { patch } from 'material-ui-fast-ripple';
patch();
If you want to set custom speeds, you can pass a options paramater
import { patch } from 'material-ui-fast-ripple';
patch({
DURATION: 550,
DELAY_RIPPLE: 80,
});
Warning: Running patch
is a destructive action since it replaces the TouchRipple module,
but this should be safe since it's api is the same.