Here's an example: ```private val example = transi...
# compose
d
Here's an example:
Copy code
private val example = transitionDefinition {
    state(ButtonState.Pressed) {
        this[alpha] = 0f
        this[radius] = 200f
        this[background] = Color(alpha = 255, red = 255, green = 0, blue = 0)
    }
    state(ButtonState.Released) {
        this[alpha] = 0f
        this[radius] = 60f
        this[background] = Color(alpha = 255, red = 0, green = 255, blue = 0)
    }

    transition(fromState = ButtonState.Released, toState = ButtonState.Pressed) {
        background using tween {
            easing = LinearEasing
            duration = 75 // TODO: support time unit
        }
        alpha using keyframes {
            duration = 375
            0f at 0 // ms  // Optional
            0.4f at 75 // ms
            0.4f at 225 // ms
            0f at 375 // ms  // Optional
        }
        radius using physics {
            dampingRatio = 1.0f
        }
        interruptionHandling = InterruptionHandling.UNINTERRUPTIBLE
    }
👍 3