GNOME Bugzilla – Bug 732376
Wip: animated jumps in ranges
Last modified: 2014-06-30 22:53:56 UTC
This is a proof-of-concept patch to make scrolled windows animate motion. It more or less 1-1 copies the animation tick callback from GtkRevealer into GtkRange. Still to do: figure out what to do about duration - does it need to depend on the distance of the jump ? Is the easing function the right choice ? Do we want to animate all range jumps, or just scrollbars ?
Created attachment 279459 [details] [review] Wip: animated jumps in ranges
How it looks: https://bugzilla.gnome.org/show_bug.cgi?id=732376
The right url: http://mclasen.fedorapeople.org/animated-jump.webm
Created attachment 279513 [details] [review] Proof-of-concept: Animated scrolling This is a proof-of-concept patch to make scrolled windows animate motion. The implementation of the tick callback is in GtkAdjustment, so we can animate both scrollbar clicks and key bindings. Still to do: figure out what to do about duration - does it need to depend on the distance of the jump ? Is the easing function the right choice ? Do we want to animate all range jumps, or just scrollbars ?
pushed to the wip/animated-scrolling branch
(In reply to comment #4) I'm no expect in motion design, but... > Still to do: figure out what to do about duration - does it need to > depend on the distance of the jump ? I would say not - the point is to create a smooth transition, not communicate distant. Also, it will get annoying if the duration is long. > Is the easing function the right > choice ? Seems good. > Do we want to animate all range jumps, or just scrollbars ? Scroll bars and sliders both seem to benefit.
This look really nifty from the screencast. I agree the time should be constant regardless of the scrolled distance.