I'm trying to toggle between an image which is a thumbnail of a video and the video itself. This is the markup:
<img id="thumbnail" src="/templates/beez_20/images/ws_wst2.png" alt="image" />
<video width="100%" height="100%" controls><source src="templates/beez_20/video/ws_wst2.webm" type='video/webm;codecs="vp8, vorbis"'/>
</video>
I want the image to be shown when the page is loaded and when it is clicked the video to be displayed and the reverse, the video when clicked to return to the image. I've looked online but I've been unable to find any examples that fit. I would be happy with either a CSS or js/jquery solution. Thanks in advance.