update rainbow.txt

This commit is contained in:
2022-04-13 18:08:16 +01:00
parent 8fb62b291d
commit b10387392a

View File

@@ -1,9 +1,11 @@
in the css
@import url("https://styles.alv.cx/modules/rainbow.css");
@import url("https://styles.alv.cx/modules/rainbow.css");
variables:
--rainbow-duration: 8s;
and add the class `rainbow` to any element you want.
it works by changing the `color` property of the element.
the duration is determined by the variable `--rainbow-duration`