Web Development

What’s !important #11: 3D Voxel Scenes, Flying Focus, CSS Syntaxes, and More

If 3D voxel scenes (that you can style), flying focus animations, or new CSS syntaxes sound like your kinda thing, then this issue of What’s !important is definitely for you. Also featuring Polypane, scroll-driven animations, and the latest web platform updates from Chrome 148 and Safari 26.5. Heerich.js — create 3D voxel scenes Inspired by

What’s !important #11: 3D Voxel Scenes, Flying Focus, CSS Syntaxes, and More Read More »

rotateX()

The CSS rotateX() function rotates an element around the x-axis in a three-dimensional space. Specifically, it vertically flips the element, making it tilt backward or forward, depending on the angle set. It is one of many transform functions used in the transform property. The x-axis is the axis of rotation, so the element turns vertically. Imagine a pin is

rotateX() Read More »

rotateY()

The CSS rotateY() function rotates an element around its vertical y-axis. Specifically, it horizontally flips an element from left to right (or right to left for that matter). It is one of many transform functions used along with the transform property. The y-axis is the axis of rotation, so the element turns horizontally. Imagine a pin is stuck to

rotateY() Read More »

rotateZ()

The CSS rotateZ() function rotates an element around its z-axis, so clockwise or counterclockwise. While it produces the same visual effect as the rotate() function, it’s best used in 3D transformations. It is one of many transform functions used along with the transform property. CodePen Embed Fallback In the demo, we first set up a stage for our 3D element with perspective.

rotateZ() Read More »

rotate()

The CSS rotate() function spins an element either clockwise or counterclockwise in a 2D plane. It is one of many transform functions used in the transform property. For example, using rotate() we can rotate the hand around the clock: .seconds-hand { transform: rotate(var(–deg)); transform-origin: bottom center; } CodePen Embed Fallback For rotating elements tri-dimensionally, consider using rotateX() and rotateY(). The rotate() functions is defined

rotate() Read More »