logoalt Hacker News

fluoridationyesterday at 11:33 PM5 repliesview on HN

Wait until they realize that on mobile they can use accelerometer data to keep the element in the same position in space across translations of the device.


Replies

Izkatatoday at 2:32 AM

Translations? Not far enough, got to include rotations: https://developer.mozilla.org/en-US/docs/Web/API/Device_orie...

(And yes, CSS can rotate around all three axes, so you could make a div that resists rotating your device in addition to resisting translation...)

jagged-chiselyesterday at 11:41 PM

Wait, I have to hold my phone how in order to see the div? ಠ_ಠ

show 3 replies
LocalHtoday at 3:35 AM

Stop giving them ideas! :(

p1mrxtoday at 1:25 AM

So the content falls down at 10 m/s^2 unless you're falling alongside it.

show 1 reply
1bpptoday at 1:13 AM

position: hyperfixed;