 After the rocket engine has consumed all of its fuel an internal fuse is lit that delays the release of the stars, or other effect.This delay allows for coasting time where the rocket continues its ascent.As gravity will eventually pull the firework back to earth, it slows and eventually reaches an apex (highest point