{"id":16776575,"url":"https://github.com/richard1320/lava-lamp","last_synced_at":"2026-03-02T10:31:02.242Z","repository":{"id":8148999,"uuid":"9568793","full_name":"Richard1320/Lava-Lamp","owner":"Richard1320","description":"A JavaScript animation plugin for menus. It creates a div that moves when you mouse over an element, giving it an elastic animation.","archived":false,"fork":false,"pushed_at":"2023-03-14T15:09:07.000Z","size":541,"stargazers_count":38,"open_issues_count":10,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-16T07:31:40.114Z","etag":null,"topics":["animations","css","css-animations","css3","css3-animations","lava-lamp","mouse"],"latest_commit_sha":null,"homepage":"","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/Richard1320.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-04-20T18:39:11.000Z","updated_at":"2024-03-03T06:54:47.000Z","dependencies_parsed_at":"2024-06-18T18:41:59.100Z","dependency_job_id":null,"html_url":"https://github.com/Richard1320/Lava-Lamp","commit_stats":{"total_commits":66,"total_committers":3,"mean_commits":22.0,"dds":0.1515151515151515,"last_synced_commit":"fd0239b61a540150a5d624751136e0d0fd68b97a"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Richard1320%2FLava-Lamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Richard1320%2FLava-Lamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Richard1320%2FLava-Lamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Richard1320%2FLava-Lamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Richard1320","download_url":"https://codeload.github.com/Richard1320/Lava-Lamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243961798,"owners_count":20375315,"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":["animations","css","css-animations","css3","css3-animations","lava-lamp","mouse"],"created_at":"2024-10-13T07:10:23.082Z","updated_at":"2025-03-17T02:31:35.950Z","avatar_url":"https://github.com/Richard1320.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lava-Lamp\n=================\n\nDescription: A JavaScript animation plugin for menus. It creates a div that moves when you mouse over an element, giving\nit an elastic animation.\n\nAuthor: [Richard Hung](https://magicmediamuse.com/)\n\nMore documentation and examples: [https://richard1320.github.io/Lava-Lamp/](https://richard1320.github.io/Lava-Lamp/)\n\nHow to install\n--------------------\n\n**Link Files**\n\nLava Lamp has a .js and .css file. All its animations are done with CSS3 transitions, so you can use or modify the\nadvanced transition-timing-function to create custom easing.\n\n```html\n\u003c!-- Include the stylesheet --\u003e\n\u003clink type=\"text/css\" href=\"build/css/lavalamp.css\" rel=\"stylesheet\" media=\"screen\"/\u003e\n\u003c!-- Include the lava lamp plugin --\u003e\n\u003cscript type=\"text/javascript\" src=\"build/js/lavalamp.js\"\u003e\u003c/script\u003e\n```\n\n**Create HTML**\n\nCreate a container for the slider and children for the panels. Remember to add a default active element.\n\n```html\n\u003cul id=\"navlist\"\u003e\n    \u003cli class=\"active\"\u003e\u003ca href=\"/\"\u003eHome\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"/about.html\"\u003eAbout\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"/services.html\"\u003eServices\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"/programs.html\"\u003ePrograms\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"/contact.html\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n```\n\n**Call the plugin**\n\nCall the lava lamp plugin after the HTML markup.\n\n```javascript\nconst settings = {\n    margins: true,\n};\nconst element = document.getElementById(\"navlist\");\nconst lavalampInstance = new Lavalamp(element, settings);\n```\n\n**Style it**\n\nThe plugin creates a div with the `lavalamp__object` class in the container. This object stretches with the width and\nheight of the element that you're hovering over.\n\n```css\n.lavalamp__object {\n    box-shadow: 0 0 5px 0 #999 inset;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichard1320%2Flava-lamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichard1320%2Flava-lamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichard1320%2Flava-lamp/lists"}