fadeIn

fun fadeIn(steps: Int = 20, timeMs: Long = 2000, glowOnFinalStep: Boolean = true): Modifier

Provides a fade in effect for the tile that has this modifier. The effect will start when the tile is added to a tile grid.

Parameters

steps

the number of frames for the fade effect

timeMs

the time (in milliseconds) the effect takes

glowOnFinalStep

tells whether the tile will be given the Glow modifier when the effect finishes.

Sources

(source)
Link copied to clipboard