# Hide label after 2 seconds

**URL:** <http://forum.squareline.io/t/hide-label-after-2-seconds/3528>\
**Category:** How to\
**Tags:** lvgl\
**Created:** [July 9, 2024, 4:35pm UTC](http://forum.squareline.io/t/hide-label-after-2-seconds/3528 "2024-07-09T16:35:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yolpoo](http://forum.squareline.io/letter_avatar_proxy/v4/letter/y/5f9b8f/32.png) [@Yolpoo](http://forum.squareline.io/u/Yolpoo)\
**Post date:** [July 9, 2024, 4:35pm UTC](http://forum.squareline.io/t/hide-label-after-2-seconds/3528/1 "2024-07-09T16:35:39Z")

</div>

### What do you want to achieve?

I want to create an even when click on button that display label for 2 seconds and after that hide it.

Until now I do that using code

> lv\_timer\_t \* t = lv\_timer\_create(toggle\_label\_visibility, 2000, a\_label);  
> v\_timer\_set\_repeat\_count(t, 1);

And in toggle\_label\_visibility I hide the lable.  
How can I do that easily on squareline?

Others  
\*\*SquareLine Studio version: \*\*  
Newest

\*\*Operating system: \*\*  
Windows 11

\*\*Target hardware: \*  
esp32-2432s028

---

<div class="post-metadata">

**Author:** ![Sofi](http://forum.squareline.io/user_avatar/forum.squareline.io/sofi/32/1368_2.png) [@Sofi](http://forum.squareline.io/u/Sofi)\
**Post date:** [July 10, 2024, 7:57am UTC](http://forum.squareline.io/t/hide-label-after-2-seconds/3528/2 "2024-07-10T07:57:26Z")

</div>

You can create an opacity animation, as the editor has no delay option, please see screenshot below:

 ![image (2)](http://forum.squareline.io/uploads/default/original/2X/1/18eb6716346b99e02a21e83b06fac241b5bb8d74.png)

---

<div class="post-metadata">

**Author:** ![Yolpoo](http://forum.squareline.io/letter_avatar_proxy/v4/letter/y/5f9b8f/32.png) [@Yolpoo](http://forum.squareline.io/u/Yolpoo)\
**Post date:** [July 10, 2024, 4:32pm UTC](http://forum.squareline.io/t/hide-label-after-2-seconds/3528/3 "2024-07-10T16:32:52Z")

</div>

I think delay need to be 2000 and time need to be 0
