From b10387392a8e56ea4844c2f778e5c384a970bfc9 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Wed, 13 Apr 2022 18:08:16 +0100 Subject: [PATCH] update rainbow.txt --- modules/readmes/rainbow.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/readmes/rainbow.txt b/modules/readmes/rainbow.txt index adf8997..374a059 100644 --- a/modules/readmes/rainbow.txt +++ b/modules/readmes/rainbow.txt @@ -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`