{"id":18766200,"url":"https://github.com/vovayatsyuk/photoswipe-object-position","last_synced_at":"2025-12-08T22:30:12.644Z","repository":{"id":57684567,"uuid":"476326217","full_name":"vovayatsyuk/photoswipe-object-position","owner":"vovayatsyuk","description":"PhotoSwipe5 plugin that adds object-position property support","archived":false,"fork":false,"pushed_at":"2022-04-01T09:34:43.000Z","size":898,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T07:34:53.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vovayatsyuk.github.io/photoswipe-object-position/","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/vovayatsyuk.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":"2022-03-31T13:49:57.000Z","updated_at":"2024-12-01T06:25:49.000Z","dependencies_parsed_at":"2022-09-13T20:51:52.488Z","dependency_job_id":null,"html_url":"https://github.com/vovayatsyuk/photoswipe-object-position","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovayatsyuk%2Fphotoswipe-object-position","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovayatsyuk%2Fphotoswipe-object-position/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovayatsyuk%2Fphotoswipe-object-position/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vovayatsyuk%2Fphotoswipe-object-position/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vovayatsyuk","download_url":"https://codeload.github.com/vovayatsyuk/photoswipe-object-position/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239668893,"owners_count":19677629,"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-07T18:39:20.383Z","updated_at":"2025-12-08T22:30:12.575Z","avatar_url":"https://github.com/vovayatsyuk.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ObjectPosition plugin for [PhotoSwipe](https://github.com/dimsemenov/PhotoSwipe)\n\nObjectPosition — is a [PhotoSwipe](https://github.com/dimsemenov/PhotoSwipe)\nplugin that improves `object-position` property handling when cropped thumbnails\nare used.\n\n**You don't need this plugin if you don't use `object-position` for your cropped\nthumbnails.**\n\n## Improvements\n\n 1. Fixes thumbnail jumping animation while opening/closing lightbox.\n 2. Make sure that the initially zoomed image will show the same region of the image\n    as we saw in cropped thumbnail.\n\n[View Demo](https://vovayatsyuk.github.io/photoswipe-object-position/)\n\n## Usage\n\nDownload the `photoswipe-object-position.js` file and put it to your assets folder.\n\n\u003e Alternatively, you may install the plugin via NPM:\n\u003e\n\u003e ```\n\u003e npm i @vovayatsyuk/photoswipe-object-position\n\u003e ```\n\n```js\nimport PhotoSwipeLightbox from '/assets/photoswipe/dist/photoswipe-lightbox.esm.js';\nimport ObjectPosition from '/assets/photoswipe-object-position.js';\n\nconst lightbox = new PhotoSwipeLightbox({\n  gallery: '#my-gallery',\n  children: 'a',\n  pswpModule: () =\u003e import('/assets/photoswipe/dist/photoswipe.esm.js')\n});\n\nnew ObjectPosition(lightbox);\n\nlightbox.init();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvovayatsyuk%2Fphotoswipe-object-position","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvovayatsyuk%2Fphotoswipe-object-position","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvovayatsyuk%2Fphotoswipe-object-position/lists"}