Material “ink ripple” interaction effect.
Ripples come in two variants. Use ripple for bounded ripple effects which
work best when used for contained surfaces, and unboundedRipple for unbounded
ripple effects which work best with icons.
import Material.Ripple exposing (ripple, rippleConfig)
main =
Html.div []
[ text "Click me!"
, boundedRipple rippleConfig
]Default ripple configuration
Ripple configuration
Html.span []
[ unboundedRipple rippleConfig
, text "🙌"
]Unbounded ripple variant
If you want to set the ripple effect to either primary or secondary color, set its color configuration field to a RippleColor.
ripple { rippleConfig | color = Ripple.PrimaryColor }Ripple color
Bounded ripple variant