{"id":21527640,"url":"https://github.com/uvacoder/uva-scripts-collection","last_synced_at":"2025-03-17T18:43:22.859Z","repository":{"id":59328650,"uuid":"396285044","full_name":"Uvacoder/uva-scripts-collection","owner":"Uvacoder","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-24T02:26:21.000Z","size":39891,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T05:44:21.271Z","etag":null,"topics":["collection","curated","js","js-snips","myrepos","readme","scripts","snippets","tips"],"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/Uvacoder.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-08-15T08:52:10.000Z","updated_at":"2022-12-24T02:18:27.000Z","dependencies_parsed_at":"2023-01-30T20:00:42.618Z","dependency_job_id":null,"html_url":"https://github.com/Uvacoder/uva-scripts-collection","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/Uvacoder%2Fuva-scripts-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uvacoder%2Fuva-scripts-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uvacoder%2Fuva-scripts-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uvacoder%2Fuva-scripts-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Uvacoder","download_url":"https://codeload.github.com/Uvacoder/uva-scripts-collection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244091193,"owners_count":20396569,"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":["collection","curated","js","js-snips","myrepos","readme","scripts","snippets","tips"],"created_at":"2024-11-24T01:49:33.915Z","updated_at":"2025-03-17T18:43:22.837Z","avatar_url":"https://github.com/Uvacoder.png","language":"JavaScript","readme":"- https://github.com/Uvacoder/uva-css-scripts-collection\n- https://github.com/Uvacoder/aaa-css-reference-collect\n- https://github.com/Uvacoder/aaa-html-css-snips-collection\n- https://github.com/Uvacoder/aaa-css-tricks-collection\n\n\n## AsciiMorph\nAsciiMorph is a small stand alone javascript library for rendering ascii art and creations into elements, allowing for them to be changed out with a morphing transition.\n\n### Demo\nHere's a gif of it in action. You can also play with the [demo live here](http://codepen.io/tholman/full/BQLQyo).\n\n![Ascii Morph in action](https://s3.amazonaws.com/tholman.com/static-assets/ascii-morph-demo.gif)\n\n### Usage\n\nYou'll need an `dom` element for the ascii's to be rendered within.\n\n```html\n\u003c!-- Pre elements are perfect for this. --\u003e\n\u003cpre class=\"ascii-element\"\u003e\n\u003c/pre\u003e\n```\n\nNext up, you will want to initialize the library. The second parameter is the `width` and `height` properties you want in your rendering square. The ascii will be rendered centered within them, and fill the rest with white space. Naturally this looks best with monospace fonts.\n\n```javascript\n// Initialize AsciiMorph\nvar element = document.querySelector('pre');\nAsciiMorph(element, {x: 50,y: 25});\n```\n\nThen you can get to the fun, rendering elements, and morphing between them.\n\n```javascript\n\n// First, define some ascii art.\nvar bird = [\n \"                             /\",\n \"                            /\",\n \"                           /;\",\n \"                          //\",\n \"                         ;/\",\n \"                       ,//\",\n \"                   _,-' ;_,,\",\n \"                _,'-_  ;|,'\",\n \"            _,-'_,..--. |\",\n \"    ___   .'-'_)'  ) _)\\\\|      ___\",\n \"  ,'\\\"\\\"\\\"`'' _  )   ) _)  ''--'''_,-'\",\n \"-={-o-  /|    )  _)  ) ; '_,--''\",\n \"  \\\\ -' ,`.  ) .)  _)_,''|\",\n \"   `.\\\"(   `------''     /\",\n \"     `.\\\\             _,'\",\n \"       `-.____....-\\\\\\\\\",\n \"                 || \\\\\\\\\",\n \"                 // ||\",\n \"                //  ||\",\n \"            _-.//_ _||_,\",\n \"              ,'  ,-'/\"\n ]\n\nvar mona = [\n \"         ____\",\n \"        o8%8888,\",\n \"      o88%8888888.\",\n \"     8'-    -:8888b\",\n \"    8'         8888\",\n \"   d8.-=. ,==-.:888b\",\n \"   \u003e8 `~` :`~' d8888\",\n \"   88         ,88888\",\n \"   88b. `-~  ':88888\",\n \"   888b ~==~ .:88888\",\n \"   88888o--:':::8888\",\n \"   `88888| :::' 8888b\",\n \"   8888^^'       8888b\",\n \"  d888           ,%888b.\",\n \" d88%            %%%8--'-.\",\n \"/88:.__ ,       _%-' ---  -\",\n \"    '''::===..-'   =  --.  `\",\n ]\n \n// Then, you can render (will render instantly)\nAsciiMorph.render(bird);\n\n// Then morph, to a new creation\nAsciiMorph.morph(mona);\n\n```\n\n### License\n\nCopyright (c) 2016 Tim Holman - http://tholman.com\n\n[The MIT License](https://github.com/tholman/ascii-morph/blob/master/license.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuvacoder%2Fuva-scripts-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuvacoder%2Fuva-scripts-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuvacoder%2Fuva-scripts-collection/lists"}