See the Pen AutoPause v5 by Ral Weekly (@ralweekly) on CodePen.