I am using the latest Foundation 6.4.x with the Light YouTube Embeds script by @labnol.
I use this code in a standard html page:
<button data-toggle="animatedModalVideoTest1" class="hollow button expanded alert" href="##">View video</button>
And the corresponding Foundation reveal modal is this part:
<div class="reveal" id="animatedModalVideoTest1" data-reveal data-close-on-click="true" data-animation-in="fade-in" data-animation-out="fade-out">
<button class="button float-right" data-close type="button">
<span aria-hidden="true">×</span> Close modal window
</button>
<div class="responsive-embed">
<div class="youtube-player" data-id="xecEV4dSAXE"></div>
</div>
When I click on "close window", the video keeps playing in the background. Any js pro who can suggest an idea how to stop this would be much appreciated :-)
PS: The video linked here is safe for work (John Oliver)