home.social

#csstransforms — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #csstransforms, 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. Hi, Mastodon 🦣 - could you help me out?

    If you can test in actual Safari, is this on-scroll demo glitchy there too like it is for me in Epiphany?

    cdpn.io/pen/debug/JoKqRjZ

    If you cannot test in actual Safari, boosts appreciated.

    Thank you! 🙏

    PS - Yes, I know it doesn't work in Firefox, it's because of this bug some rando filed a couple of years ago... bugzilla.mozilla.org/show_bug.

    #CSS #cssScrollAnimation #code #coding #web #dev #webDev #webDevelopment #frontend #cssAnimation #cssTransforms

  4. Hi, Mastodon 🦣 - could you help me out?

    If you can test in actual Safari, is this on-scroll demo glitchy there too like it is for me in Epiphany?

    cdpn.io/pen/debug/JoKqRjZ

    If you cannot test in actual Safari, boosts appreciated.

    Thank you! 🙏

    PS - Yes, I know it doesn't work in Firefox, it's because of this bug some rando filed a couple of years ago... bugzilla.mozilla.org/show_bug.

    #CSS #cssScrollAnimation #code #coding #web #dev #webDev #webDevelopment #frontend #cssAnimation #cssTransforms

  5. One of my earliest #CSS #3D demos on @codepen: how to (de)construct a dodecahedron codepen.io/thebabydino/pen/ALQ

    A dodecahedron is one of the 5 regular polyhedra = made up of only identical regular polygon faces. Regular polygons have all edge lengths and vertex angles equal.

    #geometry #Maths #code #coding #css3D #cssTransforms #transform #frontend #polyhedron #polyhedra #PlatonicSolid #dodecahedron #cssAnimation #web #dev #webDev #webDevelopment #trigonometry #Sass #SCSS

  6. One of my earliest #CSS #3D demos on @codepen: how to (de)construct a dodecahedron codepen.io/thebabydino/pen/ALQ

    A dodecahedron is one of the 5 regular polyhedra = made up of only identical regular polygon faces. Regular polygons have all edge lengths and vertex angles equal.

    #geometry #Maths #code #coding #css3D #cssTransforms #transform #frontend #polyhedron #polyhedra #PlatonicSolid #dodecahedron #cssAnimation #web #dev #webDev #webDevelopment #trigonometry #Sass #SCSS

  7. postcss-color-golf plugin 1.2.0 released!
    github.com/xero/postcss-color-

    rgb(255,0,0) → red
    aliceblue → #f0f8ff
    #aabbcc#abc;
    rgba(255, 170, 187) → #fab
    rgba(255, 170, 187, 0.8) → #fabcc
    rgb(255, 255, 255, 1) → #fff
    rgb(0, 255, 0, 0.8) → #0f0c
    fuchsia → #f0f

    #postcss #css #csstransforms #color #codegolf #golf #plugin

  8. postcss-color-golf plugin 1.2.0 released!
    github.com/xero/postcss-color-

    rgb(255,0,0) → red
    aliceblue → #f0f8ff
    #aabbcc#abc;
    rgba(255, 170, 187) → #fab
    rgba(255, 170, 187, 0.8) → #fabcc
    rgb(255, 255, 255, 1) → #fff
    rgb(0, 255, 0, 0.8) → #0f0c
    fuchsia → #f0f

    #postcss #css #csstransforms #color #codegolf #golf #plugin

  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. Haven't had it in me to do anything for the past week's #CodePenChallenge, so here's a demo from earlier this year that fits: #CSS infinite scroll gallery codepen.io/thebabydino/pen/XJr

    One of my most hearted demos ever & my only one to get over 1000 ❤️ without being in the most hearted of previous year.

    #SVG #cssGrid #scrollAnimation #filter #svgFilter #cssFilter #cssLayout #3D #cssTransforms #code #coding #frontend #web #dev #webDev #webDevelopment

  18. Haven't had it in me to do anything for the past week's #CodePenChallenge, so here's a demo from earlier this year that fits: #CSS infinite scroll gallery codepen.io/thebabydino/pen/XJr

    One of my most hearted demos ever & my only one to get over 1000 ❤️ without being in the most hearted of previous year.

    #SVG #cssGrid #scrollAnimation #filter #svgFilter #cssFilter #cssLayout #3D #cssTransforms #code #coding #frontend #web #dev #webDev #webDevelopment

  19. I made a thing: scroll-driven, almost pure #CSS infinite circular gallery rotation - check it out on @codepen
    codepen.io/thebabydino/pen/XJr

    Using scroll-driven animations and the tiniest bit of JS for the infinity part of it.

    Made with 🖤 for this week's #CodePenChallenge.

    cc @bramus

    #SVG #cssGrid #scrollAnimation #filter #svgFilter #cssFilter #cssLayout #3D #cssTransforms #code #coding #frontend #web #dev #webDev #webDevelopment

  20. I made a thing: scroll-driven, almost pure #CSS infinite circular gallery rotation - check it out on @codepen
    codepen.io/thebabydino/pen/XJr

    Using scroll-driven animations and the tiniest bit of JS for the infinity part of it.

    Made with 🖤 for this week's #CodePenChallenge.

    cc @bramus

    #SVG #cssGrid #scrollAnimation #filter #svgFilter #cssFilter #cssLayout #3D #cssTransforms #code #coding #frontend #web #dev #webDev #webDevelopment

  21. Because I came across a question on reddit reddit.com/r/css/comments/1h05

    One common gotcha with #CSS 3D transforms is using opacity < 1 on an element that should have 3D transformed children. This effectively flattens all the semi-transparent element's children into the plane of their parent.

    #3D #transform #cssTransforms #css3D
    #web #dev #webDev #webDevelopment #code #coding #frontend

  22. Because I came across a question on reddit reddit.com/r/css/comments/1h05

    One common gotcha with #CSS 3D transforms is using opacity < 1 on an element that should have 3D transformed children. This effectively flattens all the semi-transparent element's children into the plane of their parent.

    #3D #transform #cssTransforms #css3D
    #web #dev #webDev #webDevelopment #code #coding #frontend

  23. Another super old @codepen demo I redid with modern #CSS is this yummy menu codepen.io/thebabydino/pen/Aox

    CSS grid instead of absolute positioning, clip-path instead of nested skew and un-skew, CSS variables to avoid setting a separate transform chain on each item... and more!

    #gridLayout #cssGrid #clipPath #clipping #cssTransforms #cssVariables #coding #code #frontend #webDevelopment #web #dev #webDev

  24. Another super old @codepen demo I redid with modern #CSS is this yummy menu codepen.io/thebabydino/pen/Aox

    CSS grid instead of absolute positioning, clip-path instead of nested skew and un-skew, CSS variables to avoid setting a separate transform chain on each item... and more!

    #gridLayout #cssGrid #clipPath #clipping #cssTransforms #cssVariables #coding #code #frontend #webDevelopment #web #dev #webDev

  25. Another request, mastodon 🦣

    If you can test in Safari, can you let me know what the second (moving) line looks like for you?

    codepen.io/thebabydino/pen/Jjg

    Cyan like expected/ Chrome/ Firefox? Lime like what I'm seeing with Epiphany?

    Boosts appreciated if you cannot test. Thanks! 🙏

    #CSS #blending #blendMode #cssTransforms #code #coding #web #dev #frontend #webDevelopment #webDev

  26. Another request, mastodon 🦣

    If you can test in Safari, can you let me know what the second (moving) line looks like for you?

    codepen.io/thebabydino/pen/Jjg

    Cyan like expected/ Chrome/ Firefox? Lime like what I'm seeing with Epiphany?

    Boosts appreciated if you cannot test. Thanks! 🙏

    #CSS #blending #blendMode #cssTransforms #code #coding #web #dev #frontend #webDevelopment #webDev

  27. Because I saw someone hearted codepen.io/thebabydino/pen/zKL I got reminded of something I need for animations like this one: to be able to use #CSS vars to compute keyframe percentages.

    I have 16 columns, each with a different animation. They're different because the keyframes needs to be different depending on the index.

    #cssAnimation #cssVariables #keyframes #cssTransforms #code #coding #frontend #web #webDevelopment #webDev #dev

  28. Because I saw someone hearted codepen.io/thebabydino/pen/zKL I got reminded of something I need for animations like this one: to be able to use #CSS vars to compute keyframe percentages.

    I have 16 columns, each with a different animation. They're different because the keyframes needs to be different depending on the index.

    #cssAnimation #cssVariables #keyframes #cssTransforms #code #coding #frontend #web #webDevelopment #webDev #dev

  29. I've just seen a bunch of my demos "trending" on @codepen.

    ✨ stroke shadow wave 🌊
    ✨ no matrix gooey effect
    ✨ slice 🗡️
    ✨ here is real magic 🧞
    ✨ slice & offset 🔪
    ✨ dizzy 3D 🥴
    ✨ blended layers
    ✨ split text effect
    ✨ realistic grainy shadows

    ...just on the first 5 pages! 🤯

    #SVG #CSS #filter #svgFilter #3D #transform #cssTransforms #cssGradient #code #coding #web #webDev #webDevelopment #frontend

  30. I've just seen a bunch of my demos "trending" on @codepen.

    ✨ stroke shadow wave 🌊
    ✨ no matrix gooey effect
    ✨ slice 🗡️
    ✨ here is real magic 🧞
    ✨ slice & offset 🔪
    ✨ dizzy 3D 🥴
    ✨ blended layers
    ✨ split text effect
    ✨ realistic grainy shadows

    ...just on the first 5 pages! 🤯

    #SVG #CSS #filter #svgFilter #3D #transform #cssTransforms #cssGradient #code #coding #web #webDev #webDevelopment #frontend

  31. 1⃣2⃣ 442 ❤️ Pure #CSS 3D cube assembly codepen.io/thebabydino/pen/GNY

    Second proper 3D demo on this list. The only more complex one. Also quite old, so code is dated, could be improved with modern CSS.

    And that's a wrap! My 12 most popular demos over the course of 12 years on CodePen.

    #3D #css3D #transform #cssTransforms #code #coding #frontend #web #webDev #dev #webDevelopment

  32. 1⃣2⃣ 442 ❤️ Pure #CSS 3D cube assembly codepen.io/thebabydino/pen/GNY

    Second proper 3D demo on this list. The only more complex one. Also quite old, so code is dated, could be improved with modern CSS.

    And that's a wrap! My 12 most popular demos over the course of 12 years on CodePen.

    #3D #css3D #transform #cssTransforms #code #coding #frontend #web #webDev #dev #webDevelopment

  33. But now, we can compute the scaling factor as the cosine of the skew angle, animate the skew angle* and the scaling factor changes accordingly 🥳🎉

    *@​property support needed

    #css #trigonometry #CodePen #coding #maths #geometry #webDev #webDevelopment #transform #CSStransforms #tiling

  34. But now, we can compute the scaling factor as the cosine of the skew angle, animate the skew angle* and the scaling factor changes accordingly 🥳🎉

    *@​property support needed

    #css #trigonometry #CodePen #coding #maths #geometry #webDev #webDevelopment #transform #CSStransforms #tiling