261
u/superluminary Nov 22 '21
That's really clever. So you've got two absolutely positioned SVGs, with the skeleton on top, then you're using some JavaScript to move a clippath over the skeleton, so you only see the bit inside the frame.
I really like it, and the heart is an excellent touch.
-30
150
u/prudentj Nov 22 '21
Not going to lie I got really nervous when it went into the underwear region...
47
u/SnipeyMcSnipe Nov 22 '21
do you have weenaphobia?
18
0
u/SlashdotDiggReddit full-stack ... aren't we all? Nov 23 '21
More than likely they thought it might be NSFW.
15
15
u/kumonmehtitis Nov 23 '21
Someone needs to go back to anatomy class… there’s no bones there, pal.
13
-3
u/PowerfulProfessor305 front-end Nov 23 '21
LOL 😂
This Sub-Reddit is not for that kinda stuff so chill 🤙
65
u/PhoenixDBlack full-stack Nov 22 '21
It looks amazing, but for some reason I really expected a bulging cock in the nether-area
22
6
0
u/Agile_Persimmon2196 Nov 22 '21
looks amazing, but for some reason I really expected a bulging cock in the nether-area
lol
20
u/timmense Nov 22 '21
Why did you choose to do Number(position.replace('px', '').trim())) over parseFloat(position))?
11
Nov 23 '21
I did not realize parseFloat ignored characters like that. I'll have to keep it in mind.
5
u/timmense Nov 23 '21
Maybe it was to make the intent clearer. Still I think parseFloat requires less cognitive overhead.
1
u/Affectionate_Ad_5358 Nov 23 '21
I think simply coalsecing with + works too Check the output of +"123.45px"
2
10
u/StaticCharacter Nov 23 '21
It should actually be
[...position].filter(function someRandomUselessName(eachElementInTheSpreadStringISuppose) { return [..."0123456789"].includes(eachElementInTheSpreadStringISuppose) && eachElementInTheSpreadStringISuppose.test(/^\d+$/) }).join(String(""))|| I wrote this mobile and halfway no longer thought my /s joke was funny but I spent so much time fat thumbing it out that I am committed to making 5he comment ily glhf ||
1
76
u/bkdotcom Nov 22 '21
I spotted a bug.
When you hover over his chest, his heart shows up.
No other muscle tissue is visible elsewhere.
/s
6
u/e0b1ff Nov 22 '21
Surly that's a valentine's egg, not a bug
2
32
u/hutilicious Nov 22 '21
Cool i really need to pack this into my next project no matter what the project is about
16
Nov 23 '21
ok we gonna make a landing page for customer's business but what do you guys think of a man with just white underwear and x-ray feature?
12
4
4
2
u/Guilty_Serve Nov 22 '21
I had to do a similar concept that I’m guessing you used, but during an interview. The difference was I had to magnify an image. Hardest interview of my life. I figured it out eventually, but it almost made my full-stack self with strengths in backend, buckle under pressure.
4
u/_Invictuz Nov 22 '21
Please share, I wouldn't even know where to begin!
1
u/Guilty_Serve Nov 23 '21
2
u/_Invictuz Nov 23 '21
Wow, it actually doesn't look too complicated from the amount of code. Thanks for sharing!
2
2
u/locadelosgatos Nov 23 '21
I made something like this for work but on real images and using caman js. I work at a dental imaging software company. The glass could also magnify the image at the spot.
2
2
2
1
1
1
1
1
1
1
u/dailydrudge Nov 22 '21
Very nice! Would also be a cool nighttime effect; i.e. mostly dark, and the cursor is a spotlight / flashlight to illuminate the darkness.
1
1
1
1
1
1
1
1
u/JB-the-czech-guy Nov 23 '21
what a wasted opportunity for a surprize dick joke (like a bone in the pelvis zone)
1
1
1
0
Nov 23 '21
[deleted]
1
u/Dontwant2leave Nov 29 '21
There are tutorials in the comments. The magnifying glass one from w3schools goes over html css and JavaScript required for something like this
102
u/fvitas Nov 22 '21
Codepen link: https://codepen.io/FilipVitas/pen/jOLXVXK