html play video on hover
In HTML Document:
<video width='500' height='150'
onmouseenter='VideoController(true, this)'
onmouseleave='VideoController(false, this)'
src="Videos/test.webm" loop>
Your browser does not support the video tag.
</video>
In CSS:
const VideoController = function(isHovering, videoElement)
{
if (isHovering == true)
{
videoElement.play();
}
else if (isHovering == false)
{
videoElement.pause();
}
}
Also in HTML:
- vm player linux
- JSPL loop through map keys
- html form tag
- html to pdf
- bootstrap table dense
- how to change font in html
- html ecrire en gras
- javascript upload file without input
- how to include a dash in html
- how to create a button with text in HTML5?
- How to install CentOS 7 Linux in VMware Workstation
- fetch html from url
- class html
- string builder render text as html
- html create a multi-line text input
- html nav
- my html file shows code in browser
- button onclick
- TYPESCRIPT RETURN HTML ELEMENT
- iframe
- responsive youtube embed html
- is html dead
- take input date html
- how to add site logo in wordpress