Page MenuHomePhabricator

Ellipses transition
Closed, ResolvedPublic

Description

As one ellipsis deactivates, it pulses out in animation. At the same time, the ellipsis that's activating pulses in.
http://daneden.github.io/animate.css/

Actually I think it should be smoother than that, that was the closest example I could find.

Event Timeline

violetto assigned this task to Prtksxna.
violetto raised the priority of this task from to Medium.
violetto updated the task description. (Show Details)
violetto changed Security from none to None.
violetto subscribed.

That example seems to have only pulse and no pulse-in and pulse-out. Could you draw a rough mock of the frames that you are thinking of?

I've set this to a 0.5s linear animation .

How are we rendering the circles? Reason why I'm asking is because when it grows and shrinks the transition looks choppy. Like it's fetching images while it grows or reduce in size.

The circles are being made using a <div> with border-radius. The browser takes care of the frames between the two states. While we don't have complete control over the choppiness @Jaredzimmerman-WMF and I were able to fine tune it for T78370. The transition duration was 0.2s and we used an [[ http://easings.net/#easeOutBack | easeOutBack]] interpolation.

After testing out some easings. My top three are:

easeOutCubic
easeOutQuint
easeOutExpo

I arranged them from slow to fast. easeOutExpo is the fastest in the group and easeOutCubic being the slowest. Comparing these three, I really like what's happening with easeOutQuint. It feels most responsive without being jumpy or sudden. You can compare all three here.