Oops, I almost forgot I posted here. I was just messing with this again this morning, and figured out a solution.
https://codepen.io/illustrationism/pen/zeXWeP
Hope this helps someone else! Thanks for your help, and if I could be doing something better, I’m always keen to hear!