Coder Social home page Coder Social logo

What works well for zooming out? about easings.net HOT 3 OPEN

ai avatar ai commented on May 31, 2024
What works well for zooming out?

from easings.net.

Comments (3)

samhenrigold avatar samhenrigold commented on May 31, 2024

I built a prototype to test different curves on a zoom animation, here's what I found:

I'm zooming in and out by 10x on a map. If the user directly triggers and controls the zoom level, you'll want to use something that eases out but not in. It gives the illusion of immediate responsiveness. You almost certainly want to use it when a user is directly manipulating the zoom level (double tapping to zoom on mobile, for instance) but you might wanna test how it feels if the zoom level is triggered and controlled by the user but through less direct means (like a Google Maps zoom toggle button). I'm quite satisfied with how easeOutCubic or easeOutQuart looks.

If the zoom is just an animation that is not controlled by the user, I'd go with easeInOutCubic if we're being conservative or easeInOutExpo for something more fun and modern. Hope this helped!

from easings.net.

daveyostcom avatar daveyostcom commented on May 31, 2024

Interesting. Here’s my example.

  • zoom out 6x quickly with mouse wheel, zoom in 6x with zoom-to-fit button (ease-out)
  • zoom in 9x quickly with mouse wheel, zoom out 9x with zoom-to-fit button (ease-out)

To me the zoom-to-fit zooming in looks smooth, and the zoom-to-fit zooming out looks like it accelerates at the end.

The example uses JavaFX EASE_OUT

zooming-easeout.mov

from easings.net.

daveyostcom avatar daveyostcom commented on May 31, 2024

It occurs to me that zooming (in or out) should progress in the log domain, and for animated zooming, as in zoom-to-fit, easing should be layered on top of log. And it turns out that my scroll wheel code ties wheel movement to a scale factor, so it is effectively log domain. A classic example is the Eames short film, The Powers of Ten, which zooms in the log domain, 10x every 10 seconds. https://m.youtube.com/watch?v=7f5x_dRKIF4

The issue is similar in audio volume knobs, which operate in the log domain.

from easings.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.