{"id":13341622,"url":"https://github.com/Kamide/marquee-element","last_synced_at":"2025-03-11T22:31:15.632Z","repository":{"id":99489791,"uuid":"560196621","full_name":"Kamide/marquee-element","owner":"Kamide","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-01T00:23:34.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-24T10:06:47.462Z","etag":null,"topics":["javascript","web-components"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kamide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-11-01T00:09:32.000Z","updated_at":"2022-11-01T01:39:01.000Z","dependencies_parsed_at":"2023-04-04T14:32:33.027Z","dependency_job_id":null,"html_url":"https://github.com/Kamide/marquee-element","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kamide%2Fmarquee-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kamide%2Fmarquee-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kamide%2Fmarquee-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kamide%2Fmarquee-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kamide","download_url":"https://codeload.github.com/Kamide/marquee-element/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243125139,"owners_count":20240263,"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","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":["javascript","web-components"],"created_at":"2024-07-29T19:25:39.255Z","updated_at":"2025-03-11T22:31:15.628Z","avatar_url":"https://github.com/Kamide.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# marquee-element\n\nMarqueeElement is a vanilla web component implementation of the now deprecated HTMLMarqueeElement using shadow DOM, templates, slots, constructable style sheets, CSS animations, and ResizeObserver.\n\n## Attributes and Properties\n\n| Attribute   | Property    | Type      | Reflected | Description                                                                                                     |\n| ----------- | ----------- | --------- | --------- | --------------------------------------------------------------------------------------------------------------- |\n| `disabled`  | `disabled`  | `Boolean` | Yes       | Disables animations when attribute is present or property is `true`.                                            |\n| `multiline` | `multiline` | `Boolean` | Yes       | Enables word wrapping when attribute is present or property is `true`.                                          |\n| `pausable`  | `pausable`  | `Boolean` | Yes       | Pauses animation on hover when attribute is present or property is `true`.                                      |\n| `threshold` | `threshold` | `Number`  | Yes       | When a positive number is given, slotted elements will animate if and only if they overflow the host container. |\n\n## CSS Variables\n\n| Variable                            | Type                                                                                                       | Default          | Read | Write |\n| ----------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------- | ---- | ----- |\n| `--marquee-element-animation`       | `scroll-left \\| scroll-right \\| scroll-top \\| scroll-bottom \\| alternate-horizontal \\| alternate-vertical` | `scroll-left`    | Yes  | Yes   |\n| `--marquee-element-duration`        | `\u003ctime\u003e`                                                                                                   | `60s`            | Yes  | Yes   |\n| `--marquee-element-timing-function` | `\u003ceasing-function\u003e`                                                                                        | `linear`         | Yes  | Yes   |\n| `--marquee-element-iteration-count` | `infinite \\| \u003cnumber\u003e`                                                                                     | `infinite`       | Yes  | Yes   |\n| `--marquee-element-width`           | `\u003clength\u003e`                                                                                                 | Host Width (px)  | Yes  | No    |\n| `--marquee-element-height`          | `\u003clength\u003e`                                                                                                 | Host Height (px) | Yes  | No    |\n\nOverriding `--marquee-element-width` or `--marquee-element-height` is not recommended.\n\n## Parts\n\n| Identifier | Description                                     |\n| ---------- | ----------------------------------------------- |\n| `frame`    | Overflow container for the animation container. |\n| `marquee`  | Animation container for slotted elements.       |\n\n## Demo\n\nhttps://kamide.github.io/marquee-element/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKamide%2Fmarquee-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKamide%2Fmarquee-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKamide%2Fmarquee-element/lists"}