Ripple
Vue Bootstrap 5 Ripple
The ripple directive provides a radial action in the form of a visual ripple expanding outward from the user’s touch. Ripple is a visual form of feedback for touch events providing users a clear signal that an element is being touched.
Note: Read the API tab to find all available options and advanced customization
Basic example
By default, ripple is added to every MDBBtn
component and it does not require any
additional classes or attributes.
A directive can be added to any element. Thanks to this you can use it to apply the ripple
effect to the given clickable element - for example to the image wrapped in
<a>
element.
Colors
By using color
key you can change the color of the ripple.
You can use the colors from basic MDB palette, for example
color: "primary"
or color: "danger"
.
You can also use any CSS color name:
Or simply use the hex color code:
Duration
By using duration
key you can modify the duration of the ripple (in
milliseconds).
Centered
If you set centered
key to true
, the ripple will always start in the
middle of an element.
Unbound
If you set unbound
key to true
, the ripple won't be bonded to the
given element and it will exceed its borders.
Radius
By using radius
key you can modify the radius of the ripple. The numeric value is
expressed in pixels, for example: radius: 10
.
Examples
You can apply the ripple directive to any element. Options can be passed as an object, for
example:
v-mdb-ripple="{ color: 'secondary', centered: true }"
.

Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Button
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Button
Card title
Some quick example text to build on the card title and make up the bulk of the card's content.
ButtonRipple - API
Import
Properties
Property | Type | Default | Description |
---|---|---|---|
centered
|
Boolean | false |
Centers position of the ripple. |
color
|
String | "" |
Changes color of the ripple. |
duration
|
Number | 500 |
Sets duration of the animation in milliseconds. |
radius
|
Number | diameter / 2 |
Sets radius value in px. |
unbound
|
Boolean | false |
Sets whether the effect should go beyond the wrapper's boundaries. |