Show a group element while visitor is typing

Hi,
Most of the time I find solution in the forum. I try to avoid posting the same question but it’s been 2 hours and Im so confused :frowning: . I’m trying to show this “rekomendasi” bubble (#group1) toexpand and bounce when visitor is typing. I have animated the bubble.

Thanks in advance


export function input1_keyPress(event) {
if ($w(‘#input1’).onKeyPress()()) {
$w(‘#group1’).expand()
} else {
$w(‘#group1’).collapse()

} 

}

Haydi, try using a counter variable declared at the top of the page and the remainder function. It looks like you want to alternate showing group1 with each keystroke. If not, you could change the divisor.