M
M
myskypesla2017-07-11 12:01:28
Vue.js
myskypesla, 2017-07-11 12:01:28

How to change component on scroll vue js?

There is a site, each page is occupied by 100% of the height:
- on the first page (component 1) there is a square;
- on the second page (component 2) there is a circle;
Question:
How can I make it so that when scrolling down or up, switching between components occurs? I want to make a smooth transition between components, as the design implies smoothness.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Kulakov, 2017-07-11
@myskypesla

Subscribe to the scroll event, change one component to another.

A
Artem0071, 2017-07-11
@Artem0071

For smoothness, you can use the internal features of the view

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question