{"id":17676826,"url":"https://github.com/yoannchb-pro/infinitygrid","last_synced_at":"2026-05-18T03:31:33.155Z","repository":{"id":108707402,"uuid":"296898989","full_name":"yoannchb-pro/InfinityGrid","owner":"yoannchb-pro","description":"Create an infinity grid in html wich can display random elements","archived":false,"fork":false,"pushed_at":"2020-10-08T18:26:51.000Z","size":1450,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-13T07:31:34.065Z","etag":null,"topics":["css","grid","html","infinity","js","yoannchb"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yoannchb-pro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-19T15:35:55.000Z","updated_at":"2025-05-21T03:35:18.000Z","dependencies_parsed_at":"2023-03-22T01:18:21.719Z","dependency_job_id":null,"html_url":"https://github.com/yoannchb-pro/InfinityGrid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yoannchb-pro/InfinityGrid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannchb-pro%2FInfinityGrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannchb-pro%2FInfinityGrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannchb-pro%2FInfinityGrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannchb-pro%2FInfinityGrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoannchb-pro","download_url":"https://codeload.github.com/yoannchb-pro/InfinityGrid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannchb-pro%2FInfinityGrid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["css","grid","html","infinity","js","yoannchb"],"created_at":"2024-10-24T07:26:50.940Z","updated_at":"2026-05-18T03:31:33.120Z","avatar_url":"https://github.com/yoannchb-pro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InfinityGrid\r\nCreate an infinity grid in html wich can display random elements\r\n## Concept from:\r\nhttps://codepen.io/radixzz/pen/eRJKXy\r\n## See 3 example\r\nhttps://yoannchb-pro.github.io/InfinityGrid/index.html\r\n## Basic image\r\n\u003cimg src='./img/basic.png' alt='Basic image'\u003e\u003c/img\u003e\r\n## How to use ?\r\n```js\r\nconst simple = new Grid({\r\n  width: 200, //width of one block\r\n  height: 120, //height of one block\r\n  mouse: true, //disable or enable the mouse (default = true)\r\n  zoom: true, //disable or enable the zoom (default = false)\r\n  animation: { //set up an animation\r\n    velocityX: 1, velocity y for each block\r\n    velocityY: 0, //velocity x for each block\r\n    time: 10 //interval refresh\r\n  },\r\n  body: document.querySelector('#simple'), //wich element you want to transform in infinity grid ?\r\n  createElementFunction: createElement //each new element wich be create\r\n});\r\n```\r\n## Example\r\n```js\r\nconst createElement = async () =\u003e {\r\n  let r = Math.round(Math.random()*255));\r\n  let g = Math.round(Math.random()*255));\r\n  let b = Math.round(Math.random()*255));\r\n  let c = document.createElement('div');\r\n  c.style.backgroundColor = `rgb(${r}, ${g}, ${b})`;\r\n  c.style.width = \"100%\";\r\n  c.style.height = \"100%\";\r\n  return c;\r\n}\r\n                    \r\nconst animate_with_mouse = new Grid({\r\n  width: 200,\r\n  height: 120,\r\n  mouse: true,\r\n  animation: {\r\n    velocityX: 0.5,\r\n    velocityY: 0.5,\r\n    time: 10\r\n  },\r\n  body: document.querySelector('#animate_with_mouse'),\r\n  createElementFunction: createElement\r\n});\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoannchb-pro%2Finfinitygrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoannchb-pro%2Finfinitygrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoannchb-pro%2Finfinitygrid/lists"}