PreViewTube : A small jQuery plugin for animating YouTube thumbnail images.
// Hover over the image to see this in action.
$('.someSelector').PreViewTube();
$('.someSelector').PreViewTube({
'interval' : 500,
'mode' : 'constant'
});
// Hover over the image to see this in action.
$('.someSelector').PreViewTube({
'interval' : 100,
});
$ bower install previewtube`
<script src="path/to/jquery.min.js"></script>
<script src="path/to/previewtube.js"></script>
$(document).ready(function(){
$('.preViewTube').PreViewTube();
// or
$('.preViewTube-constant').PreViewTube({
'interval' : 500,
'mode' : 'constant'
});
});
<img src="https://i.ytimg.com/vi/dQw4w9WgXcQ/2.jpg" alt="" width="150" class="preViewTube"/>