{"id":21299031,"url":"https://github.com/ironexdev/zoom","last_synced_at":"2025-09-09T06:07:40.171Z","repository":{"id":45130844,"uuid":"120213164","full_name":"ironexdev/zoom","owner":"ironexdev","description":"Lightweight (8 Kb) ES5 javascript plugin without any dependencies, compatible with desktop and mobile devices.","archived":false,"fork":false,"pushed_at":"2025-01-25T09:38:27.000Z","size":941,"stargazers_count":33,"open_issues_count":5,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T19:47:58.177Z","etag":null,"topics":["javascript","lightweight","plugin","vanilla-javascript","zoom"],"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/ironexdev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-04T18:54:53.000Z","updated_at":"2025-01-25T09:38:31.000Z","dependencies_parsed_at":"2025-02-10T16:15:21.409Z","dependency_job_id":null,"html_url":"https://github.com/ironexdev/zoom","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ironexdev/zoom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironexdev%2Fzoom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironexdev%2Fzoom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironexdev%2Fzoom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironexdev%2Fzoom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ironexdev","download_url":"https://codeload.github.com/ironexdev/zoom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironexdev%2Fzoom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274250706,"owners_count":25249437,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"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":["javascript","lightweight","plugin","vanilla-javascript","zoom"],"created_at":"2024-11-21T14:58:55.874Z","updated_at":"2025-09-09T06:07:40.142Z","avatar_url":"https://github.com/ironexdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zoom By Ironex\n\nLightweight (8 Kb) ES5 javascript plugin without any dependencies, compatible with desktop and mobile devices.\n\nSupports doubleclick, mousemove, mousewheel, doubletap, touchmove and pinch events.\n\n## Installation\n\n- Option 1\n  - ``` yarn add zoom-by-ironex ```\n  - include it in your scripts ``` import { zoom } from \"zoom-by-ironex\"; ```\n  - https://www.npmjs.com/package/zoom-by-ironex\n- Option 2\n  - Add `\u003cscript src=\"/directory/zoom-by-ironex.min.js\"\u003e\u003c/script\u003e` to the bottom of html `\u003cbody\u003e`\n\nWhole script is just a single function called \"zoom\".\n\n## How To Use\n\nHTML\n\n```\n\u003cdiv class=\"zoom\"\u003e \u003c!-- Image container, this class can be renamed in settings --\u003e\n  \u003cimg src=\"image-file\" alt=\"Image\"\u003e\n\u003c/div\u003e\n```\n\nCSS (Optional)\n\n```\n.zoom-transition{ // Transition class name can be renamed in settings\n  transition: -moz-transform ease 200ms;\n  transition: -ms-transform ease 200ms;\n  transition: -o-transform ease 200ms;\n  transition: -webkit-transform ease 200ms;\n  transition: transform ease 200ms;\n}\n```\n\nJS\n\n```\nzoom();\n```\n\n## Settings\n\n Example call with all possible settings\n\n```\n  zoom({\n    active: \"zoom-active\", // Class added to container when it is zoomed\n    transition: \"zoom-transition\", // Class added to images when they are being animated, class is removed after animation is finished\n    visible: \"visible\" // Class added to images after they are loaded,\n    zoom: \"zoom\" // Image container class\n  }, {\n    scaleDefault: 2, // Used on doubleclick, doubletap and resize\n    scaleDifference: 0.5, // Used on wheel zoom\n    scaleMax: 10, // Maximum zoom\n    scaleMin: 1, // Minimum zoom\n    scrollDisable: true, // Disable page scrolling when zooming an image\n    transitionDuration: 200, // This should correspond with zoom-transition transition duration\n    doubleclickDelay: 300 // // Delay between clicks - used when scripts decides if user performed doubleclick or not\n  }, (function ($container, zoomed) {\n    console.log(zoomed); // Callback, gets triggered whenever active class is added/removed from container, value of zoomed is true or false\n  }));\n```\n\n## Supported Events\n\n- doubleclick\n- mousemove\n- mousewheel\n- doubletap\n- touchmove\n- pinch\n\n## Additional Info\n\nPlugin checks if image container (zoom) exists on window.load and executes for each element with image container class. If there is no element with specified class present, then it stops.\n- It means, that there is no need to check if image container (zoom) exists before executing the zoom function\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironexdev%2Fzoom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fironexdev%2Fzoom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironexdev%2Fzoom/lists"}