{"id":16858979,"url":"https://github.com/connoratherton/typeout","last_synced_at":"2025-03-17T05:32:23.502Z","repository":{"id":25108319,"uuid":"28529661","full_name":"ConnorAtherton/typeout","owner":"ConnorAtherton","description":"Type and retype text in the browser.","archived":false,"fork":false,"pushed_at":"2015-04-05T03:55:38.000Z","size":176,"stargazers_count":85,"open_issues_count":0,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-11T11:41:48.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ConnorAtherton.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}},"created_at":"2014-12-27T05:45:29.000Z","updated_at":"2025-02-16T16:47:39.000Z","dependencies_parsed_at":"2022-08-23T19:40:40.580Z","dependency_job_id":null,"html_url":"https://github.com/ConnorAtherton/typeout","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnorAtherton%2Ftypeout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnorAtherton%2Ftypeout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnorAtherton%2Ftypeout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnorAtherton%2Ftypeout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConnorAtherton","download_url":"https://codeload.github.com/ConnorAtherton/typeout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846989,"owners_count":20357296,"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":[],"created_at":"2024-10-13T14:15:47.962Z","updated_at":"2025-03-17T05:32:22.953Z","avatar_url":"https://github.com/ConnorAtherton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## typeout\n\nProduces a nice text effect increasingly adopted by companies like [Google](), [npm]() and more.\n\n[See a demo](http://htmlpreview.github.io/?https://github.com/ConnorAtherton/typeout/blob/master/example/index.html)\n\n## how to use\n\n``` js\n/*\n * @params selector [string] -\n * @params wordList [array]  - Contains all the word to write\n * @params options  [object] - Override default options (shown below)\n */\n\ntypeout(selector, word_list, options);\n```\n\nUsually the selector will reference a **span** element or some other\nelement that is displaying inline. But it will work with any element.\n\n```html\n\u003ch1 id=\"demo\"\u003e\n  San Francisco is \u003cspan class=\"typeout\"\u003eamazing\u003c/span\u003e\n\u003c/h1\u003e\n```\n\nAny html child element of the selector element will automatically be\nappended to the append list. In the example above the word *amazing*\nwill be added to the world list you pass in.\n\n```js\n// basic usage with just one loop\ntypeout('.typeout', ['wonderful', 'eye-opening', 'an experience'], {\n  callback: function(el) {\n    el.innerHTML += \".\";\n  }\n});\n```\n\nThe code above will typeout all words in the word list once and on completion\nwill add a period (.) at the end.\n\n### default options\n```js\nvar defaults = {\n  interval: 3000,\n  completeClass: 'typeout-complete',\n  callback : function noop() {},\n  max: 110, // upper limit for typing speed\n  min: 40,   // lower limit for typing speed\n  numLoops: 1 // number of loops before the callback is called\n};\n```\n\nYou can have an infinite loop passing numLoops as Infinity, but I wouldn't recommend it.\nUnless I add es6 generators at some point.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnoratherton%2Ftypeout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnoratherton%2Ftypeout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnoratherton%2Ftypeout/lists"}