vuejs2 - jquery css left property doesn't work with Vue 2 -


i have little problem jquery , vuejs 2. have following css

 .slider{        position: relative;        transition: .2s;     } 

and following javascript

...     methods:{         move: function(){             $('.slider').css('left', -100%/3 + '%');         }     } ... 

but nothing's working. may assume, want edit left property of slider element clicking element in same component. don't know if because of vue or not. have used same trick in previous projects without vue, so... hope can me

there no problem vue here, remove %,

...     methods:{         move: function(){             $('.slider').css('left', -100/3 + '%');         }     } ... 

good luck.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -