Alex.Party

Fresh Hot CSS: Trig Functions

2/5/2026

Today’s topic is Trig Functions. I feel like Trig Functions don’t get a lot of love because nobody seems to know what you would actually use them for. I don’t get to go over it in the talk very much. Let’s actually show a demo of where you might want to use something like this.

Trig Functions

The Trig functions that are now available are as follows:

If you have ever studied Trigonometry, then these do exactly what you think they do. If you didn’t, this is all extremely helpful for calculating angles and lengths of sides of triangles. Math stuff.

Let’s talk about where you’d use them.

Placing things in a circle

This is the classic example that shows off being able to calculate the placement of multiple items based on their angle relative to each other.

CLOCKS!!

You can now easily make a clock that will have hands that are correct

Browser Support

These functions are well supported, and can absolutely be used, today!

More Resources