A variety of circumstances might require you to temporarily take your class online with minimal notice: a campus closure, increased absenteeism during a flu outbreak, a family emergency requiring your presence elsewhere, etc.
Visit the Keep Teaching page on the Center for Academic Excellence website for a step-by-step guide.