Cherry-pick
Animating shapes left and right I have a chance to add character with easing functions. The idea is to deviate from linear motion processing time, and map the input value to a less predictable figure.
const sineInOut = (t) => -0.5 * (Math.cos(Math.PI * t) - 1); Inspired by CSS and cubic bezier functions, I tend to rely on a few, safe options like sineOut, but for something more daring, more responsive, I’ve certainly toyed with more variable curves.
In some instances, I even tried more outrageous functions, exceeding the possible values before settling on the final result.
But there is one function I had yet to use, that for a bouncing change.
The curve may look nice, but the effect is quite drastic, almost obnoxious. Values move rapidly toward the end and then recede back, again and again, with ever so smaller gaps and a hiccuping tone.
Would there ever be a good reason for the excessive change? Turns out, there is, but you might have to look at the picture from a different angle. And two types of input: time and, similarly to previous projects, patience to lose control.
"Zdog Monday", a series of gorgeous pseudo-3D graphics built with Zdog in one day of the week.
There is a collection on CodePen, but if you want some context, and a few twists, I took care to write about each single piece.
- Beauty sleep
- Counting shapes
- Step through frames
- Spinning change
- One out of six
- Child's play
- Memory pop
- ZZ Anne
- Just keep spinning
- Advent of shapes
- Joystick drift
- Canard sans souci
- Brilliant idea
- Lighten up
- Guiding star
- Small whimsy
- Double axis
- Neigh we go round
- Having a ball
- Powerful mix
- Assembly code
- When lightning strikes
- Loopty loops
- Season's rewards
- Cherry-pick
- Trail blazer
- Hatch-a-doodle-doo
- Bubble up
- Think you can