We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's migrated from Internal Issue List.
There's some components implemented a pause/resume. But They are not incomplete.
(I've found severals, but currently I can found below one. Need More Search) For example, https://github.com/tobia/Pause
1. It doesn't support chaining
$el.animate(prop1).animate(prop2);
2. It doesn't support relative positioning(or movement) like below
$el.animate({"left": "+=100px"});
3. Absolutely, It doesn't support trasform that egjs can do
We can dig up jQuery more.
I think if we overcome below things, we can implement them.
1. Store animation queue(fx.queue) and Restore them.
2. Relative position calculation
When paused, store below value.
Last Time Ratio (r) = time consumed (d) / total time (t) Relative Position To Move (p) = Destination Value(v) - v * easing(r)
When resumed, restore above value and animate with them.
this.animate({"pos": "+=p"});//psuedo, MUST decompose each by type (like left, top, margin, ...)
The text was updated successfully, but these errors were encountered:
Pass to next release
Sorry, something went wrong.
feat(pauseResume): Fix jshint error and apply JSCS.
12012c8
Ref naver#111
feat(pauseResume): Change directory by tc directory changed.
877d646
feat(pauseResume): Add unit test case.
b86b46b
Merge pull request #151 from jongmoon/master
8680b88
feat(pauseResume): pause/resume feature(jQuery plugin) Ref #111
jongmoon
No branches or pull requests
It's migrated from Internal Issue List.
Why we do?
There's some components implemented a pause/resume. But They are not incomplete.
(I've found severals, but currently I can found below one. Need More Search)
For example, https://github.com/tobia/Pause
1. It doesn't support chaining
2. It doesn't support relative positioning(or movement) like below
3. Absolutely, It doesn't support trasform that egjs can do
And other purpose?
We can dig up jQuery more.
Check Point
I think if we overcome below things, we can implement them.
1. Store animation queue(fx.queue) and Restore them.
2. Relative position calculation
Relative Position Calculation
Suggestion
When paused, store below value.
When resumed, restore above value and animate with them.
The text was updated successfully, but these errors were encountered: