commonMain.io.nacular.doodle.animation.transition.InstantTransition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of animation-js Show documentation
Show all versions of animation-js Show documentation
A pure Kotlin, UI framework for the Web
package io.nacular.doodle.animation.transition
import io.nacular.doodle.animation.Moment
import io.nacular.measured.units.Measure
import io.nacular.measured.units.Time
import io.nacular.measured.units.Time.Companion.milliseconds
import io.nacular.measured.units.Units
import io.nacular.measured.units.times
/**
* Created by Nicholas Eddy on 3/30/18.
*/
/**
* A transition that instantly jumps to the final value.
*/
public class InstantTransition(private val finalValue: Measure): FixedDuration(0 * milliseconds) {
override fun value (initial: Moment, timeOffset: Measure
© 2015 - 2025 Weber Informatics LLC | Privacy Policy