Basic use
example.css
transform: translateX(calc(tan(30deg) * 40px));
The tan() function returns the tangent of an angle for CSS math expressions.
transform: translateX(calc(tan(30deg) * 40px));transform: translateX(calc(tan(30deg) * 40px));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