*/ .thing { animation: scale .25s ease-in; height: 100px; width: 100px; } That’s because the variable is recognized as a string and what we need is a number that can be interpolated between two numeric values.