{"id":13425675,"url":"https://github.com/codrops/DirectionAwareHoverEffect","last_synced_at":"2025-03-15T20:31:03.846Z","repository":{"id":5619510,"uuid":"6827199","full_name":"codrops/DirectionAwareHoverEffect","owner":"codrops","description":"How to create a direction-aware hover effect using CSS3 and jQuery. The idea is to slide in an overlay from the direction we are moving with the mouse.","archived":false,"fork":false,"pushed_at":"2017-04-23T08:10:17.000Z","size":139,"stargazers_count":396,"open_issues_count":11,"forks_count":115,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-03-01T05:12:15.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/codrops.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}},"created_at":"2012-11-23T12:37:52.000Z","updated_at":"2025-02-11T15:47:20.000Z","dependencies_parsed_at":"2022-09-03T06:21:50.479Z","dependency_job_id":null,"html_url":"https://github.com/codrops/DirectionAwareHoverEffect","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/codrops%2FDirectionAwareHoverEffect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codrops%2FDirectionAwareHoverEffect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codrops%2FDirectionAwareHoverEffect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codrops%2FDirectionAwareHoverEffect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codrops","download_url":"https://codeload.github.com/codrops/DirectionAwareHoverEffect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790950,"owners_count":20348378,"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:16.566Z","updated_at":"2025-03-15T20:31:03.348Z","avatar_url":"https://github.com/codrops.png","language":"HTML","readme":"\n# DirectionAwareHoverEffect\n\nHow to create a direction-aware hover effect using CSS3 and jQuery. The idea is to slide in an overlay from the direction we are moving with the mouse.\n\n[article on Codrops](http://tympanus.net/codrops/?p=8328)\n\n[demo](http://tympanus.net/TipsTricks/DirectionAwareHoverEffect/)\n\n### How to use\n\n```js\n$('#da-thumbs \u003e li').hoverdir();\n// or with options\n$('#da-thumbs \u003e li').hoverdir({hoverDelay: 75, hoverElem: '.elem'});\n```\n### Default options\n\n```js\ndefaults: {\n    speed: 300, // Times in ms\n    easing: 'ease',\n    hoverDelay: 0, // Times in ms\n    inverse: false,\n    hoverElem: 'div'\n}\n```\n\n### Method\n\n**show**\n\nShow the hover element, after `show` method is triggered, hover don't show or hide on `mouseenter` and `mouseleave`.\nYou have to use `hide` method to bind `mouseenter` and `mouseleave`.\n```js\n$('#da-thumbs \u003e li').hoverdir('show'); // Default value top\n// or with a specific direction\n$('#da-thumbs \u003e li').hoverdir('show','bottom'); // Possible value top, right, bottom, left\n```\n\n**hide**\n\nHide the hover element and bind `mouseenter` and `mouseleave`.\n```js\n$('#da-thumbs \u003e li').hoverdir('hide'); // Default value bottom\n// or with a specific direction\n$('#da-thumbs \u003e li').hoverdir('hide','top'); // Possible value top, right, bottom, left\n```\n\n**setOptions**\n\nAllows you to change the options while the plugin is already running\n```js\n$('#da-thumbs \u003e li').hoverdir('setOptions', options);\n```\n\n**destroy**\n\nUnbind the plugin\n```js\n$('#da-thumbs \u003e li').hoverdir('destroy');\n```\n\n**rebuild**\n\nBind the plugin\n```js\n$('#da-thumbs \u003e li').hoverdir('rebuild');\n// or with options\n$('#da-thumbs \u003e li').hoverdir('rebuild', options);\n```\n\nLicensed under the MIT License","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodrops%2FDirectionAwareHoverEffect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodrops%2FDirectionAwareHoverEffect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodrops%2FDirectionAwareHoverEffect/lists"}