home.social

#csstransform — Public Fediverse posts

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

fetched live
  1. So I saw a demo in the @codepen Spark and I liked the idea, but it was too JS-heavy for my taste, plus I would have preferred the rotation animations to be "hinged" around the top/ bottom edge depending on direction.

    So I did it with pure #CSS on scroll codepen.io/thebabydino/pen/JoK

    cc @bramus

    #cssScrollAnimation #scrollEffect #code #cssTransforms #cssTransform #css3D #3D #coding #frontend #cssLayout #web #dev #webDev #webDevelopment #cssGrid #cssFlex #flexbox #cssVariables #cssTransition

  2. So I saw a demo in the @codepen Spark and I liked the idea, but it was too JS-heavy for my taste, plus I would have preferred the rotation animations to be "hinged" around the top/ bottom edge depending on direction.

    So I did it with pure #CSS on scroll codepen.io/thebabydino/pen/JoK

    cc @bramus

    #cssScrollAnimation #scrollEffect #code #cssTransforms #cssTransform #css3D #3D #coding #frontend #cssLayout #web #dev #webDev #webDevelopment #cssGrid #cssFlex #flexbox #cssVariables #cssTransition

  3. There are n equally sized items arranged in half a circle on the left, from top to bottom, with the same gap g in between. How do you do it? Cross-browser, same #CSS (≤20 declarations) should work when changing their number/ gap.

    Try to code it yourself before checking my solution reddit.com/r/Frontend/comments

    Live on @codepen: codepen.io/thebabydino/pen/ZYQ

    #Maths #geometry #trigonometry #code #cssMaths #coding #frontend #cssLayout #webDev #webDevelopment #web #dev #cssGrid #cssTransform #cssVariables

  4. There are n equally sized items arranged in half a circle on the left, from top to bottom, with the same gap g in between. How do you do it? Cross-browser, same #CSS (≤20 declarations) should work when changing their number/ gap.

    Try to code it yourself before checking my solution reddit.com/r/Frontend/comments

    Live on @codepen: codepen.io/thebabydino/pen/ZYQ

    #Maths #geometry #trigonometry #code #cssMaths #coding #frontend #cssLayout #webDev #webDevelopment #web #dev #cssGrid #cssTransform #cssVariables

  5. Because someone just hearted this demo I made over half a decade ago on @codepen:

    codepen.io/thebabydino/pen/bGE

    It's a pure #CSS Platonic solids gallery. They animate on hover/ tap. All is computed, there are no magic numbers.

    #Maths #3D #Geometry #trigonometry #clipPath #cssClipPath #code #frontend #web #dev #webDev #webDevelopment #coding #transform #cssTransform #css3D

  6. Because someone just hearted this demo I made over half a decade ago on @codepen:

    codepen.io/thebabydino/pen/bGE

    It's a pure #CSS Platonic solids gallery. They animate on hover/ tap. All is computed, there are no magic numbers.

    #Maths #3D #Geometry #trigonometry #clipPath #cssClipPath #code #frontend #web #dev #webDev #webDevelopment #coding #transform #cssTransform #css3D

  7. I turn 13 on @codepen today, so after my most hearted demos (mastodon.social/@anatudor/1144)... here are 13 of MY personal faves!

    1️⃣ Pure CSS music toy - this one's a really special one for me codepen.io/thebabydino/pen/WNG
    #CSS transforms for the #3D, CSS variables for the dynamic shading.

    The how 😼 youtube.com/watch?v=_CV364uqP3U

    #css3d #transform #cssTransform #filter #cssFilter #frontend #code #coding #web #dev #webDev #webDevelopment

  8. I turn 13 on @codepen today, so after my most hearted demos (mastodon.social/@anatudor/1144)... here are 13 of MY personal faves!

    1️⃣ Pure CSS music toy - this one's a really special one for me codepen.io/thebabydino/pen/WNG
    #CSS transforms for the #3D, CSS variables for the dynamic shading.

    The how 😼 youtube.com/watch?v=_CV364uqP3U

    #css3d #transform #cssTransform #filter #cssFilter #frontend #code #coding #web #dev #webDev #webDevelopment

  9. Here's a little image gallery demo I made on @codepen
    codepen.io/thebabydino/pen/LEY

    Almost pure #CSS. Minimal #JS for changing the index of the current image on click.

    For the how ensuring the #3D rotated side images have a given 2D projection on the screen, see stackoverflow.com/a/75063640/1

    #cssTransforms #cssTransform #coding #web #dev #webDev #webDevelopment #code #frontend #Maths #geometry

  10. Here's a little image gallery demo I made on @codepen
    codepen.io/thebabydino/pen/LEY

    Almost pure #CSS. Minimal #JS for changing the index of the current image on click.

    For the how ensuring the #3D rotated side images have a given 2D projection on the screen, see stackoverflow.com/a/75063640/1

    #cssTransforms #cssTransform #coding #web #dev #webDev #webDevelopment #code #frontend #Maths #geometry

  11. 3️⃣ 1044 ♥️ Pure #CSS gravity button codepen.io/thebabydino/pen/bGz - a bit mixed about it, it was just an exercise in getting a certain result - don't use it in the wild!

    My first ever @codepen demo to get to 1K ♥️. And it got copied left and right.
    ¯\_(ツ)_/¯

    #cssTransforms #cssTransform #coding #web #dev #webDev #webDevelopment #code #frontend

  12. 3️⃣ 1044 ♥️ Pure #CSS gravity button codepen.io/thebabydino/pen/bGz - a bit mixed about it, it was just an exercise in getting a certain result - don't use it in the wild!

    My first ever @codepen demo to get to 1K ♥️. And it got copied left and right.
    ¯\_(ツ)_/¯

    #cssTransforms #cssTransform #coding #web #dev #webDev #webDevelopment #code #frontend

  13. I turn 13 on @codepen in June, so here are my 13 most hearted demos:

    1️⃣ 1092 ♥️ #CSS infinite #scroll gallery codepen.io/thebabydino/pen/XJr - my only demo to ever get to 1K ♥️ without being in most hearted of the year first

    mostly CSS scroll-driven animations + tiniest bit of JS (~200 bytes for infinity part)

    #cssVariables #cssTransforms #coding #code #frontend #cssTransform #3D #web #webDev #webDevelopment #dev #maths #mathematics #geometry #filter

  14. I turn 13 on @codepen in June, so here are my 13 most hearted demos:

    1️⃣ 1092 ♥️ #CSS infinite #scroll gallery codepen.io/thebabydino/pen/XJr - my only demo to ever get to 1K ♥️ without being in most hearted of the year first

    mostly CSS scroll-driven animations + tiniest bit of JS (~200 bytes for infinity part)

    #cssVariables #cssTransforms #coding #code #frontend #cssTransform #3D #web #webDev #webDevelopment #dev #maths #mathematics #geometry #filter

  15. Someone just hearted this demo I made on @codepen back in 2018 and I noticed it still said it only works in Blink browsers.
    codepen.io/thebabydino/pen/BPx

    Not anymore! As of the summer of '24, Firefox also supports registering & animating custom properties! So this is now cross-browser! 🎉🥳

    #CSS #3D #cssTransforms #cssTransform #neon #rainbow #code #coding #frontend #web #webDevelopment #dev #webDev

  16. Someone just hearted this demo I made on @codepen back in 2018 and I noticed it still said it only works in Blink browsers.
    codepen.io/thebabydino/pen/BPx

    Not anymore! As of the summer of '24, Firefox also supports registering & animating custom properties! So this is now cross-browser! 🎉🥳

    #CSS #3D #cssTransforms #cssTransform #neon #rainbow #code #coding #frontend #web #webDevelopment #dev #webDev

  17. Losing it. This demo is broken in a very weird way in Chrome (all fine for Firefox & Epiphany).

    codepen.io/thebabydino/pen/zqG

    The shape is made up of 3 parts = 1 octagonal prism + 2 square cupolae.

    The faces of only one of the two square cupolae are flattened in the parent plane. Can't get it. #CSS #code #coding #frontend #web #dev #webDev #webDevelopment #3d #transform #css3d #cssTransform

  18. Losing it. This demo is broken in a very weird way in Chrome (all fine for Firefox & Epiphany).

    codepen.io/thebabydino/pen/zqG

    The shape is made up of 3 parts = 1 octagonal prism + 2 square cupolae.

    The faces of only one of the two square cupolae are flattened in the parent plane. Can't get it. #CSS #code #coding #frontend #web #dev #webDev #webDevelopment #3d #transform #css3d #cssTransform

  19. A fun little scroll-driven thing I made. The text is white over the image, but the image isn't static, it rotates on scroll. 😼

    Here's a detailed explanation of the how behind reddit.com/r/css/comments/1jyu

    Live on @codepen codepen.io/thebabydino/pen/dPP

    Also uses container queries, CSS trigonometric functions.

    #CSS #scroll #cssAnimation #code #web #scrollAnimation #frontend #coding #dev #cssVariables #cssTransform #webDev #webDevelopment #cssMaths #trigonometry

  20. A fun little scroll-driven thing I made. The text is white over the image, but the image isn't static, it rotates on scroll. 😼

    Here's a detailed explanation of the how behind reddit.com/r/css/comments/1jyu

    Live on @codepen codepen.io/thebabydino/pen/dPP

    Also uses container queries, CSS trigonometric functions.

    #CSS #scroll #cssAnimation #code #web #scrollAnimation #frontend #coding #dev #cssVariables #cssTransform #webDev #webDevelopment #cssMaths #trigonometry

  21. Because someone just hearted this decade old @codepen.io #3D demo, I gave it a quick 2025 remake using ✳️ modern #CSS features ✳️ - grid instead of `position: absolute`, CSS variables to avoid setting multiple properties in Sass loops, `color-mix()` and more!

    codepen.io/thebabydino/pen/NNx

    Based on a GIF by @sasj, originally CSS-ed 9+ years ago live on CodePen in 10 minutes and 50 lines of SCSS. Now the code is even more compact.

    #cssTransform #code #coding #frontend #web #dev #webDev #webDevelopment

  22. Because someone just hearted this decade old @codepen.io #3D demo, I gave it a quick 2025 remake using ✳️ modern #CSS features ✳️ - grid instead of `position: absolute`, CSS variables to avoid setting multiple properties in Sass loops, `color-mix()` and more!

    codepen.io/thebabydino/pen/NNx

    Based on a GIF by @sasj, originally CSS-ed 9+ years ago live on CodePen in 10 minutes and 50 lines of SCSS. Now the code is even more compact.

    #cssTransform #code #coding #frontend #web #dev #webDev #webDevelopment

  23. Another little @codepen demo: pure #CSS double ball 🎱 helix codepen.io/thebabydino/pen/Jre

    (yet another demo that cold be simplified by the `position: absolute` to `display: grid` switch for stacking and in the future, further simplified by `sibling-index()`)

    #3D #helix #cssTransform #code #coding #web #dev #webDev #webDevelopment #frontend

  24. Another little @codepen demo: pure #CSS double ball 🎱 helix codepen.io/thebabydino/pen/Jre

    (yet another demo that cold be simplified by the `position: absolute` to `display: grid` switch for stacking and in the future, further simplified by `sibling-index()`)

    #3D #helix #cssTransform #code #coding #web #dev #webDev #webDevelopment #frontend

  25. For example, nowadays I wouldn't use `position: absolute` + offsets + negative `margin` 🫤 to stack and place elements in the middle before applying transforms to position them in 3D.

    I would use grid now. 😻

    mastodon.social/@anatudor/1107

    #3D #css3D #cssTransform #code #coding #web #dev #webDev #webDevelopment #frontend #CSS

  26. For example, nowadays I wouldn't use `position: absolute` + offsets + negative `margin` 🫤 to stack and place elements in the middle before applying transforms to position them in 3D.

    I would use grid now. 😻

    mastodon.social/@anatudor/1107

    #3D #css3D #cssTransform #code #coding #web #dev #webDev #webDevelopment #frontend #CSS

  27. Someone hearted this old thing codepen.io/thebabydino/pen/GNY on @codepen and I noticed it said Chrome-only - tested and it's not the case anymore, it works cross-browser.

    Do note that it's 8+ years old, before #CSS variables, grid, newer functions and could be much simplified using these.

    #3D #css3D #cssTransform #code #coding #web #dev #webDev #webDevelopment #frontend

  28. Someone hearted this old thing codepen.io/thebabydino/pen/GNY on @codepen and I noticed it said Chrome-only - tested and it's not the case anymore, it works cross-browser.

    Do note that it's 8+ years old, before #CSS variables, grid, newer functions and could be much simplified using these.

    #3D #css3D #cssTransform #code #coding #web #dev #webDev #webDevelopment #frontend

  29. Please don't do this for a marquee effect 😭

    So many problems with it. 2 animations are completely unnecessary. You should animate translation, not left.

    +it's possible without duplication, especially in non-clickable icons case like here, where the idea was to emulate the Jamstack infinitely sliding longos - see this @codepen demo codepen.io/thebabydino/pen/bGP

    #CSS #SVG #filter #svgFilter #marquee #code #coding #frontend #cssTransform #web #dev #webDev #webDevelopment

  30. Please don't do this for a marquee effect 😭

    So many problems with it. 2 animations are completely unnecessary. You should animate translation, not left.

    +it's possible without duplication, especially in non-clickable icons case like here, where the idea was to emulate the Jamstack infinitely sliding longos - see this @codepen demo codepen.io/thebabydino/pen/bGP

    #CSS #SVG #filter #svgFilter #marquee #code #coding #frontend #cssTransform #web #dev #webDev #webDevelopment

  31. Quick #CSS #3D carousel on @codepen codepen.io/thebabydino/pen/eYX

    Auto-rotates on load, but it can also be paused and navigated through via the buttons.

    Minimal JS. All 3D is CSS. Heavily commented.

    #code #coding #frontend #web #dev #webDev #webDevelopment #cssTransform

  32. Quick #CSS #3D carousel on @codepen codepen.io/thebabydino/pen/eYX

    Auto-rotates on load, but it can also be paused and navigated through via the buttons.

    Minimal JS. All 3D is CSS. Heavily commented.

    #code #coding #frontend #web #dev #webDev #webDevelopment #cssTransform

  33. Because someone just hearted this #3D demo on @codepen
    codepen.io/thebabydino/pen/wvy

    This was one of the very first demos I made using #CSS trigonometric functions back in '22. They were only supported by Safari at that point and it was a lot of trouble to get to actually try this as I'm on Linux.

    #maths #trigonometry #mathematics #cssMaths #code #coding #frontend #web #dev #webDev #webDevelopment #css3D #cssTransform

  34. Because someone just hearted this #3D demo on @codepen
    codepen.io/thebabydino/pen/wvy

    This was one of the very first demos I made using #CSS trigonometric functions back in '22. They were only supported by Safari at that point and it was a lot of trouble to get to actually try this as I'm on Linux.

    #maths #trigonometry #mathematics #cssMaths #code #coding #frontend #web #dev #webDev #webDevelopment #css3D #cssTransform