Not sure if anyone is still struggling with this, but I needed the "gradient" part of that demo animation to work. I eventually figured it out, so here it is:
https://codepen.io/jordanjs/pen/dVGXJL?editors=1010
Seems simple, but if you're like me and your brain doesn't want to work on a Monday morning, it's right there.