Feb 5 2022 CSS container queries explained with practical WordPress examples Use CSS container queries to style WordPress components based on their parent container width instead of the viewport with @container rules.
Jan 5 2022 CSS animations and keyframes explained for WordPress theme developers Use CSS keyframe animations to create fade-in entrances, loading spinners, and skeleton screens without JavaScript in WordPress themes.
Dec 5 2021 CSS position sticky explained with practical examples Use CSS position sticky for headers, sidebars and table headers without JavaScript, and fix the most common reasons it stops working.
Nov 15 2021 Use the Intersection Observer API for scroll animations in WordPress Trigger CSS animations and lazy-load iframes when elements enter the viewport using the Intersection Observer API.
Aug 5 2021 Use CSS custom properties in WordPress themes Define CSS variables for colours, spacing and fonts at :root and reference them throughout your WordPress theme stylesheet.
Jun 15 2021 Detect mobile devices and screen size with JavaScript Use matchMedia, window.innerWidth and navigator.maxTouchPoints to detect device type reliably in JavaScript.