DEV Community

Cover image for This is probably the funniest Codepen I found this year!

This is probably the funniest Codepen I found this year!

Simon Holdorf on October 18, 2019

This is rather a short post but I find this codepen by Bård N Hovde so awesome that I must share it with you: Amazing what you can do with Jav...
Collapse
 
chrisachard profile image
Chris Achard • Edited

Ha, I saw this other day - it's fantastic :)

For anyone looking in the code for the 'trick' (of hiding the mouse), it's done by setting the cursor in JS on this line:

const screenStyle = cursorGrabbed ? { cursor: "none" } : {};

and then the fake mouse pointer is part of the hand graphic. Brilliant!

Collapse
 
savagepixie profile image
SavagePixie

Oh, so there is a cursor trick! I've seen it on my mobile, where you can obviously just tap on things, so I hadn't caught on this feature.

Collapse
 
sanjaysupanch profile image
sanjaysupanch

oSM

Collapse
 
gaberomualdo profile image
Gabe Romualdo • Edited

Pretty fun, with a combination of fast mouse movements and right-click trickery, I managed to produce a waving hand without changing any of the code.

Waving Hand Demo

— Gabriel

Collapse
 
pepas24 profile image
Sebastian Gutierrez

I just pass the mouse very close to the bottom of page hahaha

Collapse
 
fultonbrowne profile image
Fulton Browne

that worked for me

Collapse
 
abhinav1217 profile image
Abhinav Kulshreshtha

But you won't be able to press the Button 😁.

Collapse
 
amruthpillai profile image
Amruth Pillai • Edited

Brilliant use of CSS and logic. Had so much fun playing around with this.
And using the Chrome Dev Console, clicked the button using Javascript, this was the result.
Cool that the dev included that as well :)

Nice One!

Collapse
 
salvan13 profile image
Antonio Salvati 🦊

or focus it pressing tab :)

Collapse
 
darksmile92 profile image
Robin Kretzschmar

That... was awesome! It really made me laugh loud in the office 👍🤣
Thanks for sharing this!

Collapse
 
simonholdorf profile image
Simon Holdorf

You're welcome 😄

 
hndcrftd profile image
Jakob Wildrain • Edited

Yes, it is! Click on the text above the button (to gain focus) and use TAB to select the button, now press SPACE or ENTER. You have pressed the button and it changes the caption to "Nice one".
While it is technically not "clickable", it is indeed "pressable", to use your own word ;)

Collapse
 
rcoundon profile image
Ross Coundon

Love it, very clever :-D

Collapse
 
kdraypole profile image
Kobe Raypole

This made me laugh, yet oddly frustrated at the same time.

Collapse
 
corbee profile image
Illia Pyshniak

If you press the button and then give your cursor to bottom buddy...

Collapse
 
giogiordano93 profile image
Giovanni Giordano

Passing by the bottom-left corner you can go on the button :D

Collapse
 
siddrc profile image
Siddharth Roychoudhury

sweet :)

Collapse
 
xeusteerapat profile image
Teerapat Prommarak

Awesome!

Collapse
 
awwsmm profile image
Andrew (he/him)

That's awesome!

Collapse
 
simonholdorf profile image
Simon Holdorf

It is, right?

Collapse
 
ehsan profile image
Ehsan Azizi

That was fantastic!

Collapse
 
ekimlim122104 profile image
Mike Lim

hoho that's awesome dudeeeeee

Collapse
 
thomasbnt profile image
Thomas Bnt ☕

Funny!

Collapse
 
camicode profile image
CamCode

Amazing!!! I like the "effect" on button :)

Collapse
 
5anthosh profile image
Santhosh Kumar

hahah, clever!

Collapse
 
ekimlim122104 profile image
Mike Lim

hahaha very funny _^

Collapse
 
tolgahanuzun profile image
Tolgahan ÜZÜN

heheh 😅 it's funny

Collapse
 
gherciu profile image
Gherciu Gheorghe

:) amazing

Collapse
 
gabmen1711 profile image
gabmen1711

Hahahaha awesome!

Collapse
 
staceyluvstech profile image
Stacey Graham 🌺💻

Very funny lol

Collapse
 
dillionmegida profile image
Dillion Megida

Was able to click the button on mobile though 🙂

Collapse
 
lautarolobo profile image
Lautaro Lobo

Yeah funny af, my mom (not really a techy person) ended up LOL

Collapse
 
kleene1 profile image
kleene1

😄👏

Collapse
 
techgirl007 profile image
TechGirl007

That is so cool! I am going to give that a go ~ if you don't mind! Well Done!

Collapse
 
jarodpeachey profile image
Jarod Peachey

Am I the only one who keeps trying to press the button? Like, i've been at it for 10 minutes? 😂

Collapse
 
negue profile image
negue

Hehe quite awesome!

Collapse
 
clarkchiu profile image
Clark Chiu

Ha Ha Ha, nice codepen.

Collapse
 
brettward1994 profile image
Mr.Ward

Haha. This had me rolling! I love seeing creative stuff like this.

Collapse
 
dechamp profile image
DeChamp

seriously love this! Thanks for the share.

Collapse
 
simonholdorf profile image
Simon Holdorf

Sure thing 😄

Collapse
 
bl4met profile image
JD Taft

The most fun I had with this was keeping the pointer just out of reach. This probably says more about me than I'd rather admit. 🤣

Collapse
 
vagoel profile image
Varun

Brilliant skills and imagination.

Collapse
 
axelledrouge profile image
AxelleDRouge

ha so funny, thanks for the share that made my day

Collapse
 
jlapitan profile image
Joell Lapitan

I caught the button by using the Tab :)

I remember doing this same trick before with Visual Basic 6, more than a decade ago :)

Collapse
 
castroalves profile image
Cadu de Castro Alves

That's very funny!

Collapse
 
ajdajddlek123 profile image
ajdajddlek

The person who created this post is a very nice person. It seems like a lot of people are having fun here. I love how you share posts every day. 메이저사이트

Collapse
 
fultonbrowne profile image
Fulton Browne

This is amazing

Collapse
 
shadowwarior5 profile image
Konstantin Meiklyar

Amazing!

Collapse
 
eaich profile image
Eddie • Edited

Amazing! I needed this today. TY

Collapse
 
silampawar profile image
SamP

This is so cool! Loved it.

Collapse
 
mnabeelp profile image
Mohammed Nabeel

Wow

Collapse
 
hb profile image
Henry Boisdequin

If you click the button, the current state is shaka 😂

Collapse
 
naveenkharwar profile image
Naveen Kharwar

hahaha cool

Collapse
 
timkovik profile image
timkovik

бьт

Collapse
 
gitdemon profile image
Angel Centeno

This is hilarious! I had to share it with my team.