DEV Community

Cover image for What are the most interesting HTML/JS/DOM/CSS hacks that you learn in the year?
Alex
Alex

Posted on

What are the most interesting HTML/JS/DOM/CSS hacks that you learn in the year?

Top comments (2)

Collapse
 
amplanetwork profile image
Ampla Network • Edited

Truncate small numbers without relying to the Js Engine.

2.78 >> 0 // = 2
// massively used in videogame coding
// to avoid half pixel antialiasing
Enter fullscreen mode Exit fullscreen mode
Collapse
 
manishfoodtechs profile image
manish srivastava

CSS: calc(12px + (100vh -360px) /280)
I learnt we can use formula in css.