After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732376 - Wip: animated jumps in ranges
Wip: animated jumps in ranges
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-06-28 06:30 UTC by Matthias Clasen
Modified: 2014-06-30 22:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Wip: animated jumps in ranges (5.28 KB, patch)
2014-06-28 06:30 UTC, Matthias Clasen
none Details | Review
Proof-of-concept: Animated scrolling (9.24 KB, patch)
2014-06-29 06:13 UTC, Matthias Clasen
none Details | Review

Description Matthias Clasen 2014-06-28 06:30:42 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 ?
Comment 1 Matthias Clasen 2014-06-28 06:30:46 UTC
Created attachment 279459 [details] [review]
Wip: animated jumps in ranges
Comment 2 Matthias Clasen 2014-06-28 06:31:49 UTC
How it looks:

https://bugzilla.gnome.org/show_bug.cgi?id=732376
Comment 3 Matthias Clasen 2014-06-28 06:33:42 UTC
The right url:
http://mclasen.fedorapeople.org/animated-jump.webm
Comment 4 Matthias Clasen 2014-06-29 06:13:56 UTC
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 ?
Comment 5 Matthias Clasen 2014-06-29 15:27:50 UTC
pushed to the wip/animated-scrolling branch
Comment 6 Allan Day 2014-06-30 12:21:10 UTC
(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.
Comment 7 Jakub Steiner 2014-06-30 19:33:44 UTC
This look really nifty from the screencast. I agree the time should be constant regardless of the scrolled distance.