{"id":13659502,"url":"https://github.com/box/stalker","last_synced_at":"2025-04-06T21:14:47.104Z","repository":{"id":5363975,"uuid":"6550511","full_name":"box/stalker","owner":"box","description":"A jQuery plugin allowing elements to follow the user as they scroll a page.","archived":false,"fork":false,"pushed_at":"2017-02-02T01:34:00.000Z","size":17,"stargazers_count":228,"open_issues_count":0,"forks_count":23,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-03-30T20:12:18.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"HenrikJoreteg/ICanHaz.js","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/box.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-05T19:43:01.000Z","updated_at":"2024-10-20T22:38:37.000Z","dependencies_parsed_at":"2022-09-19T06:11:48.709Z","dependency_job_id":null,"html_url":"https://github.com/box/stalker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fstalker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fstalker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fstalker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Fstalker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/box","download_url":"https://codeload.github.com/box/stalker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247550689,"owners_count":20956987,"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-08-02T05:01:09.474Z","updated_at":"2025-04-06T21:14:47.074Z","avatar_url":"https://github.com/box.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![Project Status](http://opensource.box.com/badges/maintenance.svg)](http://opensource.box.com/badges)\n\nstalker\n=======\n\nA jQuery plugin allowing elements to follow the user as they scroll a page.\n\nHere's a simple example: http://jsfiddle.net/mattwiller/s2Pgh/\n\nInstallation\n------------\n\n`npm install jquery-stalker`\n\nUsage\n-----\n\n```js\n$(elements).stalker()\n```\n\nParameters\n-----\n\n**direction** (string - default: 'down'):\nThe direction the element should follow the user from its original position.  For example, specifying 'up' means that whenever the user is scrolled above the element's original position, the element will follow the user along the page.  When the user scrolls beneath the element's original position, the element will return to that position.\n\n**offset** (integer - default: 0):\nThe number of pixels from the edge of the screen the element should position itself while following the user.\n\n**stalkerStyle** (object/string - default: {}):\nCSS properties to be applied to the element while it is following the user.  The element's original CSS will be saved and reapplied when it returns to its original position. If a string is given, it will be treated as a class to apply to the element while it is following the user.\n\n**delay** (integer - default: 0):\nThe delay, in milliseconds, before the element leaves its original position to follow the user.\n\n**startCallback** (function - default: none):\nA callback to be executed when the element begins following the user.  The function context will be the DOM element which is starting to follow.\n\n**stopCallback** (function - default: none):\nA callback to be executed as soon as the element stops following the user and returns to its original position.  The function context will be the DOM element which is no longer following.\n\n\n## Copyright and License\n\nCopyright 2014 Box, Inc. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbox%2Fstalker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbox%2Fstalker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbox%2Fstalker/lists"}