{"id":13426889,"url":"https://github.com/coryschires/hover-caption","last_synced_at":"2025-03-15T22:30:44.217Z","repository":{"id":801649,"uuid":"503467","full_name":"coryschires/hover-caption","owner":"coryschires","description":"Simple jQuery plugin that adds both a caption and a gray-out effect when hovering over an image.","archived":false,"fork":false,"pushed_at":"2011-09-03T21:05:16.000Z","size":175,"stargazers_count":26,"open_issues_count":0,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-28T05:12:54.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://coryschires.com/jquery-hover-caption-plugin/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coryschires.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-02-05T05:26:27.000Z","updated_at":"2021-07-02T10:47:51.000Z","dependencies_parsed_at":"2022-07-05T16:01:22.193Z","dependency_job_id":null,"html_url":"https://github.com/coryschires/hover-caption","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/coryschires%2Fhover-caption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryschires%2Fhover-caption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryschires%2Fhover-caption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryschires%2Fhover-caption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coryschires","download_url":"https://codeload.github.com/coryschires/hover-caption/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801600,"owners_count":20350105,"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-07-31T00:01:47.625Z","updated_at":"2025-03-15T22:30:39.206Z","avatar_url":"https://github.com/coryschires.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"= JQuery hover caption plugin.\n\nhttp://coryschires-blog-post-images.s3.amazonaws.com/hover_caption_plugin.jpg\n\nHere’s a simple jQuery plugin that adds both a caption and a gray-out effect when\nhovering over an image. View the {live demo}[http://coryschires.github.com/hover-caption/].\n\n== How to make it work.\n\nDrop these scripts in your header:\n   \u003cscript src=\"jquery-1.6.3.min.js\" type=\"text/javascript\" charset=\"utf-8\"\u003e\u003c/script\u003e\n   \u003cscript src=\"jquery.hover_caption.js\" type=\"text/javascript\" charset=\"utf-8\"\u003e\u003c/script\u003e\n\nCall the plugin function on your images:\n   $(document).ready(function() {\n      $('img').hover_caption();\n   });\n\nAdd this tiny bit of CSS somewhere:\n   .hover_caption {\n      /* If you can count of CSS3 support: */\n      background-color: rgba(0, 0, 0, 0.7);\n\n      /* Or use a transparent image if you need to support bad browsers: */\n      /* background-image: url(hover_caption_bg.png); */\n\n      /* NOTE: If you're img elements have paddings or margins you'll need to\n      match them here to get things lined up properly. */\n   }\n\n== Configuration options.\n\nAnd here’s some configuration options:\n   $('img').hover_caption({\n      caption_font_size: '18px',\n      caption_color: 'white',\n      caption_bold: true,\n      caption_default: \"Click for screenshots.\"\n   });\n\n== Smart captions.\nIf your image has a title attribute, the plugin will use that as the caption. Otherwise it will default to \"Click for screenshots\". You can change the default if you like, of course.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryschires%2Fhover-caption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoryschires%2Fhover-caption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryschires%2Fhover-caption/lists"}