From 9aff50629843873771d83db57438a9ac69cc09ce Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Thu, 16 Jul 2020 01:06:48 +0200 Subject: [PATCH] Update README.md --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a043351..bf0e049 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![example](media/example.png) -Simple utility to **avoid writing Javascript** when working with **classes**. It only takes up **1Kb**! +Simple utility to **avoid writing Javascript** when working with **classes**. It only takes up **1,7 Kb**! ## DEMOS @@ -29,22 +29,43 @@ Add to your `` the following tag. #### Click +##### Add the class `press` to `button` when the button is pressed. + +```html + +``` + +##### Remove the class `press` to `button` when the button is pressed. + +```html + +``` + +##### Switch the classs `show` to `button` when the button is pressed. + +```html + +``` + ##### Add the class `show` to the `#nav` selector when the button is pressed. ```html + ``` ##### Remove the `show` class from the `#nav` selector when the button is pressed. ```html + ``` ##### Switch the `show` class to the `#nav` selector when the button is pressed. ```html + ``` #### Scroll up @@ -112,22 +133,43 @@ Añade a tu `` la siguiente etiqueta. #### Clic +##### Añadir la clase `apretado` a `button` cuando sea pulsado. + +```html + +``` + +##### Quitar la clase `apretado` a `button` cuando sea pulsado. + +```html + +``` + +##### Intercambiar la clase `apretado` a `button` cuando sea pulsado. + +```html + +``` + ##### Añadir la clase `show` al selector `#menu` cuando sea pulsado el botón. ```html + ``` ##### Quitar la clase `show` al selector `#menu` cuando sea pulsado el botón. ```html + ``` ##### Intercambiar la clase `show` al selector `#menu` cuando sea pulsado el botón. ```html + ``` #### Subir scroll