Live data from Hacker News

Show HN: Emoji to Scale

javier.xyz

11–20 of 130 posts

Re: Show HN: Emoji to Scale

#11
post #9

Funny idea, but lot of these seem off. - A chicken egg is taller than 5cm. - I would say a tulip is bigger than a phone. - The okay hand sign says it's 21 cm.My hands are larger than average, but definitely smaller than 21cm. - A duck isn't bigger than a goat. - An elephant is smaller than a house.

I think some measurements are widths and some are heights.

Re: Show HN: Emoji to Scale

#15
Neat concept.

As someone not very up-to-date in Web UI techniques, I was curious as to how the array was being advanced on scroll. Unfortunately, it looks like the answer is basically polling. The code constantly calls window.requestAnimationFrame(), checking window.pageYOffset. This means that the page is constantly doing work, even at idle.

Surely the more correct way is to install an onscroll handler or something, right?

Re: Show HN: Emoji to Scale

#16

What is the yellow smiley face that's twice as large as Japan but smaller than the earth and oh god I can see it in the sky it's look--

oh nm that's the moon

Definitely had the same question, and the exact same realisation. We must be Android users!

Re: Show HN: Emoji to Scale

#18

Neat concept. As someone not very up-to-date in Web UI techniques, I was curious as to how the array was being advanced on scroll. Unfortunately, it looks like the answer is basically polling. The code constantly calls window.requestAnimationFrame(), checking window.pageYOffset. This means that the page is constantly doing work, even at idle. Surely the more correct way is to install an onscroll handler or something,…

The correct way would be a mix of those two strategies: an onscroll handler that schedules an update through requestAnimationFrame (ensuring that it only gets scheduled once until the next frame update actually executes).
Post reply on HN