Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tasxatzial committed Nov 10, 2023
1 parent 7a02a75 commit 6c2e248
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand Down

0 comments on commit 6c2e248

Please sign in to comment.