PreViewTube.js

PreViewTube : A small jQuery plugin for animating YouTube thumbnail images.

Example Usage

Default


	// Hover over the image to see this in action.
	$('.someSelector').PreViewTube();
						
					

Constant Mode


	$('.someSelector').PreViewTube({
		'interval' : 500,
		'mode' : 'constant'
	});
		
		

Aninmation Speed


	// Hover over the image to see this in action.
	$('.someSelector').PreViewTube({
		'interval' : 100,
	});
		
		

Download

You can install the PreViewTube plugin using Bower:

$ bower install previewtube`
		
		
Or if you prefer just grab a copy from here

Using the plugin

1. Include jQuery


<script src="path/to/jquery.min.js"></script>
		
		

2. Include plugin's code


<script src="path/to/previewtube.js"></script>
		
		

3. Call the PreViewTube plugin


  $(document).ready(function(){

                $('.preViewTube').PreViewTube();

                // or

                $('.preViewTube-constant').PreViewTube({
                    'interval' : 500,
                    'mode' : 'constant'
                });

  });
		
		

4. Add some YouTube thumbnails


<img src="https://i.ytimg.com/vi/dQw4w9WgXcQ/2.jpg" alt="" width="150" class="preViewTube"/>
		
		

4. ??????

5. Profit