I am currently in the process of developing a web application using vueJs and bootstrap. I am interested in figuring out how to dynamically change the CSS class of an element based on scrolling behavior. Is there a vue-specific method that can achieve this for me?
My desired outcome would resemble the code below:
<div :class="{classA: scrollPosition < 100, classB: scrollPosition > 100}">
</div>
I came across a potential solution using vue-scroll, which seemed promising initially but unfortunately is not functioning as expected.
Are there any other built-in methods within Vue that could help me achieve the same result?