From 6c2e24859228d2ad842f30146d706a3feca6b73c Mon Sep 17 00:00:00 2001 From: Anastasios Chatzialexiou <16361161+tasxatzial@users.noreply.github.com> Date: Fri, 10 Nov 2023 13:47:44 +0200 Subject: [PATCH] update readme --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 35cbf4b..fd5c6dc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A click-and-hold button is a user interface element that demands users to click on the button and maintain that click for a specific period before the associated action is executed. -This simple project demonstrates how to add basic click-and-hold functionality to elements using pure Javascript. +This project demonstrates one way to add basic click-and-hold functionality to elements using vanilla JavaScript. ## Implementation @@ -12,6 +12,10 @@ Two implementations are provided: 2) In [transition.js](src/js/transition.js) the animation is triggered by adding a class to the corresponding element. This starts a simple CSS transition. +## Dependencies + +The project is written only in HTML, CSS, JavaScript. + ## Use The .js files listed above explain how to add click-and-hold functionality to an element.