News for hackers. Stuff that matters.
Re:Show HN: The Most Explosive Modal on the Web by thewavelength on Monday April 24, 2017 @04:08PM (#14187751)
The opening of the modal is being pushed to Browser history. This confuses me as I don't expect modals to be in the history.

Is this caused the way it is achieved with CSS only or is this actually wanted?

Re:Show HN: The Most Explosive Modal on the Web by jessekorzan on Monday April 24, 2017 @04:14PM (#14187828)
Just meant to be simple for prototype purposes... And I agree that typically you wouldn't want a UI event like a modal to be part of the history().
Re:Show HN: The Most Explosive Modal on the Web by moron4hire on Monday April 24, 2017 @08:37PM (#14189815)
First of all, modals create a bad user experience. But if you're going to use them, users on Android expect to be able to use the back button to cancel out of things.
Re:Show HN: The Most Explosive Modal on the Web by jessekorzan on Monday April 24, 2017 @11:46PM (#14190598)
Yes but... This modal explodes. Which, in most cases with design patterns, should only be used when appropriate. Right tool for the right job.
Re:Show HN: The Most Explosive Modal on the Web by bshimmin on Monday April 24, 2017 @03:58PM (#14187619)
"100% CSS and one tiny line of JS." ... and a GIF of the explosion!

Still, I love it!

Re:Show HN: The Most Explosive Modal on the Web by agumonkey on Monday April 24, 2017 @04:28PM (#14187985)
kaboom
Re:Show HN: The Most Explosive Modal on the Web by chairmanwow on Monday April 24, 2017 @04:04PM (#14187698)
This is hilarious. Any chance that the gif could be upgraded to an html5 video?
Re:Show HN: The Most Explosive Modal on the Web by jessekorzan on Monday April 24, 2017 @04:13PM (#14187813)
Hey hey - thanks for the feedback.

Can totally be done with a <video> but maybe not as much fun on mobile... And "back button" issue... could be solved with another line of JS.

Re:Show HN: The Most Explosive Modal on the Web by taiwan_on on Tuesday April 25, 2017 @11:01AM (#14194116)
This is hilarious and I love it. Nice work.
Re:Show HN: The Most Explosive Modal on the Web by rad_gruchalski on Monday April 24, 2017 @04:08PM (#14187749)
It does not work correctly when hitting back button :(
Re:Show HN: The Most Explosive Modal on the Web by pryelluw on Wednesday April 26, 2017 @10:58AM (#14203516)
Love it.