setEffect

Sets both effectTo and effectFrom at the same time.