You should look at npm package - react-motion. It is good for making animations with changing component style.
You are right, react-motion is nice library, but it is also huge one. For simple animations I prefer doing them myself, instead of importing large dependencies of which I'll just a tiny portion.
This is just proof of concept, so take it with a grain of salt.
© 2016-2018. All rights reserved. Written with ♡ by Stanko Tadić. Made in Serbia.