A CodePen by Saharsh. JavaScript function - Simply used the JavaScript `function` property along with the combo of CSS.