Ah, nevermind. What caused the flickering was the intercalation of both css and javascript animations/transitions.
I had the terrible idea to set something like * { @include transition(all, 0.2s) }
in my code. I was thinking that this would be simpler as I wouldn't have had to add this line everytime I wanted a smooth transition. But it turns out not to be.