G
G
gregorianin2020-04-23 17:10:57
css
gregorianin, 2020-04-23 17:10:57

How to push the block after the animation to the bottom of the page?

Hello, can you tell me how to make the block move out from the bottom and then nestle to the very bottom of the page after the animation in the after pseudo-selector? I'm trying, but even codepen doesn't understand me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
A person from Kazakhstan, 2020-04-23
@gregorianin

if I understand correctly

.wrapper{
  background-color: #fff;
  height: 3000px;
}

.wrap-2 {
  width: 100vw;
  height: 20vh;
  position: absolute;
  bottom: -50%;
  background-color: red;
 
  animation: go 1s linear  forwards;
}

@keyframes go{
  100%{
    position: fixed;
    bottom: 0;
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question