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

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

Sort a complex associative array in PHP -

recursion - Can every recursive algorithm be improved with dynamic programming? -