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

Scroll #13

Closed
elalemanyo opened this issue May 31, 2014 · 5 comments
Closed

Scroll #13

elalemanyo opened this issue May 31, 2014 · 5 comments

Comments

@elalemanyo
Copy link

Hi,
Can I control the sprite with the Scroll Event? Is that possible?

Thanks!

@darsain
Copy link
Owner

darsain commented May 31, 2014

Of course. Look at the API documentation and leverage it however you need.

I'd implement it in a similar way to 360 example.

@darsain darsain closed this as completed May 31, 2014
@elalemanyo
Copy link
Author

Ok, thanks! I didn't see that example.

@darsain
Copy link
Owner

darsain commented May 31, 2014

http://darsa.in/motio/#!examples 360 view tab

The example activates a specific frame based on mouse position. For scrolling, I'd listen to mousewheel event, and activate previous/next frame based on event delta.

@elalemanyo
Copy link
Author

What is with responsive?Iis your plugin working with screen resize events?

@darsain
Copy link
Owner

darsain commented Jun 1, 2014

No, Motio has no support for responsive containers right now. I'll look into it for next major release.

But it'll definitely won't be an option. It'll just be a method that you'll have to call when container has been resized.

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