Berat (@beratsdev) 's Twitter Profile
Berat

@beratsdev

I love building beautiful things, and help each other. #Svelte #React #Solid #Qwik #Vue #Angular, #Typescript, #Flutter, #Dart, #Node, #Next.js #Nest.js #Node

ID: 2488220377

calendar_today10-05-2014 14:50:01

734 Tweet

609 Followers

4,4K Following

jhey โ–ฒ๐Ÿป๐ŸŽˆ (@jh3yy) 's Twitter Profile Photo

UI && CSS Tip! ๐Ÿ”ฅ You can create these dynamic glowing card effects with a single JavaScript event listener, some CSS tricks, and an HTML attribute ๐Ÿค™ <article data-glow /> Here's how! ๐Ÿ‘‡ You can use a combination of tricks from previous posts. Let's start with the

Fireship (@fireship_dev) 's Twitter Profile Photo

The untold history of web development: 1990: HTML invented 1994: CSS invented to fix HTML 1995: JS invented to fix HTML/CSS 2006: jQuery invented to fix JS 2010: AngularJS invented to fix jQuery 2013: React invented to fix AngularJS 2014: Vue invented to fix React & Angular

jhey โ–ฒ๐Ÿป๐ŸŽˆ (@jh3yy) 's Twitter Profile Photo

Couldn't resist ๐Ÿ˜ You can use some JavaScript <canvas> trickery to create a responsive clipped text effect โœจ context.drawImage(text, 0, 0) context.globalCompositeOperation = "source-in" context.drawImage(rings, 0, 0) Use compositing to clip the animated rings to text ๐Ÿค“ โ€“

jhey โ–ฒ๐Ÿป๐ŸŽˆ (@jh3yy) 's Twitter Profile Photo

CSS Trick! โšก๏ธ You can use scroll-driven animation with background-attachment to create a dynamic glowing card scroller without JS ๐Ÿ”ฅ section { animation:vibe; animation-timeline:--list; } @โ€‹keyframes vibe { to{--hue:320;}} .glow {background: hsl(var(--hue) 80% 50%);} Here's

Simon Vrachliotis (@simonswiss) 's Twitter Profile Photo

โœจ Tailwind CSS v4 demo โœจ Define **one** CSS variable in CSS and generate a comprehensive set of utilities to use the "design token" in your project. Colors for text, background, border, caret, shadow, gradient-from, via, to, etc ๐Ÿ’ฅ Tailwind is a CSS framework... generator ๐Ÿช„

ElectricSQL (@electricsql) 's Twitter Profile Photo

We're excited to have Drizzle ORM as the first ORM to support PGlite ๐ŸŽ‰๐Ÿš€ โ€ข Run full Postgres embedded in your app with PGlite. โ€ข At only 2.6mb, it's perfect for local-first apps! github.com/electric-sql/pโ€ฆ github.com/drizzle-team/dโ€ฆ

We're excited to have <a href="/DrizzleORM/">Drizzle ORM</a> as the first ORM to support PGlite ๐ŸŽ‰๐Ÿš€
โ€ข Run full Postgres embedded in your app with PGlite.
โ€ข At only 2.6mb, it's perfect for local-first apps!
github.com/electric-sql/pโ€ฆ
github.com/drizzle-team/dโ€ฆ
jhey โ–ฒ๐Ÿป๐ŸŽˆ (@jh3yy) 's Twitter Profile Photo

Use CSS custom properties and the sin() trigonometric function to give each character an eased animation-delay ๐Ÿค™ .char { animation-delay: calc( sin((var(--index) / var(--total)) * 90deg) * var(--duration) ); }

Julian Garnier (@juliangarnier) 's Twitter Profile Photo

An example of responsive, interruptible, draggable and auto-animated infinite carousel with the new anime.js v4 `createDraggable()` API.

CSS by T. Afif (@challengescss) 's Twitter Profile Photo

Updating the "inverted radius" shape to add two more variables to control the offset of inner curve. css-shape.com/inverted-radiuโ€ฆ

Una ๐Ÿ‡บ๐Ÿ‡ฆ (@una) 's Twitter Profile Photo

attr() is getting an upgrade! Starting in Chrome 133 (stable rollout happening this month), you'll be able to access attributes in CSS as typed values beyond strings. Here's an example of where that's pretty cool. Given: <div data-rating="4.5"> You can use data-rating as a

attr() is getting an upgrade!

Starting in Chrome 133 (stable rollout happening this month), you'll be able to access attributes in CSS as typed values beyond strings.

Here's an example of where that's pretty cool. Given:

&lt;div data-rating="4.5"&gt;

You can use data-rating as a
jhey โ–ฒ๐Ÿป๐ŸŽˆ (@jh3yy) 's Twitter Profile Photo

extra detail: animate a CSS custom property from 0 to 100 on scroll and use that for a counter() label::after { content: counter(complete) '% complete'; } translate the label using container query units โœจ translate: 0 calc(var(--p) * 1cqh);

jhey โ–ฒ๐Ÿป๐ŸŽˆ (@jh3yy) 's Twitter Profile Photo

<table> highlighting with CSS :has() ๐Ÿ’ก td:has(~ td:hover), /* previous sibling cells */ table:has(td:nth-of-type(3):hover) /* column cells */ tr:not(:first-of-type):has(~ tr:hover) td:nth-of-type(3) { background: var(--highlighted); }

George Moller (@_georgemoller) 's Twitter Profile Photo

๐Ÿšซ ๐—”๐˜ƒ๐—ผ๐—ถ๐—ฑ Using a full context value in every component can trigger unnecessary re-renders. โœ… ๐—œ๐—ป๐˜€๐˜๐—ฒ๐—ฎ๐—ฑ Use ๐˜ค๐˜ฐ๐˜ฏ๐˜ต๐˜ฆ๐˜น๐˜ต ๐˜ด๐˜ฆ๐˜ญ๐˜ฆ๐˜ค๐˜ต๐˜ฐ๐˜ณ๐˜ด to pull only the data you need. This reduces re-renders and improves performance.

jhey โ–ฒ๐Ÿป๐ŸŽˆ (@jh3yy) 's Twitter Profile Photo

table of contents marker w/ modern css ๐Ÿง‘โ€๐Ÿณ .toc { scroll-target-group: auto; } a:target-current { anchor-name: --active; } .toc::after { position-anchor: --active; top: anchor(top); } fun progressive enhancement, no js ๐Ÿค™