com.vaadin.client.

Class AnimationUtil

  • public class AnimationUtil
    extends Object

    Utility methods for working with CSS transitions and animations.

    Since:

    7.3

    Author:

    Vaadin Ltd

    • Constructor Detail

      • AnimationUtil

        public AnimationUtil()
    • Method Detail

      • setAnimationDuration

        public static void setAnimationDuration​(com.google.gwt.dom.client.Element elem,
                                                String duration)

        For internal use only. May be removed or replaced in the future. Set the animation-duration CSS property.

        Parameters:

        elem - the element whose animation-duration to set

        duration - the duration as a valid CSS value

      • setAnimationDelay

        public static void setAnimationDelay​(com.google.gwt.dom.client.Element elem,
                                             String delay)

        For internal use only. May be removed or replaced in the future. Set the animation-delay CSS property.

        Parameters:

        elem - the element whose animation-delay to set

        delay - the delay as a valid CSS value

      • addAnimationEndListener

        public static com.google.gwt.core.client.JavaScriptObject addAnimationEndListener​(com.google.gwt.dom.client.Element elem,
                                                                                          AnimationUtil.AnimationEndListener listener)

        For internal use only. May be removed or replaced in the future.

      • removeAnimationEndListener

        public static void removeAnimationEndListener​(com.google.gwt.dom.client.Element elem,
                                                      com.google.gwt.core.client.JavaScriptObject listener)

        For internal use only. May be removed or replaced in the future.

      • removeAnimationEndListener

        public static boolean removeAnimationEndListener​(com.google.gwt.dom.client.Element elem,
                                                         AnimationUtil.AnimationEndListener animationEndListener)

        Removes the given animation listener.

        Parameters:

        elem - the element which has the listener

        animationEndListener - the listener to remove

        Returns:

        true if the listener was removed, false if the listener was not registered to the given element

      • removeAllAnimationEndListeners

        public static void removeAllAnimationEndListeners​(com.google.gwt.dom.client.Element elem)

        For internal use only. May be removed or replaced in the future.

      • getAnimationName

        public static String getAnimationName​(com.google.gwt.dom.client.NativeEvent event)

        For internal use only. May be removed or replaced in the future.

      • getAnimationName

        public static String getAnimationName​(ComputedStyle cstyle)

        For internal use only. May be removed or replaced in the future.