Jump to content

Opening intro video

Recommended Posts

  • Replies 4
  • Views 1.7k
  • Created
  • Last Reply
55 minutes ago, tuanphan said:

Try code in this question. 

 

 

Hi Thanks for the reply, this seems to be the like the thing im trying to do. How do I put a video instead of a gif, its saved on my hard drive. does it need to be on the internet first?

 

Thanks

 

 

Link to comment
1 hour ago, tuanphan said:

Try code in this question. 

 

If i put the same this like this.

But just reference my video, will that work?

 

 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<div class="logoload"></div>
<style>
.logoload {
  /* SET BACKGROUND COLOR */
  background-color: #fff;
  /* SET BACKGROUND SIZE */
  background-size: 90px;
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("file:///Users/henryoboyle/Desktop/intro/intro.html");
}
</style>
<script type="text/javascript">
$(window).load(function() {
    $(".logoload").delay(500).fadeOut("slow");
})
</script>

Link to comment
  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.