W
W
WebDev2018-03-19 00:08:53
Vue.js
WebDev, 2018-03-19 00:08:53

Smooth animation in vue.js?

Please help me with animation. It is necessary that the pages turn from bottom to top, as with a normal scroll. It works that way, but there is a pause between the first block being completely hidden and the second block appearing.
How can I make the second block follow immediately after the first? As with a normal scroll.
https://codepen.io/anon/pen/Wzopdy
Thanks!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2018-03-19
@kirill-93

https://jsfiddle.net/3pojduyk/

E
Evgeny Kulakov, 2018-03-19
@kulakoff Vue.js

As an option, set the absolute positioning of the blocks:

.red {
  width: 100vh;
  height: 100vh;
  background: red;
  position: absolute;
}

.green {
  width: 100vh;
  height: 100vh;
  background: green;
  position: absolute;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question