Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Fading in the video to hide the play button and loading animation #24

Open
GoogleCodeExporter opened this issue Apr 24, 2016 · 7 comments

Comments

@GoogleCodeExporter
Copy link

1.(Optional) Change the body background to be black;
2. Modify line 42 
"var tubularContainer = '<div id="tubular-container" style="overflow: hidden; 
position: fixed; top:50px; z-index: 1; width: 100%; height: 100%; opacity:0;"  
-Add opacity:0;      
3. Modify line 74.
-After "e.target.playVideo();" add...
$('#tubular-container').animate({'opacity':'100'},100000);

There may be better ways of doing this, but this method seems to work for me. 
Makes for a more elegant load.

Original issue reported on code.google.com by everythi...@gmail.com on 7 Oct 2012 at 10:07

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

I like it.  I'll work it in soon.

Original comment by seanmcca...@gmail.com on 15 Oct 2012 at 6:09

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Thank you for this nice fix. :)

Also add this property 'rel: 0' to the playerVars found at line 56. This will 
prevent showing the playlist at the end.

And to hide the play-button again, add the code below at line 81, under the 
player.seekTo function-call.
$('#tubular-container').css({'opacity':'0'});
$('#tubular-container').animate({'opacity':'100'},100000);

Original comment by m.cu...@gmail.com on 4 Apr 2013 at 1:51

@GoogleCodeExporter
Copy link
Author

I'm still getting the play button flashing for a split-second between looping

Original comment by JacksonC...@gmail.com on 24 Jun 2014 at 3:49

@GoogleCodeExporter
Copy link
Author

For those of you who still have this issue, take this patch and apply it to 
your checkout of the project. It will set the opacity of the player to zero and 
then back to 1 once the video starts playing.

Original comment by jix2mail on 5 Jan 2015 at 10:43

Attachments:

@GoogleCodeExporter
Copy link
Author

any chance to post the whole file pls ?  Still not working for me.

Original comment by solhar...@gmail.com on 30 Jan 2015 at 11:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant