Apply animation in tap event while changing the value of visibility

animation

#1

Hi All,

while the function “onLabel” executing I would like to apply some animations.
(or)
While label displaying it should display after some animation.

Example:
XML :

<Label tap="onLabel" />
<Label id="label" visiblity="collapse" text="I wanna display after some dancing" />

JS

var label = page.getViewById("label");
exports.onLabel = function() {
    label.visibility = "visible"
}

Thanks.


#2

Edited the question to improve readability.

What have you attempted so far?

Did you go through

https://docs.nativescript.org/cookbook/ui/animation

or

https://docs.nativescript.org/ui/animation-css.html ?