Fade-in effect inside material leaving holes?

OK, after working around with it I figured the problem was in the timeline which I use to set the scalar value over time. Setting the end key in the timeline to something like -0.1 instead of 0 fixed my issue.