home.social

#css3d — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #css3d, 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. 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

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

  5. If you're a Cheetah+ supporter on Ko-fi or Patreon, then first of all thank you for helping me stay afloat during these times.

    And second, I just posted a cool little pure CSS 3D thing.

    Ko-fi: ko-fi.com/post/Pure-CSS-3D-par

    Patreon: patreon.com/posts/pure-css-3d-

    #CSS #scroll #3D #SVG #filter #css3d #svgFilter #scrollAnimation #code #web #dev #webDev #webDevelopment #frontend #coding

  6. If you're a Cheetah+ supporter on Ko-fi or Patreon, then first of all thank you for helping me stay afloat during these times.

    And second, I just posted a cool little pure CSS 3D thing.

    Ko-fi: ko-fi.com/post/Pure-CSS-3D-par

    Patreon: patreon.com/posts/pure-css-3d-

    #CSS #scroll #3D #SVG #filter #css3d #svgFilter #scrollAnimation #code #web #dev #webDev #webDevelopment #frontend #coding

  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. It's definitely not perfect but I made a thing! It's a shiny card effect 🎴 with 3d perspective, done in mostly-pure CSS with a bit of Javascript for cursor positions etc.

    📱 Doesn't work very well on mobile at the moment though - it's on my todo list.

    In other news, CSS container queries are both fun, useful, and confusing. 📦📦📦

    starbeamrainbowlabs.com/labs/s

    #HowDoITag #IDontEvenKnowIJustPostHere #Noodling #WebNoodling #NoodlingAround #CSS #CssVariables #WereUsed #AndAbused #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. Another diagram I tried this motion path, 3D CSS, and switching 'viewport' angles is conveying the reaction difference of drivers between near-side and far-side traffic lights.

    This works with CSS while toggling different views of it with a has(). No Javascript needed.

    #CSS #webdev #cssmotionpath #css3d

  13. Combining CSS Motion Path and 3D CSS to make a running Pomeranian

    Coding this made me think of other diagrams where it's quite easy to switch from 2D to descriptive geometric visuals :D

    #CSS #css3d #cssmotionpath #webdev

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

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

  16. Flip card on hover, flip back on hover out...

    ... but on touchscreens, flip it on click and then flip it back on second click!

    A mostly #CSS solution, using #3D transforms, variables, grid, pointer MQ + a little bit of #JS.

    Because somebody asked how to do it reddit.com/r/css/comments/1jm0

    Live demo on @codepen: codepen.io/thebabydino/pen/MYW

    #cssGrid #cssVariables #JavaScript #css3D #code #coding #frontend #cssLayout #web #dev #webDevelopment #webDev

  17. Flip card on hover, flip back on hover out...

    ... but on touchscreens, flip it on click and then flip it back on second click!

    A mostly #CSS solution, using #3D transforms, variables, grid, pointer MQ + a little bit of #JS.

    Because somebody asked how to do it reddit.com/r/css/comments/1jm0

    Live demo on @codepen: codepen.io/thebabydino/pen/MYW

    #cssGrid #cssVariables #JavaScript #css3D #code #coding #frontend #cssLayout #web #dev #webDevelopment #webDev

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

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

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

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

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

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

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

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

  26. 4⃣ Pure CSS sphere of randomly positioned, non-intersecting spheres codepen.io/thebabydino/pen/LYX

    Uses the spherical distribution tactic described here mastodon.social/@anatudor/1107 and then makes sure no two spheres intersect. Also: pure CSS 3D shading!

    #CSS #3D #pureCSS #css3d #transform #sphere #maths #geometry #3dGeometry #noJS #shading #code #coding #frontend #web #webDev #dev #webDevelopment

  27. 4⃣ Pure CSS sphere of randomly positioned, non-intersecting spheres codepen.io/thebabydino/pen/LYX

    Uses the spherical distribution tactic described here mastodon.social/@anatudor/1107 and then makes sure no two spheres intersect. Also: pure CSS 3D shading!

    #CSS #3D #pureCSS #css3d #transform #sphere #maths #geometry #3dGeometry #noJS #shading #code #coding #frontend #web #webDev #dev #webDevelopment

  28. 3⃣ Pure CSS morphing polyhedra: dodecahedron → rhombicosidodecahedron → snub dodecahedron → rhombicosidodecahedron → icosahedron codepen.io/thebabydino/pen/gOj

    Positions & makes faces morph using CSS transforms. Which depend on CSS vars to keep code compact css-tricks.com/logical-operati

    #CSS #3D #pureCSS #noJS #booleanLogic #cssVariables #transform #css3d #code #coding #frontend #web #dev #webDev #webDevelopment #polyhedra #maths #geometry #3dGeometry #mathematics #platonicSolids #Archimedean

  29. 3⃣ Pure CSS morphing polyhedra: dodecahedron → rhombicosidodecahedron → snub dodecahedron → rhombicosidodecahedron → icosahedron codepen.io/thebabydino/pen/gOj

    Positions & makes faces morph using CSS transforms. Which depend on CSS vars to keep code compact css-tricks.com/logical-operati

    #CSS #3D #pureCSS #noJS #booleanLogic #cssVariables #transform #css3d #code #coding #frontend #web #dev #webDev #webDevelopment #polyhedra #maths #geometry #3dGeometry #mathematics #platonicSolids #Archimedean

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

  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. 8⃣ 496 ❤️ Pure #CSS 3D toggle with only input[type=checkbox] + label codepen.io/thebabydino/pen/ajp

    (awfully hacky, but cool-looking result... which nowadays I'd probably try to get with an SVG filter 🤔)

    #3d #toggle #checkbox #css3D #code #coding #frontend #web #webDev #webDevelopment #dev

  33. 8⃣ 496 ❤️ Pure #CSS 3D toggle with only input[type=checkbox] + label codepen.io/thebabydino/pen/ajp

    (awfully hacky, but cool-looking result... which nowadays I'd probably try to get with an SVG filter 🤔)

    #3d #toggle #checkbox #css3D #code #coding #frontend #web #webDev #webDevelopment #dev

  34. This is something I detailed in a #cssTricks article some 8 years ago css-tricks.com/things-watch-wo (more exactly, the first point, 3D rendering context)

    Nowadays I use #CSS #grid instead of absolute positioning, but the main idea remains: set `transform-style: preserve-3d` on #3D assembly.

    #transform #css3d #code #coding #frontend #webDev #wwbDevelopment

  35. This is something I detailed in a #cssTricks article some 8 years ago css-tricks.com/things-watch-wo (more exactly, the first point, 3D rendering context)

    Nowadays I use #CSS #grid instead of absolute positioning, but the main idea remains: set `transform-style: preserve-3d` on #3D assembly.

    #transform #css3d #code #coding #frontend #webDev #wwbDevelopment

  36. My pure #CSS gravity button codepen.io/thebabydino/pen/bGz has become my most hearted Pen of 2023 and my 4th one ever to pass 700 ❤️ - the others are:

    #canvas neon hex animation (mysteriously absent from #CodePen search results as well as the popular tab on my profile)
    codepen.io/thebabydino/pen/zGm

    ✨ Möbius hexahedrons
    codepen.io/thebabydino/pen/mJo

    ✨ twitter 🩷 animation
    codepen.io/thebabydino/pen/RRR

    #js #JavaScript #3d #css3d #3d #geometry #maths #code #coding #frontend #webDev #webDevelopment #button #cssAnimation