Modern CSS Features of 2025
Recently supported CSS features and units worth adopting now, from dynamic viewport units to conditional values.
Content tagged css-2025
Tutorial:The CSS
shape()Function: Responsiveclip-pathShapesCut responsive curved shapes with CSS shape() and clip-path.Draw responsive clip-path shapes with the CSS shape() function: lines, curves and arcs in %, calc() and custom properties, plus browser support and fallbacks.Tutorial:Pure CSS Carousels with
::scroll-markerand::scroll-button()Build carousel dots and arrows with pure CSS.Build CSS-only carousel dots and prev/next arrows with ::scroll-marker, ::scroll-button() and :target-current: no JavaScript, plus accessibility and fallbacks.Tutorial:Animating
height: autoin CSS withinterpolate-sizeAnimate height to auto in pure CSS, no JavaScript.Animate height: auto in CSS with interpolate-size and calc-size(): smooth accordions and details panels without JavaScript, plus fallbacks and reduced motion.Tutorial:Auto-Growing Textareas with CSS
field-sizing: contentAuto-grow textareas with one line of CSS, no JavaScript.Make a textarea grow and shrink with its text using CSS field-sizing: content: no scrollHeight JavaScript, plus size limits, fallbacks and browser support.Tutorial:CSS Custom Functions with
@function: Reusable Logic Without SassNative, reusable CSS functions with parameters — no Sass needed.Define native CSS custom functions with @function: typed parameters, defaults, fallbacks for older browsers, how they differ from Sass, and when to use them.