RIPPLE_OPTIONS

const
Interaction & Animation

Default configuration object for the v-ripple directive — defines the CSS class, centering mode, shape, animation duration, easing function, opacity, and initial position of each ripple element.

TypeScript

Définition

La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Entrées

Valeurs

Toutes les entrées de cette constante. Cliquez sur une valeur pour la copier dans le presse-papiers.

class: 'origam-ripple__element'
CSS class applied to the ripple element.
center: false
When true the ripple originates from the element centre, not the click point.
circle: false
When true the ripple is forced to a circular shape.
duration: 1000
Total ripple animation duration in milliseconds.
easing: 'ease-out'
CSS easing function applied to the ripple expand animation.
opacity: 0.3
Peak opacity of the ripple wave at the centre of the animation.
x: 0
Initial horizontal offset of the ripple origin in pixels.
y: 0
Initial vertical offset of the ripple origin in pixels.

Écosystème

Utilisé par

Composables et composants qui consomment cette constante.

Usage

Exemples

Extraits de code prêts à coller utilisant cette constante.

Merging custom options with defaults

typescript