{"id":16396240,"url":"https://github.com/faebeee/write-and-delete","last_synced_at":"2026-05-08T04:44:32.494Z","repository":{"id":57399840,"uuid":"349995378","full_name":"faebeee/write-and-delete","owner":"faebeee","description":"Small js library to animate some writing effect through a list of strings. It also supports settings for typo errors, to make it more human likely.","archived":false,"fork":false,"pushed_at":"2021-03-28T14:36:17.000Z","size":3237,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T14:22:54.336Z","etag":null,"topics":["animation","javascript","js","typing","ui","webcomponent"],"latest_commit_sha":null,"homepage":"https://faebeee.github.io/write-and-delete/","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/faebeee.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}},"created_at":"2021-03-21T12:42:47.000Z","updated_at":"2022-11-15T15:20:42.000Z","dependencies_parsed_at":"2022-09-26T17:01:18.275Z","dependency_job_id":null,"html_url":"https://github.com/faebeee/write-and-delete","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faebeee%2Fwrite-and-delete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faebeee%2Fwrite-and-delete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faebeee%2Fwrite-and-delete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faebeee%2Fwrite-and-delete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faebeee","download_url":"https://codeload.github.com/faebeee/write-and-delete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240275924,"owners_count":19775616,"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":["animation","javascript","js","typing","ui","webcomponent"],"created_at":"2024-10-11T05:06:50.044Z","updated_at":"2026-05-08T04:44:27.461Z","avatar_url":"https://github.com/faebeee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Write and Delete\n\nSmall js library to animate some writing effect through a list of strings.\nIt also supports settings for typo errors, to make it more human likely.\n\n__Note__ It uses generators, so it's only supported in more modern browsers.\n\n## [Demo](https://faebeee.github.io/write-and-delete/)\n![Demo](https://raw.githubusercontent.com/faebeee/write-and-delete/master/assets/write_with_error.gif)\n\n## [Codepen](https://codepen.io/faebeee/pen/vYyoPqY)\n\n## Usage\n\n## JavaScript \n\nImport the library\n\n```html\n\u003cscript src=\"https://unpkg.com/write-and-delete@VERSION/dist/lib.js\"\u003e\u003c/script\u003e\n``` \nand then it's available in the global `window` scope.\n\n```js\n  writeAndDelete(document.querySelector(\"#header\"), [\n    \"Buenos dias\",\n    \"Good morning\",\n    \"Guten Morgen \",\n    \"Buon giorno\",\n], {\n    timeout: 1000,\n    loop: true,\n    speed: 200,\n    errorQuota: 0.5,\n    cursor: '_',\n    cursorSpeed: 300,\n});\n```\n\n### Web Component\nthis library is also available as a webcomponent.\n\nImport the component \n\n```html\n\u003cscript src=\"https://unpkg.com/write-and-delete@VERSION/dist/webcomponent.js\"\u003e\u003c/script\u003e\n```\n\nand then set it up in your markup\n\n```html\n\u003ch1\u003e\n    \u003cwrite-and-delete timeout=\"1000\" loop=\"true\" speed=\"200\"\u003eJavaScript, HTML5, CSS3\u003c/write-and-delete\u003e\n\u003c/h1\u003e\n```\n\n## Options\n\nProperty | Type | Description\n---|---|---\ntimeout | `number` | `required` Timeout until next element is been written/deleted\nspeed | `number` | `required` Velocity of typing effect\nspeedVariation | `number` | A variation for the `speed` property. So it is not too linear\nloop | `boolean` | Restart after reaching the last text in the list\nerrorQuota | `number` | Quota of typos injected in the text\nerrorCharacterMap | `string` | Custom string of characters used for the typo errors.\ncursor | `string` | Character of the cursor like `/` or `_`\ncursorSpeed | `number` | Speed of the blinking animation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaebeee%2Fwrite-and-delete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaebeee%2Fwrite-and-delete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaebeee%2Fwrite-and-delete/lists"}