«
»

2012

Fondo web con video html5

12.31.12 | Comment?

Alberto Suárez Pérez

Me gustaría comentar este interesante plugin para jquery desarrollado por George Paterson
Es muy fácil de configurar, al final del archivo .js tenéis la configuración.

$(document).ready(function() {
				$('dl').toggle();
				$('h2').bind('click', function(event) {
					event.preventDefault();
					$(this).next('dl').slideToggle(500, function() {
						$('.video-background').videobackground('resize');
					});
				});
				$('body').prepend('
'); $('.video-background').videobackground({ videoSource: [['video/big-buck-bunny.mp4', 'video/mp4'], ['video/big-buck-bunny.webm', 'video/webm'], ['video/big-buck-bunny.ogv', 'video/ogg']], controlPosition: '#main', poster: 'video/big-buck-bunny.jpg', loop:'true', loadedCallback: function() { $(this).videobackground('mute'); }
Etiquetas:

Comments are closed.


«
»