Digital and analog clock done with JS and CSS.
Split functionality selectors
- Custom data attributes to select elements from JavaScript.
- CSS Classes to select elements from CSS.
- Script tag with defer property. Load script after html renders.
- @import font from google fonts.
- Display Flex.
- Colors with linear-gradient.
- CSS variables. var().
- Transform property.
- Select html elements with querySelector thanks to the custom data attributes.
- setInterval to tick the clock.
- Host with GitHub Pages.