diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-08-18 13:23:02 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-08-18 13:23:02 +0530 |
| commit | 2d0b37b5304ac7eec8dd574722942f22446fface (patch) | |
| tree | 09f8a91cf3c0c1d3116ea7ca449e1665f412f6cf | |
| parent | 0f79f02a686aba75850bc25a6b2f34f463bd3519 (diff) | |
| download | css-everything-2d0b37b5304ac7eec8dd574722942f22446fface.tar.gz css-everything-2d0b37b5304ac7eec8dd574722942f22446fface.zip | |
docs: readme
| -rw-r--r-- | README.md | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -38,31 +38,28 @@ You can start by adding the script tag for the renderer inside the body } #main-el { - --text: "Loading..."; + --text: "<stuff>"; } #main-el::after { content: var(--text); } #my-button { - --cssx-text: 'Update text'; + --cssx-text: "Click me"; /* On click, waits for 1 second and then updates the --text property #main-el */ - --cssx-on-click: - delay(1s) - update(main-el, --text, "Hello world. Set text!"); + --cssx-on-click: update(main-el, --text, "Loading...") delay(1s) + update(main-el, --text, "Hello world!"); } ``` [Here's the code in action](https://codepen.io/phenax/pen/gOZOLgR?editors=1100) -Wow. You couldn't come up with a more boring example if you tried. - -[Here's a todo example then](https://codepen.io/phenax/pen/QWzWGaV?editors=1100) - -[Here's a simple time example](https://codepen.io/phenax/pen/KKbKNeb?editors=1100) - -[More in the examples directory](https://github.com/phenax/css-everything/tree/main/examples) +> "Wow. You couldn't come up with a more boring example if you tried." +Alright. You don't have to be mean about it. +- [Here's a todo example](https://codepen.io/phenax/pen/QWzWGaV?editors=1100) +- [Here's a simple date example](https://codepen.io/phenax/pen/KKbKNeb?editors=1100) +- [More in the examples directory](https://github.com/phenax/css-everything/tree/main/examples) --- |
