Posted By

vijayrajesh on 01/12/13


jquery onclick YouTube autoplay

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Autoplay youtube video while clicking on a custom thumbnail image

 / Published in: jQuery


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.