{"id":16065162,"url":"https://github.com/knowankit/thanos-snap","last_synced_at":"2025-04-05T10:12:16.186Z","repository":{"id":57390278,"uuid":"184604617","full_name":"knowankit/thanos-snap","owner":"knowankit","description":"A fun package for Marvel Thanos which wipes the image with one snap 😜","archived":false,"fork":false,"pushed_at":"2020-02-27T17:16:23.000Z","size":5897,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T06:43:24.969Z","etag":null,"topics":["avengers-endgame","marvel","snap","thanos"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/knowankit.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}},"created_at":"2019-05-02T15:20:52.000Z","updated_at":"2023-12-29T06:26:31.000Z","dependencies_parsed_at":"2022-09-12T22:52:10.131Z","dependency_job_id":null,"html_url":"https://github.com/knowankit/thanos-snap","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/knowankit%2Fthanos-snap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowankit%2Fthanos-snap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowankit%2Fthanos-snap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowankit%2Fthanos-snap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowankit","download_url":"https://codeload.github.com/knowankit/thanos-snap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318749,"owners_count":20919484,"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":["avengers-endgame","marvel","snap","thanos"],"created_at":"2024-10-09T05:11:37.901Z","updated_at":"2025-04-05T10:12:16.161Z","avatar_url":"https://github.com/knowankit.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thanos-snap by [Ankit](https://knowankit.com)\nA custom web component to make your html element disappear with one snap of thanos. But unlike thanos power, this component does not bring back the dead. Use it wisely. :)\n\n![Hover gif](https://github.com/knowankit/thanos-snap/blob/master/thanos-hand.gif)\n## Installation\n### Install via npm:\n\n`$ npm install thanos-end-game`\n\n## Usage\nTo use thanos-snap in your website, just add the `thanos.min.js` into your document's `\u003chead\u003e`. That's it! You've thanos power now. Please use it wisely.\n\nAdd the custom component tag, give the `id` of the `object` and of the `weapon`. \nFor example:\n\n`\u003cthanos-snap object='iron-man' weapon='thumb'\u003e \u003c/thanos-snap\u003e`\n\nIn the above component `iron-man` and `thumb` are id given to the `div` and the `button` respectively.\n\n```html\n\u003cdiv id='iron-man' class=\"iron-man mt-4\"\u003e\n    \u003cimg src=\"iron-man.png\" /\u003e\n\u003c/div\u003e\n\u003cbutton id='thumb'\u003eSnap\u003c/button\u003e\n```\n\n### Adding js file to your page\n```html\n\u003cscript src=\"thanos.min.js\"\u003e\u003c/script\u003e\n```\n\nor use a CDN version by [jsDelivr](https://cdn.jsdelivr.net/npm/thanos-snap/thanos.min.js)\n\n**You need to add the css as well to make pixel effect work properly**\n```css\n.dust {\n    position: absolute;\n  }\n  * {\n      margin: 0px;\n      overflow-x: hidden;\n  }\n.iron-man {\n    display: inline-block;\n}\nYou can rename the `.iron man` class with the one which you gave in the component. \n```\n\n## Dependencies\n`html2canvas`\n`chance`\n`jQuery`\n`jQueryUi`\n\nAdd the scripts in sequential manner as per the above list.\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js\"\u003e\u003c/script\u003e\n```\n\nAdd the scripts present in scripts folder after doing npm install\n\n```html\n\u003cscript type=\"text/javascript\" src=\"scripts/html2canvas.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"scripts/chance.js\"\u003e\u003c/script\u003e\n```\n\n## Demo\n\n[Click here](https://thanos.knowankit.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowankit%2Fthanos-snap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowankit%2Fthanos-snap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowankit%2Fthanos-snap/lists"}