Class AnimationTypes.TextEntranceAnimation
java.lang.Object
com.vaadin.flow.component.Component
de.mekaso.vaadin.addon.compani.animation.Animation
de.mekaso.vaadin.addon.compani.animation.AnimationTypes.TextAnimation
de.mekaso.vaadin.addon.compani.animation.AnimationTypes.TextEntranceAnimation
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,com.vaadin.flow.dom.DomEventListener,Serializable
- Enclosing class:
AnimationTypes
- Author:
- Meik Kaufmann Animate a text component when adding it to the UI.
- See Also:
-
Field Summary
Fields inherited from class de.mekaso.vaadin.addon.compani.animation.Animation
animatedComponent, currentEffect, domListenerRegistration, effect, STYLES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetect text animations.voidregister()Register the animation for a text component.withEffect(TextEntranceEffect effect) Set the effect for an animation.Methods inherited from class de.mekaso.vaadin.addon.compani.animation.AnimationTypes.TextAnimation
fetchCssClasses, start, startTextAnimation, withEffectMethods inherited from class de.mekaso.vaadin.addon.compani.animation.Animation
addAnimationEndListener, handleEvent, stopMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
TextEntranceAnimation
public TextEntranceAnimation()
-
-
Method Details
-
withEffect
Set the effect for an animation.- Parameters:
effect- the effect- Returns:
- an animation
-
register
public void register()Register the animation for a text component. -
isTextEffect
public boolean isTextEffect()Description copied from class:AnimationDetect text animations.- Overrides:
isTextEffectin classAnimationTypes.TextAnimation- Returns:
- true for text animations
-