eandrew Posted August 7, 2022 Share Posted August 7, 2022 I need to create a vertical slide using vue 3, where when i hover on it, it has to pause. Im new to vue and its hard to figure the animation out. Can anyone help out. Well this is using pure java script. See the Pen RKPdEV by marklc44 (@marklc44) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted August 7, 2022 Share Posted August 7, 2022 Hi there! Easy enough with control methods and some event listeners. let slider = document.querySelector('.v-slider-frame'); slider.addEventListener('mouseenter', () => vSlide.pause()) slider.addEventListener('mouseleave', () => vSlide.play()) Is this what you're after or are you struggling with a vue specific issue? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now