LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Ken Burn's Effect Using HTML & CSS

CSS
#image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0px;
  position: relative;
}

body,
html {
  margin: 0px;
  background-color: black;
}

#image-container img {
  animation: kenburns 10s infinite;
}

@keyframes kenburns {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    transform: scale3d(1.5, 1.5, 1.5) translate3d(-250px, -250px, 0px);
    animation-timing-function: ease-in;
    opacity: 1;
  }
  100% {
    transform: scale3d(2, 2, 2) translate3d(-230px, -230px, 0px);
    opacity: 0;
  }
}

#info {
  font-family: 'Orbitron', sans-serif;
  width: 400px;
  height: 150px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(255, 255, 255, 0.6));
  color: #000000;
  border-radius: 20px 20px;
  padding: 20px;
  top: 30%;
  left: 40%;
  position: absolute;
  text-align: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

body{
  height:100vh;
}
Term
Sat, 04/14/2018 - 20:45

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv