Ana Tudor

@anatudor.bsky.social

Same me, another platform. Authentic Transylvanian vampire. I sometimes code stuff. May involve some Maths. I enjoy music mandatory religion classes warned me about. And other things that may kill me. Interaction mostly restricted. anatudor.codeberg.page

Please test your pages with the browser forcing a dark theme... ... because some of us are vampires and sure to enable it when we find it... and then come across plenty that look atrocious this way. (yes, just handling dark mode suffices in a lot of cases... but not always)

Screenshot of this feature enabled in Vivaldi settings

#tinySVGtips: If you want a circle in the middle of your #SVG, choose your `viewBox` wisely. Both options below produce the same visual result, but the second one makes it easier to use the circle later. To animate transform (make it pulse), to build (animated) pie/ 🍩 charts and so on.

/* ❌ DON'T ❌ */
<svg viewBox='0 0 8 8'>
  <circle cx='4' cy='4' r='4'/>
</svg>

/* ✅ DO ✅ */
<svg viewBox='-4 -4 8 8'>
  <circle r='50%'/>
</svg>
Ana Tudor@anatudor.bsky.social · 2y ago

Simplest #SVG 🍩 chart with 3 equal slices! ✨ no char vomit in path data ✨ easy to understand and tweak ✨ minimal code, fits in a social media post Because somebody asked for it - see my solution with a detailed explanation of the how behind www.reddit.com/r/svg/commen...

The Pug code and the SVG generated by it.

Rozi the cheetah purrs 😻 Sound on for beautiful cheetah purrs! Cats can either roar or purr, they can’t do both. Lions & tigers can roar, but they can’t purr. Cheetahs can purr, but they can’t roar.

Stupid #a11y question: if multiple images form a logo and I wrap these `img` elements in a `div` with `role='img'` and an `aria-label`, do I still need to set an empty `alt` on the `img` elements?