#201: Doing Booping

Programming - Mar 31, 2024

Joshua Comeau crowd-coined the term “boop” (high five, Adam Kuhn). These are sorta like hover/focus states, except that they aren’t. Your thingies — things like links, buttons, etc. — should still have those states. A “boop” is a more whimsical effect that runs once 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 later, after the first booping is done.

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

I’ve left some comments in the Pen above that were from alternative methods we explored along the way.

Previous Next
Copyrights
We respect the property rights of others, and are always careful not to infringe on their rights, so authors and publishing houses have the right to demand that an article or book download link be removed from the site. If you find an article or book of yours and do not agree to the posting of a download link, or you have a suggestion or complaint, write to us through the Contact Us .
Read More