ibufu / vue2-scrollspy

Scrollspy for Vue2
https://ibufu.github.io/vue2-scrollspy/
MIT License
135 stars 32 forks source link

Get active element #40

Open enkhtulga opened 5 years ago

enkhtulga commented 5 years ago

Describe what you want:

Can i get DOM element which has 'acitve' class?

janeschindler commented 4 years ago

Probably via the 'section' data. See the example (https://jsfiddle.net/ibufu/nw0zczLx/). You have to make 'section' in your data; scrollspy changes the 'section' according to which slide is active.