main.uikit.util.Animation.kt Maven / Gradle / Ivy
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