Basic use
example.css
translate: calc(sign(-2) * 10px);
The sign() function returns -1, 0, or 1 depending on the sign of its argument.
translate: calc(sign(-2) * 10px);translate: calc(sign(-2) * 10px);Keep practicing CSS functions.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful