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

python - Alternative to referencing variable before assignment -

vb.net - How to ignore if a cell is empty nothing -

javascript - How to bind ViewModel Store to View? -