home.social

#csstransform — Public Fediverse posts

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

  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. 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

  4. 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

  5. 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

  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. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  14. 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

  15. 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

  16. 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

  17. 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

  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. 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

  20. 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

  21. 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

  22. 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