{"id":24499600,"url":"https://github.com/codewithkyle/tooltipper","last_synced_at":"2025-04-14T05:33:29.987Z","repository":{"id":40767962,"uuid":"272955345","full_name":"codewithkyle/tooltipper","owner":"codewithkyle","description":"A lightweight JavaScript library for implementing tooltips.","archived":false,"fork":false,"pushed_at":"2023-03-28T13:11:57.000Z","size":139,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T01:39:32.418Z","etag":null,"topics":["esmodule","lightweight","tooltip","tooltips"],"latest_commit_sha":null,"homepage":"https://codewithkyle.github.io/tooltipper/","language":"TypeScript","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/codewithkyle.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-17T11:22:48.000Z","updated_at":"2023-07-11T22:50:56.000Z","dependencies_parsed_at":"2023-01-28T23:15:18.425Z","dependency_job_id":null,"html_url":"https://github.com/codewithkyle/tooltipper","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Ftooltipper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Ftooltipper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Ftooltipper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Ftooltipper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithkyle","download_url":"https://codeload.github.com/codewithkyle/tooltipper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248827477,"owners_count":21167884,"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":["esmodule","lightweight","tooltip","tooltips"],"created_at":"2025-01-21T22:15:03.454Z","updated_at":"2025-04-14T05:33:29.966Z","avatar_url":"https://github.com/codewithkyle.png","language":"TypeScript","readme":"# Tooltipper\n\nA lightweight (1kB) JavaScript library for implementing tooltips.\n\n## Installation\n\nInstall via NPM:\n\n```sh\nnpm i -S tooltipper\n```\n\nInstall via CDN:\n\n```html\n\u003cscript type=\"module\" src=\"https://unpkg.com/tooltipper@1/tooltipper.min.mjs\"\u003e\u003c/script\u003e\n\u003cscript defer src=\"https://unpkg.com/tooltipper@1/tooltipper.min.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nCreate tooltips using the `tooltip` attribute:\n\n```html\n\u003ca href=\"#\" tooltip=\"Edit file\"\u003e\n    \u003csvg /\u003e\n\u003c/a\u003e\n```\n\nCreate tooltips by adding the `tooltip` attribute to an element with an `aria-label` attribute:\n\n```html\n\u003ca href=\"#\" aria-label=\"Edit file\" tooltip\u003e\n    \u003csvg /\u003e\n\u003c/a\u003e\n```\n\n\u003e **Please note** that tooltipper is an unopinionated library. All we aim to do is create, track, and remove custom `\u003ctool-tip\u003e` elements within the DOM. You are responsible for providing the CSS.\n\n## Example SCSS\n\n[Click here](https://codewithkyle.github.io/tooltipper/) to view the example.\n\n```scss\ntool-tip {\n    background-color: #424242;\n    color: #fff;\n    border-radius: 0.125rem;\n    line-height: 24px;\n    height: 24px;\n    white-space: nowrap;\n    padding: 0 0.5rem;\n    font-size: 0.75rem;\n    font-weight: 600;\n    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n    pointer-events: none;\n    transform-origin: center;\n\n    /* The visible class is applied once the tool-tip element as been appended to the body \u0026 positioned correctly */\n    \u0026.visible {\n        animation: limitedTooltip 1725ms 150ms linear forwards;\n    }\n}\n@keyframes limitedTooltip {\n    0% {\n        opacity: 1;\n    }\n    4% {\n        opacity: 1;\n    }\n    96% {\n        opacity: 1;\n    }\n    100% {\n        opacity: 0;\n        animation-timing-function: ease-in-out;\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Ftooltipper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithkyle%2Ftooltipper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Ftooltipper/lists"}