Blends two values of the same kind, picking the right treatment for what it is given.
Strings are treated as colours because that is the only string this library animates; anything else would have no meaningful midpoint.
mix(0, 10, 0.5) // 5mix('#000000', '#ffffff', 0.5) // '#808080'mix([0, 10], [10, 20], 0.5) // [5, 15] Copy
mix(0, 10, 0.5) // 5mix('#000000', '#ffffff', 0.5) // '#808080'mix([0, 10], [10, 20], 0.5) // [5, 15]
Blends two values of the same kind, picking the right treatment for what it is given.
Strings are treated as colours because that is the only string this library animates; anything else would have no meaningful midpoint.