I have a page that has a video using the video tag. Also, my page uses the animate.css to add some animations to my elements. The issue is that when I use a style in the animate.css, My video does not go to full screen correctly. This is a sample of my page:
<div id="wrapper">
<div id="page-wrapper" class="gray-bg dashbard-1">
<h2 id="sv_title">Here is some text for illustration</h2>
<div class="animated fadeInRight">
<video src="http://www.w3schools.com/html/mov_bbb.mp4" controls=""></video>
</div>
</div>
</div>
https://jsfiddle.net/p4nmt637/
Also, this issue seems to happen only in chrome, I tested it in FireFox and Safari and I did not have this issue.
This appears to be a Chrome bug. The problem is caused by the
animation-fill-mode
which is set toboth
. This keeps the animation active on the videos parent container, which seems to be messing with the full screen video.Workaround
By changing this back to the default,
none
, we fix the full screen problem. In this example the animation fill mode is changed with the.custom
class.Example
There is a working example in this jsfiddle.