CSS-Tricks Follow rotateZ() The rotateZ() function rotates an element around its z-axis, so clockwise or counterclockwise. rotateZ() originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well. https://css-tricks.com/almanac/functions/r/rotatez/ css-tricks.com