-
Relational scaling (or The Wave)
Hello All,
To become better at using expressions, I attempt to recreate things I’ve seen in commercials and television shows. Recently, I came across an ad for a sports drink where I saw something interesting.
A row of bottles is shown (about 15), and what I call “the wave” (think athletic stadium) occurs. In the span of about 3 seconds, we see the bottles, all equal in scale in a row. Then (quickly) the first bottle scales to about 170%, and then back down to 100%. As it scales, the bottles following it (to its’ right) scale in relation to it, that is, the one immediately to the right scales to roughly 90% of the current scale of the first bottle, the one to the right of that one scales to roughly 90% of the bottle to its’ left (the 2nd bottle) and roughly 80% of the first bottle, and so on down the line. As the second bottle scales in relation to the first in the row, it eventually grows beyond to reach the target size (say about 170%), and on down the line (back and forth and back and forth), creating a very neat scaling wave effect.
However, it’s not just the scaling. The bottles never overlap, and may shift left or right slightly to accommodate the scaling of the surrounding bottles. The total width of the row really didn’t change at all (let’s pretend we started with our row evenly distributed edge-to-edge in safe-title and we maintain that distribution). The bottles are each anchored at their base.
I started playing with expressions to get an object to maintain the same distance from an object next to it, regardless of that objects scale, and had success, but I started getting an ice cream headache when I was trying to figure out how to make the scales dependent on each other, maintain position, and do all the other things I just described, while linking them to some nice little slider-or-similar control that would allow me to control the wave.
This isn’t for a project I’m working on at the moment. I simply thought it was an interesting effect that could be applied across a variety of looks and transform properties.
If I make any headway, I’ll post it.