Greetings Webflow Community,
I’m trying to figure out a way to close/stop a video from playing if the modal is closed because currently the audio still plays if a user closes the modal while video is playing. I’m pretty sure I’ll need some custom code, but not too great at javascript. I tried to go off an older post, but didn’t have much luck
Attached a screenshot of what I have so far using an HTML Embed
and maybe someone can point me in the right direction.Preview Link - https://preview.webflow.com/preview/winter-takeover?utm_source=winter-takeover&preview=93ba2dd6279b7b26933b1b28d60dcbb3
Would really appreciate anybody’s help.
Please and thanks in advance!