home.social

#cssanimation — Public Fediverse posts

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

fetched live
  1. Анатомия «живой» кнопки: 5 слоёв, GPU-анимация и трюки с CSS

    Хочу поделиться кейсом, когда разработка типичного tab-switcher превращается в настоящее архитектурное решение.

    habr.com/ru/articles/1047114/

    #css #frontend #ui #uicomponents #cssanimation #gpuanimation #mixblendmode #9slice #pseudoelements #webdev

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

  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. codepen.io/alsorew/pen/dPXWmed

    Hover or tap inside the blue line to discover the secret.

    (You can make the animation smoother, but it would require a lot more work. Nah.)

    #SteamDeck #SteamMachine #VoidLinux #CSS #PureCSS #CSSAnimation #CodePen

  5. codepen.io/alsorew/pen/dPXWmed

    Hover or tap inside the blue line to discover the secret.

    (You can make the animation smoother, but it would require a lot more work. Nah.)

    #SteamDeck #SteamMachine #VoidLinux #CSS #PureCSS #CSSAnimation #CodePen

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

  8. #100DaysOfCode day 22:
    Haven't updated thin for a few days. Not much coding, looked a little on a tutorial about #CSSAnimation, but I decided to take care of myself instead of thinking about #code and #math.

    #HTML #CSS #JavaScript #WebDev

  9. #100DaysOfCode day 22:
    Haven't updated thin for a few days. Not much coding, looked a little on a tutorial about #CSSAnimation, but I decided to take care of myself instead of thinking about #code and #math.

    #HTML #CSS #JavaScript #WebDev

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

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

  12. Nice to see this ancient teaser page I put together for a conference is still pretty much working in browsers

    thewebis.hop.ie/teaser/

    #cssanimation #macplus

  13. Nice to see this ancient teaser page I put together for a conference is still pretty much working in browsers

    thewebis.hop.ie/teaser/

    #cssanimation #macplus

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

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

  16. Here's a neat little effect with no text duplication. Uses `background-clip: text` to create the split text face effect + scroll-driven animations to tie the gradient split line position to the 1st section's bottom edge.

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

    cc @bramus

    #CSS #scroll #scrollAnimation #coding #cssAnimation #gradientText #frontend #web #dev #webDev #webDevelopment #code

  17. Here's a neat little effect with no text duplication. Uses `background-clip: text` to create the split text face effect + scroll-driven animations to tie the gradient split line position to the 1st section's bottom edge.

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

    cc @bramus

    #CSS #scroll #scrollAnimation #coding #cssAnimation #gradientText #frontend #web #dev #webDev #webDevelopment #code

  18. Here's a simple image stack with an `--ang` rotation around an `--xy` point (both pseudo-random, generated & set inline via Pug) + a 3D entry animation (click Run to run it again).

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

    #CSS #3D #filter #cssFilter #animation #cssAnimation #code #coding #frontend #web #dev #webDev #webDevelopment #CodePen

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

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

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

  22. Hi #WebDev bubble!

    One of my team members at work wants to learn more about CSS animation. I don't have any overview what the better learning resources out there are so I would like to hear from my followers if they know anything that is state of the art. :D

    Preferably without JavaScript or just as a helper to start and stop or stuff like that.

    Bonus points for SVG Animation via CSS. :D

    #CSS #CSSAnimation #Coding #WebDevelopment

  23. Made this set of single div loaders on @codepen ~5 years ago codepen.io/thebabydino/pen/MWY

    The trick is to register a custom property in order to animate a `conic-gradient()` & use `mask` compositing for the rings/ radial slices.

    Back then, this was Chrome only. As of summer 2024, with Firefox finally getting support for animating registered #CSS vars, this and a lot such more demos I've been making for the past 6+ years are now cross-browser!

    #cssVariables #cssAnimation #frontend #web #webDev #dev

  24. We do that by setting `animation-timeline: scroll()`.

    We also remove the `animation-iteration-count`. We could also remove the `animation-duration`... except it doesn't work in Firefox without it for some reason.
    ¯\_(ツ)_/¯

    A Firefox bug is also why the `animation-fill-mode`.

    #CSS #pureCSS #noJS #scroll #scrollAnimation #text #textEffect #revealEffect #code #coding #frontend #webDev #web #webDevelopment #dev #cssAnimation

  25. It *still* doesn't look right, so we change the end state background width from `100%` to `calc(var(--n)*1ch)`.

    We also add in a `background-color`. We now have our char by char text reveal!

    But this just runs infinitely on its own, so we still need to tie it to page scroll.

    #CSS #pureCSS #noJS #scroll #scrollAnimation #text #textEffect #revealEffect #code #coding #frontend #webDev #web #webDevelopment #dev #cssAnimation

  26. Let's animate the `background-size` of this gradient (which we also make non-repeating) along the x axis.

    Then we clip this background to `text`.

    We make the animation go char by char by using `steps(var(--n))`, where n is the text length, set by an HTML preprocessor as `--n`.

    #CSS #pureCSS #noJS #scroll #scrollAnimation #text #textEffect #revealEffect #code #coding #frontend #webDev #web #webDevelopment #dev #cssAnimation

  27. Adding a gradient! There's a difference between block and inline elements when it comes to horizontal gradients.

    Block element: gradient goes from left to right edge of the box.

    Inline element: gradient wraps/ progresses with the wrapping text.

    You may be seeing where this is going...

    #CSS #pureCSS #noJS #scroll #scrollAnimation #text #textEffect #revealEffect #code #coding #frontend #webDev #web #webDevelopment #dev #cssAnimation

  28. A `linear-gradient()` pattern coupled with a `linear-gradient()` map is what's behind this retro wave #CodePen demo codepen.io/thebabydino/pen/jOv

    And animating the map's `background-position` is how we get this progressive close/ open blinds effect mastodon.social/@anatudor/1101

    #css #filter #cssFilter #blending #blendMode #halftone #cssAnimation #code #coding #frontend #webDev #cssTricks #webDevelopment