Posted By

vijayrajesh on 01/12/13


Tagged

jquery onclick YouTube autoplay


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Josueriv


Autoplay youtube video while clicking on a custom thumbnail image


 / Published in: jQuery
 

URL: http://blog.pixelthemes.com/ideas/autoplay-youtube-video-while-clicking-on-a-custom-thumbnail-image

The thumbnails of Youtube videos are generally low in quality. Sometimes, the thumbnail is not enough to get the people attention. Here is a small code I have written that works as follows.

A custom thumbnail is displayed at the size of 560px width and 615px height. When the user clicks on it, the image fade outs. Yes it will get animated as fade out. We use jQuery fadeout function for it. After that the video gets displayed.

Report this snippet  

You need to login to post a comment.