{"id":21623500,"url":"https://github.com/dylanfoster/caramelbar.js","last_synced_at":"2026-05-10T07:41:51.002Z","repository":{"id":15197215,"uuid":"17925420","full_name":"dylanfoster/caramelBar.js","owner":"dylanfoster","description":"caramelBar.js is a lightweight sticky navbar jQuery plugin","archived":false,"fork":false,"pushed_at":"2014-04-05T20:19:26.000Z","size":180,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T22:12:31.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dylanfoster.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-03-20T00:22:45.000Z","updated_at":"2016-03-15T05:49:21.000Z","dependencies_parsed_at":"2022-09-01T14:10:45.188Z","dependency_job_id":null,"html_url":"https://github.com/dylanfoster/caramelBar.js","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanfoster%2FcaramelBar.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanfoster%2FcaramelBar.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanfoster%2FcaramelBar.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanfoster%2FcaramelBar.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanfoster","download_url":"https://codeload.github.com/dylanfoster/caramelBar.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244288106,"owners_count":20428928,"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-25T00:13:09.834Z","updated_at":"2026-05-10T07:41:50.965Z","avatar_url":"https://github.com/dylanfoster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#caramelBar.js\n\ncaramelBar.js is a lightweight sticky navbar jQuery plugin\n\n##1. Setup\n\nInclude the latest jQuery Library as well as caramelBar.js just before your closing body tag\n\n```html\n\u003cscript src=\"http://code.jquery.com/jquery-1.10.2.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/js/caramelBar.min.js\"\u003e\u003c/script\u003e\n```\n##2. HTML Markup\n\n```html\n\u003csection id=\"header_wrapper\"\u003e\n\t\u003cul class=\"menu_wrapper\"\u003e\n\t\t\u003cli class=\"menu_link\"\u003e\u003ca href=\"\"\u003e\u003c/a\u003e\u003c/li\u003e\n\t\t\u003cli class=\"menu_link\"\u003e\u003ca href=\"\"\u003e\u003c/a\u003e\u003c/li\u003e\n\t\t\u003cli class=\"menu_link\"\u003e\u003ca href=\"\"\u003e\u003c/a\u003e\u003c/li\u003e\n\t\t\u003cli class=\"menu_link\"\u003e\u003ca href=\"\"\u003e\u003c/a\u003e\u003c/li\u003e\n\t\u003c/ul\u003e\n\u003c/section\u003e\n```\n##3. CSS\nStyle your menu as you like.\n```css\nsection#header_wrapper {\nheight: 90px;\nwidth: 100%;\nbackground: rgba(255,255,255,0.2);\n}\n\nul.menu_wrapper {\nposition: absolute;\nwidth: 100%;\nmargin: 0;\npadding: 0;\nmargin-top: 25px;\n}\n\n.menu_links {\nposition: relative;\nfont-family: 'Poller One';\nfont-size: 24px;\ntext-align: center;\ndisplay: inline-block;\nwidth: calc(100%/4);\nfloat: left;\n}\n```\n\n##4. Usage\nCall caramelBar on your header (`#header_wrapper`).\n\n```javascript\n$('#header_wrapper').caramelBar();\n```\nor with options:\n```javascript\n$('#header_wrapper').caramelBar({\n\t\"top\":0,                           //set the top margin of the navigation bar\n\t\"left\":0,\t\t\t\t\t\t   //set the left margin of the navigation bar\n\t\"right\":0,                         //set the right margin of the navigation bar\n\t\"width\":\"200px\", \t\t\t\t   //set the width of the navigation bar (must set height and width together)\n\t\"height\":\"400px\",\t\t\t\t   //set the height of the navigation bar(must set height and width together)\n\t\"spacing\": 0\t\t\t\t\t   //used with height/width, sets the spacing between li elements\n});\n```\n\n##5. Demo\nhttp://www.dylan-foster.com/caramelBar\n\n##Credits \n[jQuery](http://api.jquery.com/)\u003cbr\u003e\n\n##Contact\nCopyright (C) 2014 Dylan foster\u003cbr\u003e\n[Fostered Development](http://www.dylan-foster.com)\u003cbr\u003e\n[Github](https://github.com/dylan947/)\u003cbr\u003e\n[@dylfos](http://twitter.com/dylfos)\u003cbr\u003e\n[+Fostered Development](https://plus.google.com/b/103850011544407258916/103850011544407258916/about)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanfoster%2Fcaramelbar.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanfoster%2Fcaramelbar.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanfoster%2Fcaramelbar.js/lists"}