Skip to content

Instantly share code, notes, and snippets.

@wemakeweb
Created December 18, 2014 00:18
Show Gist options
  • Save wemakeweb/a05d50203a9765b1d16c to your computer and use it in GitHub Desktop.
Save wemakeweb/a05d50203a9765b1d16c to your computer and use it in GitHub Desktop.
$(function() {
$('.play-video-1').on('click', function() {
$(this)
.find('img')
.replaceWith('<iframe class="vids" src="https://player.vimeo.com/video/98551986?title=1&byline=0&portrait=&color=417071&autoplay=true" width="350" height="197" frameborder="0"webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');
$(this)
.parent()
.removeClass('second-effect');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment