I ran into an issue where I wanted the width of an element to animate to a percentage of its container rather than a pixel width (animate to '90%' instead of '90px'), so I added support for any CSS unit by extracting non-numeric characters at the end of the given start and/or end value and using that unit during element animation. Thanks!
I ran into an issue where I wanted the width of an element to animate to a percentage of its container rather than a pixel width (animate to '90%' instead of '90px'), so I added support for any CSS unit by extracting non-numeric characters at the end of the given start and/or end value and using that unit during element animation. Thanks!