{"id":33091186,"url":"https://github.com/peachananr/panorama_viewer","last_synced_at":"2025-12-17T21:47:03.316Z","repository":{"id":13846309,"uuid":"16543525","full_name":"peachananr/panorama_viewer","owner":"peachananr","description":"Embed panorama photos on your website with Panorama Viewer","archived":false,"fork":false,"pushed_at":"2020-05-08T01:21:07.000Z","size":509,"stargazers_count":473,"open_issues_count":17,"forks_count":148,"subscribers_count":36,"default_branch":"master","last_synced_at":"2024-04-06T09:33:58.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://peachananr.github.io/panorama_viewer/demo/demo.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peachananr.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":"2014-02-05T12:02:05.000Z","updated_at":"2024-02-10T18:28:58.000Z","dependencies_parsed_at":"2022-08-07T07:15:48.798Z","dependency_job_id":null,"html_url":"https://github.com/peachananr/panorama_viewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peachananr/panorama_viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachananr%2Fpanorama_viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachananr%2Fpanorama_viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachananr%2Fpanorama_viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachananr%2Fpanorama_viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peachananr","download_url":"https://codeload.github.com/peachananr/panorama_viewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peachananr%2Fpanorama_viewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284719042,"owners_count":27052182,"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-11-16T02:00:05.974Z","response_time":65,"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":[],"created_at":"2025-11-14T18:00:23.169Z","updated_at":"2025-11-16T14:00:43.358Z","avatar_url":"https://github.com/peachananr.png","language":"JavaScript","funding_links":[],"categories":["13. 页面交互"],"sub_categories":["13.4 图片轮播(幻灯片)/图片展示  ###","13.4 图片轮播(幻灯片)/图片展示"],"readme":"#Panorama Viewer by Pete R.\nEmbed interactive Panorama Pictures on your site with this simple plugin.\nCreated by [Pete R.](http://www.thepetedesign.com), Founder of [Travelistly](http://www.Travelistly.com) and [BucketListly](http://www.bucketlistly.com)\n\n[![Panorama Viewer](http://www.thepetedesign.com/images/panorama_viewer_image.png \"Panorama Viewer\")](http://www.thepetedesign.com/demos/panorama_viewer_demo.html)\n\n## Demo\n[View demo](http://peachananr.github.io/panorama_viewer/demo/demo.html)\n\n## Compatibility\nModern browsers such as Chrome, Firefox, and Safari on both desktop and smartphones have been tested. I have not tested this on IE.\n\n## Basic Usage\nYou can now display your panorama photos on your site with this plugin. To do this, first you have to include the latest jQuery library together with `jquery.panorama_viewer.js` and `panorama_viewer.css` into your document's `\u003chead\u003e`. Now all you have to do this add your image to your HTML like this:\n\n\n````html\n\u003cdiv class=\"panorama\"\u003e\n \u003cimg src=\"your-panorama.jpg\"\u003e\n ...\n\u003c/div\u003e\n````\n\nMake sure to change the source of the image to your image and call the function as shown below:\n\n````javascript\n  $(\".panorama\").panorama_viewer({\n    repeat: false,              // The image will repeat when the user scroll reach the bounding box. The default value is false.\n    direction: \"horizontal\",    // Let you define the direction of the scroll. Acceptable values are \"horizontal\" and \"vertical\". The default value is horizontal\n    animationTime: 700,         // This allows you to set the easing time when the image is being dragged. Set this to 0 to make it instant. The default value is 700.\n    easing: \"ease-out\",         // You can define the easing options here. This option accepts CSS easing options. Available options are \"ease\", \"linear\", \"ease-in\", \"ease-out\", \"ease-in-out\", and \"cubic-bezier(...))\". The default value is \"ease-out\".\n    overlay: true               // Toggle this to false to hide the initial instruction overlay\n  });\n````\n\nNow you will be able to display your panoramic photos without having to rely on the global width of the website. I hope you will find this useful. Stay tuned for more updates.\n\nIf you want to see more of my plugins, visit [The Pete Design](http://www.thepetedesign.com/#design), or follow me on [Twitter](http://www.twitter.com/peachananr) and [Github](http://www.github.com/peachananr).\n\n## Other Resources\n- [Tutorial](http://www.onextrapixel.com/2014/02/20/embed-an-interactive-panoramic-photo-with-jquery-panorama-viewer/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachananr%2Fpanorama_viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeachananr%2Fpanorama_viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachananr%2Fpanorama_viewer/lists"}