Z
Z
Zombie426792017-10-01 09:01:44
css
Zombie42679, 2017-10-01 09:01:44

How to smoothly end an animation?

How to smoothly end the animation, that is, create the effect that the wheel rolls out when scrolling and stops?

https://jsfiddle.net/xng891zp/4/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Exploding, 2017-10-01
@Zombie42679

brake wheel

header {
  height: 1000px;
  background-color: green;
  text-transform: uppercase;
}
footer {
  height: 600px;
  background-color: blue;
}
.wheel {
  width: 250px;
  height: 250px;
  position: relative;
  left: -250px;
  
}
.wheel.active-left {
  left: calc(50% - 125px);
  transition: all 3s ease-out;
  transform: rotate(600deg);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question