I would like to add a clickable play button icon in my header. When someone clicks the icon the hidden video starts playing. Either by popping up or that I can resize the video to my preferences.

How do I do?



You can do by that way.

   <div id="thevideo" style="display:none; padding: 0px;">
        <video onclick="this.play();" preload="auto" width="600" height="370">
            <source src="http://edigi.co/Impatto_Branding_Agency-Large.mp4" type="video/mp4"/>
$(document).ready(function() {
    $('.custom-th').click(function() {
        $('.custom-th').fadeOut('fast', function() {
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.