Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aviralsharma07/stopwatch
https://github.com/aviralsharma07/stopwatch
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aviralsharma07/stopwatch
- Owner: aviralsharma07
- Created: 2024-03-31T12:59:03.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-31T13:16:26.000Z (10 months ago)
- Last Synced: 2024-03-31T14:21:29.665Z (10 months ago)
- Language: CSS
- Homepage: https://aviralsharma07.github.io/stopwatch/
- Size: 1020 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.