0
I have a div with display:None and this div has an audio, but if I use autoplay, even the hidden div, the audio is playing, I would like you to play the audio only when the div is appearing. Can you help me?
<div class="fig1"></div>
.fig1{display:none}
.evnt1{display:block}
<script>$('.fig1').click(function(){
$('.fig1').show('slow');});
</script>
It’s to stop playing when the div has finished appearing?
– guijob
is to play only when the div appears
– Wagner Flavia Macedo