B
B
be_a_man2019-10-31 17:55:45
JavaScript
be_a_man, 2019-10-31 17:55:45

Performance optimization for scroll event in vue.js?

Hello!
There are several components that have a lot of animation that should start when the component comes into view on scroll.
Those. in each component i need to listen to event scroll. If there are many such components, performance will be lame. Actually, how is it done right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
be_a_man, 2019-10-31
@be_a_man

I asked myself - I answered myself (. https://codesandbox.io/s/vue-template-d6nw5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question