79343365

Date: 2025-01-09 16:29:40
Score: 1
Natty:
Report link
h2 {
  --lighten: 50%;
  color: hsl(240, 100%, var(--lighten, 50%));
}

h2.darker {
  --lighten: 80%;
}

And to be able to animate --lighten with transition, you need to add this:

@property --lighten {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nerdrage