Hi Pullo, I can’t get this to work. What I would like is this:
The side start with a Video
The video fades out
A image fades in.
When the image is completely faded in the content fades in
I made two examples. In the first example I’m using your method where the background-image and content are first hidden. After the video is faded out the background image should fade in, and after that one is faded in the content should fade in:
At least the image is fading in after the movie is faded out, but I am sure that there must be another more logical way then using the delay function. I hope that you see what I am doing wrong.
Hi Pullo, It is working now but for some strange reason do I need to set the position of the wrapper div to absolute. If I set it to relative I get a vertical scrollbar. I only cant figure why?
Yeah, I noticed this, too.
AFAIK this is not something influenced by the JavaScript, as showing and hiding elements just sets their display attribute accordingly.
If setting the position to absolute does the trick, I would just go with that
Thank you so much Pullo:tup: I don’t see another option either I have one last question concerning the Javascript though. When the movie is faded out I get a white screen for about a second, is there anything I can do to avoid that? Should I for example set the background-image function before the big-video-wrap function?
Dear Pullo,
could you please have a look at my script?
Trying to hide a div (boxie) at the beginning of the movie en showing it back after de video has completed.
Can’t get it to work en pulling my hear out for hours now.
thanks in advance!!
<style type="text/css">
#boxie {position: relative;height:300px;width:300px;z-index:10000;border:1px solid red;background-color:#FFFFFF;}
</style>
<div id="boxie"></div>
<script type="text/javascript">
var BV;
$(document).ready(function(){
// hide #boxie
$('#boxie').css('display', 'none');
// initialize BigVideo
BV = new $.BigVideo();
BV.init();
if (Modernizr.touch) {
BV.show('beeld_circus.png');
} else {
BV.show('1778-ani_fr800-1000.mp4',{loop:false});
}
// at end of video show #boxie
BV.getPlayer().addEvent("ended", function(){
$('#boxie').css('display', 'block');
})
});
</script>