xl vision
  • Component
  • React Hooks
  • Playground
  • Overview
  • Color
  • Getting Start
    • Installation
  • General
    • Icon
    • Button
  • Layout
    • Grid
  • Form
    • Input
    • InputNumber
    • Textarea
  • Navigation
    • Dropdown
    • Affix
    • BackTop
    • Anchor
  • Data Display
    • Tooltip
    • Popover
    • Avatar
  • Faceback
    • Popconfirm
    • Dialog
    • Message
    • Notication
  • Animation
    • Transition
    • TransitionGroup
    • CollapseTransition
    • Ripple
  • Styles
    • Theme
    • CssBaseline
  • Basic Component
    • BaseButton
    • Portal
    • Popper
    • Modal
    • ResizeObserver

Ripple

It is very convenient to realize the ripple animation effect when clicked.

Examples

click me
Basic

Put Ripple in the container where you want to use the ripple effect. With a certain style, you can easily achieve the ripple animation effect when clicked.

click me
Force the entrance animation to end and then trigger the exit animation

By setting leaveAfterEnter, you can wait until the end of the entering animation before triggering the exit animation.

It is used when we need to fully display the approach animation, such as the complete ripple effect in Button, even if we quickly click and cancel.

You can quickly click and compare with the above example to see how the animation changes.

Properties

PropertyDescriptionTypeDefaultRequire
transitionClassNameCustom animation transition class namestring | object-false
exitAfterEnterWhether to start the exit animation after the entry animation ends, instead of ending when the animation is canceledboolean-false

Methods

MethodDescription
startStart animation
stopStop animation
Examples
Basic
Force the entrance animation to end and then trigger the exit animation
Properties
Methods
Copyright © 2020-2021 Rhys Xia