Why does my iPad mini flash on and off?

My iPad mini keeps on turning off and flashing on and off.
Does this happen randomly or when you're using certain applications?
Try a hard reset. Hold the top power/sleep button and the home button at the same time until the Apple logo appears, then release.

Original thread: https://forums.imore.com/threads/why-does-my-ipad-mini-flash-on-and-off.333169/