Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easing options? #2

Open
benbkk opened this issue Oct 22, 2014 · 3 comments
Open

Easing options? #2

benbkk opened this issue Oct 22, 2014 · 3 comments

Comments

@benbkk
Copy link

benbkk commented Oct 22, 2014

Hello,
I'm wondering how do i use other easing options?
I tried

easing: 'easeInOutExpo' but nothing seems to be happening.

Thanks!
Ben

@tanraya
Copy link
Member

tanraya commented Oct 22, 2014

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>

@tanraya tanraya closed this as completed Oct 22, 2014
@benbkk
Copy link
Author

benbkk commented Oct 22, 2014

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

@tanraya
Copy link
Member

tanraya commented Oct 23, 2014

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!

@tanraya tanraya reopened this Oct 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants