Page 1 of 1

Youtube lightbox thumbnail glitches when animated

Posted: Sat Jun 07, 2025 6:50 am
by GNP
Hi,

has anyone tried inserting a YouTube media, turn on the Lightbox feature (which then requires an IMG thumbnail), then tried to animate it (with basic Events or Animation motions)?

The thumbnail no longer works once an attempt at animating it, is done.

Could someone please confirm?

Using the latest version of WYSIWYG v20.2.0.

Thanks!

Re: Youtube lightbox thumbnail glitches when animated

Posted: Sat Jun 07, 2025 7:34 am
by BaconFries
The thumbnail no longer works once an attempt at animating it, is done.
This is because the event (animation) breaks the original onclick that was used to fire/open the lightbox. To resolve see the following Form elements or links no longer works with events

Re: Youtube lightbox thumbnail glitches when animated

Posted: Sat Jun 07, 2025 11:32 am
by GNP
Thanks. I looked up the link you posted, and it was helpful. However, I'm not sure where to:

"1) Add the same event again and select action -> run javascript.
2) In the JavaScript field enter:

Code: Select all

return true;"

where do I go for "action>run javascript"?

The "on" menu is now only reduced to a handful of options, and for the "action" menu, there's "add animation (javascript)", but there's no field to enter anything when I click it.