implements a simple fade transition