Jump to content

Need to implement this page transition

Recommended Posts

  • Replies 1
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Your Codepen require a lot of adjustment, so I tested it & customize this below code. The effect is quite similar your Codepen.

Add this code to Website Tools (under Not Linked) > Code Injection > Footer

<div class="splash-wrapper">
  
</div>
<style>
.splash-wrapper {
  position:fixed;
  z-index:9999;
  background-color: #000000;
  height:100vh;
  width:100vw;
  display:flex;
  flex-flow: column nowrap;
  justify-content:center;
  align-items:center;
  animation-name: slideOut;
  animation-fill-mode: backwards;
  animation-duration:.65s;
  animation-delay: 2s;
  top: 0;
  margin-left: 100vw;
}
@keyframes slideOut {
  0% {margin-left: 100vw;}
  50% {margin-left: 0vw;}
  100% {margin-left: 100vw;}
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • 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.