These infinitive constructions indicate periods of time that are anterior or posterior to the action expressed by the infinitive:
Antes de dormir voy a leer – Before I go to bed, I will read
Después de leer voy a dormir – After reading I will go to bed