Comments (3)
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.
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.
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)
- Разное отображение изингов на русском и английском языках HOT 1
- Put linear ones for comparison. HOT 1
- easeOutBack math function for 0 is incorrect HOT 5
- Different cubic-bezier() presets in Chrome DevTools
- More permissive license for easing functions snippets?
- Translation in hindi language HOT 1
- mathematically rigid quadratic curve parameters for easeInQuad
- Exponential functions not accurate HOT 1
- Add more easing function from DOTween
- Missing Math in Typescript for easeOutCirc HOT 2
- Add easeOutIn functions
- cubic-bezier() values are not the original ones
- Add CSS variants of `easeInElastic` and `easeInBounce` with `linear()` HOT 1
- Add smoothstep
- Have a way to set the speed/duration
- Better easeInCirc and easeOutCirc formulas HOT 1
- Keyframe-based functions run backwards in preview
- add weighted average easing
- allow change of parameters for easing functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easings.net.