jquery: animating html5 video element?
Posted
by mathiregister
on Stack Overflow
See other posts from Stack Overflow
or by mathiregister
Published on 2010-06-03T09:54:10Z
Indexed on
2010/06/03
9:54 UTC
Read the original article
Hit count: 221
is it possible to animate a html5 video element
<div id="cont">
<video id="movie" width="320" height="240" preload controls>
<source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"'>
<source src="pr6.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="pr6.webm" type='video/webm; codecs="vp8, vorbis"'>
</video>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('#cont').animate({"left": "500px"}, "fast");
//$('#movie').css("left", "300px");
});
</script>
this seems not to work!
thank you for your help
© Stack Overflow or respective owner