{"id":18133013,"url":"https://github.com/sethsandaru/js-image-splitter-view","last_synced_at":"2025-04-16T06:16:40.236Z","repository":{"id":54088638,"uuid":"202067970","full_name":"sethsandaru/js-image-splitter-view","owner":"sethsandaru","description":"JS Library to create an Image Splitter UI View","archived":false,"fork":false,"pushed_at":"2024-05-13T07:13:29.000Z","size":5436,"stargazers_count":7,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T14:12:37.227Z","etag":null,"topics":["image","image-compare","image-splitter-view","js","library","ui-component","ui-design","view","web-ui"],"latest_commit_sha":null,"homepage":"https://sethphat.com/js-image-splitter-view/demo/","language":"JavaScript","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/sethsandaru.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-08-13T05:03:31.000Z","updated_at":"2024-08-27T09:28:04.000Z","dependencies_parsed_at":"2022-08-13T06:40:24.945Z","dependency_job_id":null,"html_url":"https://github.com/sethsandaru/js-image-splitter-view","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/sethsandaru%2Fjs-image-splitter-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethsandaru%2Fjs-image-splitter-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethsandaru%2Fjs-image-splitter-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethsandaru%2Fjs-image-splitter-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sethsandaru","download_url":"https://codeload.github.com/sethsandaru/js-image-splitter-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249207223,"owners_count":21230028,"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":["image","image-compare","image-splitter-view","js","library","ui-component","ui-design","view","web-ui"],"created_at":"2024-11-01T13:06:37.768Z","updated_at":"2025-04-16T06:16:40.205Z","avatar_url":"https://github.com/sethsandaru.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/xKOM9NB8p"],"categories":[],"sub_categories":[],"readme":"# js-image-splitter-view\nSimple JS/JQuery Library to create an Image Splitter View. Best use-case is for Compare Products/Images/... Website :D\n\nDemo (demo file is in the demo folder of this repository):   \n![Hehe](https://i.imgur.com/6pF4gzp.gif)\n\nOnline Demo: [https://sethphat.com/js-image-splitter-view/demo/](https://sethphat.com/js-image-splitter-view/demo/)\n\nVersion: **1.0.0**\n\n## Dependencies\n- JQuery\n- JQuery UI\n\nNote: you must include both JQuery and JQuery UI in order to use this library.\n\n## Usage\nInclude those files in `dist` to your project, then:\n```html\n\u003clink rel=\"stylesheet\" href=\"css/image.splitter.view.css\" /\u003e\n\u003cscript src=\"js/jquery.image.splitter.view.js\"\u003e\u003c/script\u003e\n```\n\n### Preparation\nYou need prepare this HTML structure before initialize the UI View:\n```html\n    \u003cdiv class=\"splitter-container\" id=\"splitterContainer\"\u003e\n        \u003cdiv\u003e\n            \u003cimg class=\"img-responsive\" src=\"img1.png\"\u003e\n        \u003c/div\u003e\n        \u003cdiv\u003e\n            \u003cimg class=\"img-responsive\" src=\"img2.png\"\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n```\n\n### Initialize\n```javascript\n\u003cscript\u003e\n\t$(document).ready(function() {\n\t\t$(\"#splitterContainer\").imageSplitter();\n\t});\n\u003c/script\u003e\n```\n\nResult:   \n![Result Default](https://i.imgur.com/h866olV.png)\n\n### Available Colors for Splitter Control\n- .is-primary\n- .is-success\n- .is-info\n- .is-warning\n- .is-danger\n\nYou need to add it like this:\n```html\n\u003cdiv class=\"splitter-container is-primary\" id=\"splitterContainer\"\u003e\n```\n\nResult:   \n![Splitter Control Image](https://i.imgur.com/J2TMZWx.png)\n\n## Important Note\n- You have to make sure both of your images is full-width and have a same width \u0026 height. Otherwise it will break.\n\n## Copyright \u0026 Supporting the project\nIf you really like this project \u0026 want to contribute a little for the development. You can buy me a coffee. Thank you very much for your supporting ♥.\n\n\u003ca href=\"https://www.buymeacoffee.com/xKOM9NB8p\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\nCopyright \u0026copy; 2018 by [Seth Phat](https://sethphat.com) aka Phat Tran Minh!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethsandaru%2Fjs-image-splitter-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsethsandaru%2Fjs-image-splitter-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethsandaru%2Fjs-image-splitter-view/lists"}