Open benbkk opened 10 years ago
Hi!
I updated the code. Please install gem 'jquery-easyng-rails', '0.0.2'
and try this code to make sure that everything is working:
<div style="width: 100px; height: 100px; background: red;" id="div"></div>
<script>
$(function() {
$('body').on('click', function() {
$('div').animate({ top: '-=100px' }, 600, 'easeInOutExpo', function () {})
})
})
</script>
Hello! Thank you for your response and actually I would like to apologize because I've mixed up sending questions in between repo's so actually the above was wrong question being asked to the wrong person :)
However I do, have weird problem. I am working on 2 machines, one at the office and I also pull the git of what I am doing on my laptop. At the office I have no problem, but on my laptop I keep getting this:
Sprockets::FileNotFound at /couldn't find file 'jquery.easing'
Would you know what could have caused this issue? I've followed everything and it works well at work, but not at home while I'm pulling exactly the same project so I don't get it.
Thanks Ben
Try to specify strict version of gem on your laptop, like so:
gem 'jquery-easyng-rails', '0.0.2'
and then run bundle update
Hope this helps!
Hello, I'm wondering how do i use other easing options? I tried
easing: 'easeInOutExpo' but nothing seems to be happening.
Thanks! Ben