Skip to content

Instantly share code, notes, and snippets.

@sunilw
Created May 9, 2016 02:29
Show Gist options
  • Save sunilw/bcba190563402c9f4c6ea3fbededb3ea to your computer and use it in GitHub Desktop.
Save sunilw/bcba190563402c9f4c6ea3fbededb3ea to your computer and use it in GitHub Desktop.
 videoControlContainer.on( 'click', function() {
if (bubblesVideo.prop('muted') == true) {
console.log("clicked the control");
bubblesVideo.prop('muted', false) ;
videoControlContainer.css('background-position', '')
.css('background-position-y', '0') ;
} else if (bubblesVideo.prop('muted') == false) {
console.log("clicked the control");
bubblesVideo.prop('muted', true) ;
videoControlContainer.css('background-position', '')
.css('background-position-y', '-52px') ;
} else {
console.log("you messed up your conditions");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment