CSS To Get Support For Trigonometry Functions (zdnet.com)
CSS, or the language that styles and arranges how page elements appear on a website, will soon get support for trigonometry functions such as sine, cosine, tangent, and others, ZDNet is reporting. From the report: The new trigonometry functions were approved at the end of February in a meeting of the World Wide Web Consortium (W3C) CSS Working Group. The new functions approved and set to join the CSS standard are: Sine - sin(), cosine - cos(), tangent - tan(), arccosine - acos(), arcsine - asin(), arctangent - atan(), arctangent (of two numbers x and y) - atan2(), square root - sqrt(), square root of the sum of squares of its arguments - hypot(), and power of - pow().
This is needed for CSS animations. Now you can do some things like moving an object along a sine path with CSS transitions, but this will be more powerful and in many cases - more intuitive.
Actually that exists in native CSS: https://developer.mozilla.org/...
Alas, as long as you need support for dreaded IE11, you're out of luck: https://caniuse.com/#feat=css-...