Hey ! I just started my webflow website yesterday, and I already encounter a problem :')
I put a background video as an intro to my portfolio, but there is no sound and I don’t want my video to loop.
So I did a little bit of research to know what I am looking for. So I edited the code of my page but Nothing seems to work…
(for the sound I know about the google rules etc… But I made a button to go around this rule).
Here is my code if someone could Help me I would be so grateful :
<script>
Webflow.push(function() {
document.getElementById('#video').querySelector('#video').removeAttribute('loop');
});
$("1sound").onClick,function (){
if( $("1video").prop('muted') ) {
$("#video").prop('muted', false);
} else {
$("#video").prop('muted', true);
}
});
</script>
Here is my site Read-Only: LINK
(how to share your site Read-Only link)