Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aviralsharma07/stopwatch


https://github.com/aviralsharma07/stopwatch

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

README

        

# Stopwatch

In this Project, I Learned,

1. To put an Image in the Background using CSS and to put a lower opacity layer on it.
```css
background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(./images/background.png);
background-size: cover;
background-position: center;
```
2. Use of `setInterval` and `clearInterval()` Method:
- setInterval() repeatedly executes the specified function at regular intervals until it is stopped with clearInterval().
- To stop execution in setInterval(), you need to call clearInterval() with the ID returned by setInterval().
- Use setInterval() when you need to execute a function repeatedly at fixed intervals, such as updating the time on a clock or creating animations.