All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.uikit.util.Animation.kt Maven / Gradle / Ivy

There is a newer version: 3.5.7-pre.11-kotlin-1.5.21
Show newest version
package uikit.util

import kotlin.js.Promise

external interface Transition {
    var start: Transition

    fun stop(element: Any /* String | Array | Element */): Promise
    fun cancel(element: Any /* String | Array | Element */)
    fun inProgress(element: Any /* String | Array | Element */): Boolean
}

external interface Animation {
    var `in`: AnimateFun

    fun out(
        element: Any /* String | Array | Element */,
        animation: Animation? = definedExternally,
        duration: Number? = definedExternally,
        origin: dynamic = definedExternally): AnimateFun

    fun inProgress(element: Any /* String | Array | Element */): Boolean
    fun cancel(element: Any /* String | Array | Element */)
}

typealias TransitionFun = (
    element: Any /* String | Array | Element */,
    props: dynamic,
    duration: Number?,
    timing: String?) -> Promise

typealias AnimateFun = (
    element: Any /* String | Array | Element */,
    animation: Animation?,
    duration: Number?,
    origin: dynamic,
    out: dynamic) -> Promise




© 2015 - 2025 Weber Informatics LLC | Privacy Policy