Miljan Ilic
Miljan Ilic

Reputation: 335

CSS3 Animating Full Screen

They declared as:

@-webkit-keyframes square {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-700px) rotate(600deg); }
}
@keyframes square {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-700px) rotate(600deg); }
}

-700px declares height where boxes that fly disapears. To make background full screen I need to change this. I tried adding -100% but it isn't working.

Can you help me?

Upvotes: 0

Views: 105

Answers (1)

Luis Rivera
Luis Rivera

Reputation: 517

Try using 100vh instead.

More information about Viewport Relative Lengths here

Upvotes: 2

Related Questions