Stick And Reveal
data class StickAndReveal(val cover: String? = null, val coverStickingDirection: TransitionDirection = TransitionDirection.TOP_TO_BOTTOM, val coverStickingDelay: Long = 80, val delayBeforeReveal: Long = 1000, val revealingDirection: TransitionDirection = TransitionDirection.BOTTOM_TO_TOP, val revealingDelay: Long = 70, val onComplete: () -> Unit = {}) : DisplayStyle(source)
A combined display style where a text cover sticks for a while before revealing the text.
Constructors
Link copied to clipboard
constructor(cover: String? = null, coverStickingDirection: TransitionDirection = TransitionDirection.TOP_TO_BOTTOM, coverStickingDelay: Long = 80, delayBeforeReveal: Long = 1000, revealingDirection: TransitionDirection = TransitionDirection.BOTTOM_TO_TOP, revealingDelay: Long = 70, onComplete: () -> Unit = {})
Properties
Link copied to clipboard
Delay in milliseconds before the cover starts to stick.
Link copied to clipboard
Direction in which the cover sticks before revealing.
Link copied to clipboard
Delay before revealing the main text after sticking.
Link copied to clipboard
Callback invoked when the stick and reveal animation completes.
Link copied to clipboard
Delay in milliseconds between each revealing step.
Link copied to clipboard
The direction in which the text reveals.