Email or username:

Password:

Forgot your password?
2 posts total
Noah Liebman

I blug about #css again. Preventing an `!important` user agent style from kicking in with an infinite-duration transition noahliebman.net/2024/08/beatin

```css
input {
  /* prevent anything that tries to change this from ever getting there */
  transition:
    color calc(infinity * 1s) step-end,
    background-color calc(infinity * 1s) step-end;

  /* style the field as normal */
  background-color: transparent;
  color: CanvasText;
}
```
Show previous comments
Amadeus Maximilian

@noleli I’m assuming this works, because the user specified styles get applied first, because the !important of the user agent stylesheet makes it kick in last? And that’s how the initial state of the transition is set?

I never thought of !important styles being applied *after* regular ones in a “time” sense. 😅

meduz'

@noleli Ha ha ha, super nice trick. I didn’t know about `infinity` for CSS transition.

lencioni

@noleli would it be a bit cleaner to set the transition-delay to infinity instead of the transition-duration? Of course the result should be the same but that would remove the need to specify the timing function I think.

Noah Liebman

Everything you need to know about the faddishness of modern JS

Screenshot of the Snowpack website showing two adjacent banners. First says:

“#1 Developer Productivity Booster, 2020 JS Open Source Awards”.

Immediately below it says:

“Update (April 20, 2022): Snowpack is no longer actively maintained and is not recommended for new projects.

Check out Vite for a well-maintained Snowpack alternative.
See also: esbuild, parcel”
allison

@noleli it's so ridiculous! I only do a project that involves extensive javascript about every 2-3 years, which functionally means I have to start learning the ecosystem from scratch every time

Tommi

@noleli I am so confused and undecided concerning how and where to start learning #JavaScript, and often ask myself if it is the right language to start learning, given my super limited time.

Seeing this gets me even more worried.

Go Up