Flipbook fade between images

Hi!
I would like to achieve a flipbook effect where the transition always happens when the opacity is 0.
Here is how the shader looks atm: Screen capture - a4f1b090b768efab8f42446eaeede256 - Gyazo

Anyone got any advice on how I can reach this effect?

Thanks alot!