home.social

#conicgradient β€” Public Fediverse posts

Live and recent posts from across the Fediverse tagged #conicgradient, aggregated by home.social.

  1. Remake of an old, old @codepen animation with 2025 #CSS codepen.io/thebabydino/pen/jOZ

    Now using `conic-gradient()` + `mask` instead of an SVG segments ring image. CSS `grid` for layout. Container query units so ring sizes adapt to number of rings (passed to CSS via a var) & available space. And more, check it out! 🐱

    Original code preserved in Pen description for web history.

    #conicGradient #cssGradient #code #coding #frontend #cssGrid #cssLayout #web #dev #webDev #webDevelopment #containerQueries

  2. Saw a @codepen demo using... a lot! of elements (screen 1) and quite a bit of #CSS to create a simple loader, so I forked it and made a 1 div version (screen 2) in under 30 CSS declarations (gradients, mask, variables to only change --c0 and --c1 values for 2nd loader): codepen.io/thebabydino/pen/Pwo

    #cssMask #cssGradient #conicGradient #maths #trigonometry #Sass #loader #web #dev #webDev #webDevelopment #code #coding #frontend #cssAnimation

  3. Know the animated 🌈 border + glow effect that's all the rage? It's normally done by adding an opaque cover on top of two 🌈 layers.

    But what if we wanted a (semi)transparent background within the border? It's possible with pure #CSS!

    Heavily commented on @codepen codepen.io/thebabydino/pen/KwP

    #cssGradient #conicGradient #code #web #dev #webDev #webDevlopment #frontend #coding #cssAnimation #rainbow

  4. Made this loader codepen.io/thebabydino/pen/Bay half a decade ago. Then it only worked in Chromium browsers with the Experimental Web Platform features flag enabled.

    As of 2024, it works cross-browser, no flags needed. Since someone hearting it reminded me of its existence, updated support info.

    #CSS #code #coding #frontend #web #webDev #dev #webDevelopment #mask #cssMask #cssGradient #conicGradient #cssVariables #cssAnimation