Most people make an IF schedule that requires them to fast for 12 to 16 hours a day. During the rest of the time, they eat normal meals and snacks. Sticking to this eating window isn’t as hard at it sounds because most people sleep for about eight of their fasting hours. In addition you’re encouraged to enjoy zero-calorie drinks, like water, tea, and coffee.

After that timespan, your body goes into what is known as the post–absorptive state, which is just a fancy way of saying that your body isn’t processing a meal. The post–absorptive state lasts until 8 to 12 hours after your last meal, which is when you enter the fasted state. It is much easier for you body to burn fat in the fasted state because your insulin levels are low.
What and when you eat during the feeding window also depends on when you work out. On days you exercise, carbs are more important than fat. On rest days, fat intake should be higher. Protein consumption should be fairly high every day, though it will vary based on goals, gender, age, body fat and activity levels. Regardless of your specific program, whole, unprocessed foods should make up the majority of your calorie intake. However, when there isn’t time for a meal, a protein shake or meal replacement bar is acceptable (in moderation).
Not only that, but growth hormone is increased during fasted states (both during sleep [5]and after a period of fasting). Combine this  increased growth hormone secretion:[6], the decrease in insulin production (and thus increase in insulin sensitivity [7]), and you’re essentially priming your body for muscle growth and fat loss with intermittent fasting.