WordPress Developer Ukraine, Kyiv
CSS Individual Transform Properties: translate, rotate, scale

CSS Individual Transform Properties: translate, rotate, scale

translate, rotate and scale as separate CSS properties transform is one property with a list of functions. A hover effect that only wants to scale a card has to repeat the card’s existing translate(), or it removes it; an animation of the rotation overwrites the position set elsewhere. The individual transform properties translate, rotate and…
CSS @starting-style: Animating Elements on First Render

CSS @starting-style: Animating Elements on First Render

CSS @starting-style: entry animations from display: none A dropdown that fades in when it opens sounds trivial, and in CSS it used to be impossible without JavaScript. The element goes from display: none to display: block, and a transition needs a “before” style to start from, but an element that was not rendered has none.…
View Transitions API: Smooth Page Transitions in WordPress Themes

View Transitions API: Smooth Page Transitions in WordPress Themes

View Transitions in a WordPress theme: smooth page changes without a framework A click on a link in a WordPress site replaces the whole page at once. Single-page apps animate between states, and themes copied that with AJAX navigation and animation libraries. The View Transitions API lets the browser do the animation: it takes a…
CSS Scroll-Driven Animations with animation-timeline in WordPress Themes

CSS Scroll-Driven Animations with animation-timeline in WordPress Themes

Scroll-driven animations with animation-timeline in a WordPress theme Fade-in effects for sections and a reading progress bar used to need JavaScript: an Intersection Observer or a scroll listener that sets classes or styles. With animation-timeline, a normal CSS @keyframes animation runs along the scroll position instead of along time. The browser does it off the…