{"id":31001540,"url":"https://github.com/DerStimmler/ngx-analog-clock","last_synced_at":"2025-09-13T00:08:56.160Z","repository":{"id":312773711,"uuid":"1022617827","full_name":"DerStimmler/ngx-analog-clock","owner":"DerStimmler","description":"Customizable analog clock for you Angular app","archived":false,"fork":false,"pushed_at":"2025-09-08T22:09:38.000Z","size":489,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-10T13:51:53.019Z","etag":null,"topics":["analog","analog-clock","angular","clock","library","npm","package","typescript"],"latest_commit_sha":null,"homepage":"https://derstimmler.github.io/ngx-analog-clock/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DerStimmler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-19T13:12:03.000Z","updated_at":"2025-09-08T22:09:41.000Z","dependencies_parsed_at":"2025-09-01T23:37:40.705Z","dependency_job_id":"f9bd7d66-dcdb-46bf-b84e-89835ccf6d98","html_url":"https://github.com/DerStimmler/ngx-analog-clock","commit_stats":null,"previous_names":["derstimmler/ngx-analog-clock"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DerStimmler/ngx-analog-clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2Fngx-analog-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2Fngx-analog-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2Fngx-analog-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2Fngx-analog-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DerStimmler","download_url":"https://codeload.github.com/DerStimmler/ngx-analog-clock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2Fngx-analog-clock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274570050,"owners_count":25309535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analog","analog-clock","angular","clock","library","npm","package","typescript"],"created_at":"2025-09-13T00:02:58.436Z","updated_at":"2025-09-13T00:08:56.116Z","avatar_url":"https://github.com/DerStimmler.png","language":"HTML","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Visual Effects"],"readme":"\u003cdiv align=\"center\" width=\"100%\"\u003e\n  \u003cimg src=\"./docs/images/logo.gif\" alt=\"Analog Clock animation\" height=\"128\"/\u003e\n\u003c/div\u003e\n\n# ngx-analog-clock\n\n[![npm version](https://img.shields.io/npm/v/ngx-analog-clock)](https://www.npmjs.org/package/ngx-analog-clock/)\n[![npm downloads](https://img.shields.io/npm/dt/ngx-analog-clock)](https://www.npmjs.org/package/ngx-analog-clock/)\n[![GitHub license](https://img.shields.io/github/license/DerStimmler/ngx-analog-clock)](https://github.com/DerStimmler/ngx-analog-clock/blob/main/LICENSE.md)\n\nAngular library for easier use of the View Transitions API\n\n## Demo\n\nhttps://derstimmler.github.io/ngx-analog-clock/\n\n## Installation\n\nAvailable on [npm](https://www.npmjs.org/package/ngx-analog-clock/).\n\n```bash\nnpm install ngx-analog-clock\n```\n\nRequired Angular version: `\u003e=19.0.0`\n\n## Usage\n\nImport the component:\n\n```typescript\nimport { NgxAnalogClock } from 'ngx-analog-clock';\n\ndate = new Date();\n```\n\nProvide at least a `Date` object to the component:\n\n```angular2html\n\u003cngx-analog-clock [date]=\"date\"\u003e\u003c/ngx-analog-clock\u003e\n```\n\n\u003e [!TIP]\n\u003e To get a `Date` signal of the current local time that updates every second you can use this snippet:\n\u003e ```typescript\n\u003e import { toSignal } from '@angular/core/rxjs-interop';\n\u003e import { map, interval } from 'rxjs';\n\u003e \n\u003e date = toSignal(interval(1000).pipe(map(() =\u003e new Date())), { initialValue: new Date() });\n\u003e```\n\n### Configuration\n\n| Input                      | Description                                      | Default Value                    |\n|----------------------------|--------------------------------------------------|----------------------------------|\n| `date`                     | Current date/time driving the clock              | **Required**                     |\n| `showHourHand`             | Toggle visibility of the hour hand               | `true`                           |\n| `showMinuteHand`           | Toggle visibility of the minute hand             | `true`                           |\n| `showSecondHand`           | Toggle visibility of the second hand             | `true`                           |\n| `showHourMarkers`          | Show hour tick markers                           | `true`                           |\n| `showMinuteMarkers`        | Show minute tick markers                         | `true`                           |\n| `showClockNumbers`         | Display clock face numbers                       | `true`                           |\n| `showBezel`                | Show outer bezel (rim)                           | `true`                           |\n| `transitionDuration`       | Duration of hand movement transitions            | `'0.5s'`                         |\n| `transitionFunction`       | CSS transition timing function for hand movement | `'cubic-bezier(0.4, 2, 0.3, 1)'` |\n| `bezelThickness`           | Thickness of the bezel                           | `'3px'`                          |\n| `pivotThickness`           | Size of the pivot (center cap)                   | `'12px'`                         |\n| `hourHandThickness`        | Thickness of the hour hand                       | `'9px'`                          |\n| `hourHandLength`           | Length of the hour hand relative to radius       | `'60%'`                          |\n| `minuteHandThickness`      | Thickness of the minute hand                     | `'6px'`                          |\n| `minuteHandLength`         | Length of the minute hand relative to radius     | `'90%'`                          |\n| `secondHandThickness`      | Thickness of the second hand                     | `'3px'`                          |\n| `secondHandLength`         | Length of the second hand relative to radius     | `'97%'`                          |\n| `pivotColor`               | Color of the pivot                               | `'#ff0000'`                      |\n| `hourHandColor`            | Color of the hour hand                           | `'#222222'`                      |\n| `minuteHandColor`          | Color of the minute hand                         | `'#222222'`                      |\n| `secondHandColor`          | Color of the second hand                         | `'#222222'`                      |\n| `hourMarkerColor`          | Color of the hour markers                        | `'#222222'`                      |\n| `minuteMarkerColor`        | Color of the minute markers                      | `'#222222'`                      |\n| `clockNumberColor`         | Color of the numbers                             | `'#222222'`                      |\n| `dialColor`                | Background color of the clock face               | `'transparent'`                  |\n| `bezelColor`               | Color of the bezel                               | `'#222222'`                      |\n| `markerOffsetPercent`      | Radial offset for markers (relative to radius)   | `96`                             |\n| `numbersOffsetPercent`     | Radial offset for numbers (relative to radius)   | `70`                             |\n| `hourMarkerThickness`      | Thickness of hour markers                        | `'2%'`                           |\n| `hourMarkerLength`         | Length of hour markers                           | `'7%'`                           |\n| `minuteMarkerThickness`    | Thickness of minute markers                      | `'1%'`                           |\n| `minuteMarkerLength`       | Length of minute markers                         | `'3%'`                           |\n| `hourHandBorderRadius`     | Border radius of the hour hand                   | `'2px'`                          |\n| `minuteHandBorderRadius`   | Border radius of the minute hand                 | `'2px'`                          |\n| `secondHandBorderRadius`   | Border radius of the second hand                 | `'2px'`                          |\n| `minuteMarkerBorderRadius` | Border radius of minute markers                  | `'2px'`                          |\n| `hourMarkerBorderRadius`   | Border radius of hour markers                    | `'2px'`                          |\n\nMost color inputs like `dialColor`, `minuteHandColor` or `hourMarkerColor` are implemented as CSS `background` property. So it's also possible to use gradient or even images.\n\n### Responsiveness\n\nThe component behaves like a normal block element and scales dynamically. So just set the `width` and `height` as you like.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDerStimmler%2Fngx-analog-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDerStimmler%2Fngx-analog-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDerStimmler%2Fngx-analog-clock/lists"}