Check out this simple button you can click on that transforms into a confirmation popup. Depending on where you click the button will flip and transform into a confirmation dialog. It was designed by Hakim El Hattab
Check out the Demo and code on Github