Make an object´s visibility hidden on click

59 views
Skip to first unread message

juampi...@gmail.com

unread,
Jun 28, 2018, 2:09:59 PM6/28/18
to Google Web Designer beta
Hi there!

I´m trying to make an ad in which, when you click one of the objects in it with your touchpad, it disappears (the object). So far, I´ve pasted an object, placed a pulsation area on top of it and, finally, created an event to make the object disappear by using "visibility: hidden", but it isn´t working.

Could anybody help me out?

Kent

unread,
Jun 28, 2018, 2:23:58 PM6/28/18
to Google Web Designer beta
You can drag a TapArea element from the Components panel onto the stage, resize to fit over your object and add this Event to it:

Target: gwd-taparea_1
Event: Tap Area > Touch/Click
Action: CSS > Set styles
Receiver: select your object to disappear
Configuration: +Add property > visibility:hidden
OK

That one event should do it, remove the other event that didn't work.

Hope that helps,

Kent
Google Web Designer team
Reply all
Reply to author
Forward
0 new messages