hypot()

The hypot() function takes a list of values and returns the square root of the sum of their squares. .hypotenuse { width: hypot(30vmin, 40vmin); /* 50vmin */ } Most of the time, we’ll pass it two arguments: hypot(A, B). Think of it like Read more…

saturate()

The CSS saturate() function increases or decreases an element’s color saturation level, or in other words, the intensity of the element’s color. The saturate() is used alongside the filter or backdrop-filter properties. img { filter: saturate(200%); } CodePen Embed Fallback The CSS saturate() function is defined in the Filter Effects Module Read more…

justify-self

The CSS justify-self property aligns an individual element, overriding its parent container’s justify-items value. .container { display: grid; grid-template-columns: 2fr 1fr; justify-items: center; /* overrides this value */ } .item:nth-child(1) { justify-self: start; } .item:nth-child(2) { justify-self: center; } .item:nth-child(3) { justify-self: end; Read more…