{"id":330863,"date":"2020-12-21T07:01:32","date_gmt":"2020-12-21T15:01:32","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=330863"},"modified":"2020-12-21T07:01:34","modified_gmt":"2020-12-21T15:01:34","slug":"201-doing-booping","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/video-screencasts\/201-doing-booping\/","title":{"rendered":"#201: Doing Booping"},"content":{"rendered":"\n

Joshua Comeau crowd-coined the term “boop”<\/a> (high five, Adam Kuhn<\/a>). These are sorta like hover\/focus states, except that they aren’t. Your thingies \u2014 things like links, buttons, etc. \u2014 should still have those states. A “boop” is a more whimsical effect that runs once<\/em> when the mouse enters it, finishes the run even if your mouse leaves (which is something CSS can’t really do), and will potentially run again on the user’s next mouseenter<\/code> later, after the first booping is done. <\/p>\n\n\n\n

Rather than Josh’s React implementation, we’ll start in CSS, see how far we can get, then look at an alternative JavaScript approach.<\/p>\n\n\n\n