After adding the ripple effect, a water ripple effect that spreads outward will be generated when the element is clicked.
Simply add the class .mdui-ripple to make it take effect.
Simply add the class .mdui-ripple to an element to give it a ripple effect when clicked.
<button class="mdui-btn mdui-ripple">button</button>
<button class="mdui-btn mdui-ripple mdui-color-blue">button</button>If you want to use the ripple effect on tags that cannot contain child elements, such as img or input, you need to add .mdui-ripple to their parent element.
<div class="mdui-ripple">
<img class="mdui-img-fluid" data-src="holder.js/100px250"/>
</div>The default ripple is for dark backgrounds. When the background color is specified via .mdui-color-[color], or when the page is in a dark theme, the ripple defaults to white.
The ripple color can be specified by adding the class .mdui-ripple-[color].
<button class="mdui-btn mdui-ripple mdui-ripple-black mdui-color-yellow">black</button>
<button class="mdui-btn mdui-ripple mdui-ripple-white mdui-color-blue">white</button>
<button class="mdui-btn mdui-ripple mdui-ripple-red">red</button>
<button class="mdui-btn mdui-ripple mdui-ripple-blue">blue</button>