{"id":20503635,"url":"https://github.com/withaarzoo/toggle-button","last_synced_at":"2025-07-06T15:33:43.510Z","repository":{"id":88120009,"uuid":"553362574","full_name":"withaarzoo/Toggle-Button","owner":"withaarzoo","description":"Animated Toggle Button Using HTML and CSS","archived":false,"fork":false,"pushed_at":"2023-01-10T09:23:04.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T07:35:29.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/withaarzoo.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-10-18T05:16:20.000Z","updated_at":"2022-10-18T05:19:48.000Z","dependencies_parsed_at":"2023-05-18T09:15:27.938Z","dependency_job_id":null,"html_url":"https://github.com/withaarzoo/Toggle-Button","commit_stats":null,"previous_names":["withaarzoo/toggle-button"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withaarzoo%2FToggle-Button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withaarzoo%2FToggle-Button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withaarzoo%2FToggle-Button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withaarzoo%2FToggle-Button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/withaarzoo","download_url":"https://codeload.github.com/withaarzoo/Toggle-Button/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242100329,"owners_count":20071697,"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-11-15T19:33:21.620Z","updated_at":"2025-03-05T20:39:50.385Z","avatar_url":"https://github.com/withaarzoo.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Animated Toggle Switch\nThis is a simple toggle switch animation created using HTML and CSS. It can be used as an on/off button or as a switch to toggle between two different options.\n\n## Features\n* Pure HTML and CSS\n* Smooth animation on toggle\n* Customizable colors and sizes\n\n## How to use\n1. Download the `style.css` file and include it in your HTML file using a `link` tag.\n2. Add the `.checkbox` class to a `div` element.\n3. Inside the `div`, add two `label` elements with the class `checkbox`. These will be the labels for the two options.\n4. Add an `input` element with the id `i` and set the `type` attribute to `checkbox`. This will be the actual toggle switch.\n5. Customize the colors and sizes by modifying the CSS variables in the `style.css` file.\n\n## Example\n```HTML\n\t\t\u003cinput type=\"checkbox\" id=\"i\"\u003e\n\t\n\t\t\u003clabel for=\"i\" class=\"checkbox\"\u003e\n\t\t\t\u003cdiv class=\"checkbox__inner\"\u003e\n\t\t\t\t\u003cdiv class=\"green__ball\"\u003e\u003c/div\u003e\n\t\t\t\u003c/div\u003e\n\t\t\u003c/label\u003e\n\t\t\u003cdiv class=\"checkbox__text\"\u003e\n\t\t\t\u003cspan\u003eturned\u003c/span\u003e\n\t\t\t\u003cdiv class=\"checkbox__text--options\"\u003e\n\t\t\t\t\u003cspan class=\"off\"\u003eoff\u003c/span\u003e\n\t\t\t\t\u003cspan class=\"on\"\u003eon\u003c/span\u003e\n\t\t\t\u003c/div\u003e\n\t\t\u003c/div\u003e\n```\n\n## Demo\nA demo of the toggle switch can be found [here](https://twitter.com/Aarzoo75/status/1582244041349279744).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithaarzoo%2Ftoggle-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwithaarzoo%2Ftoggle-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithaarzoo%2Ftoggle-button/lists"}