{"id":16690378,"url":"https://github.com/blivesta/doorman","last_synced_at":"2025-06-19T09:41:17.907Z","repository":{"id":57215214,"uuid":"80343440","full_name":"blivesta/doorman","owner":"blivesta","description":"Simple animation for revealing elements.","archived":false,"fork":false,"pushed_at":"2017-04-05T15:46:45.000Z","size":48,"stargazers_count":37,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-03T10:47:19.918Z","etag":null,"topics":["animation","effect","es6","javascript","umd"],"latest_commit_sha":null,"homepage":"http://git.blivesta.com/doorman/","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/blivesta.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":"2017-01-29T11:55:10.000Z","updated_at":"2024-06-16T17:02:45.000Z","dependencies_parsed_at":"2022-09-11T22:12:23.765Z","dependency_job_id":null,"html_url":"https://github.com/blivesta/doorman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blivesta/doorman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blivesta%2Fdoorman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blivesta%2Fdoorman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blivesta%2Fdoorman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blivesta%2Fdoorman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blivesta","download_url":"https://codeload.github.com/blivesta/doorman/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blivesta%2Fdoorman/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260726563,"owners_count":23053181,"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":["animation","effect","es6","javascript","umd"],"created_at":"2024-10-12T15:51:28.406Z","updated_at":"2025-06-19T09:41:12.887Z","avatar_url":"https://github.com/blivesta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doorman\n\n[![npm version](https://img.shields.io/npm/v/doorman-effect.svg?style=flat-square)](https://www.npmjs.com/package/doorman-effect)\n[![Build Status](https://img.shields.io/travis/blivesta/doorman/master.svg?style=flat-square)](https://travis-ci.org/blivesta/doorman)\n\n\u003e Simple animation for revealing elements.\n\n## Demo\n\nhttp://git.blivesta.com/doorman/\n\n## Install\n\n```html\n\u003cscript src=\"umd/doorman.min.js\"\u003e\u003c/script\u003e\n```\n\nCDN\n\n```html\n\u003cscript src=\"https://unpkg.com/doorman-effect/umd/doorman.min.js\"\u003e\u003c/script\u003e\n```\n\nnpm\n\n```html\n$ npm install doorman-effect\n```\n```js\nconst Doorman = require('doorman-effect');\n```\n\n## Usage\n\ncss\n\n```css\n[data-doorman] {\n\tvisibility: hidden;\n}\n```\n\nhtml\n```html\n\u003cspan id=\"doorman\"\u003e...\u003c/span\u003e\n\u003cspan data-doorman\u003e...\u003c/span\u003e\n```\n\n### Call the Doorman\n\n```js\nconst elements = document.querySelector('#doorman');\nconst doorman = new Doorman(elements, { /* options */ });\ndoorman.start();\n```\n\nUse with multiple selectors.\n\n```js\nconst elements = document.querySelectorAll('[data-doorman]');\nArray.prototype.forEach.call(elements, function (el) {\n  const doorman = new Doorman(el, { /* options */ });\n  doorman.start();\n});\n```\n\nExample to use with [scrollmonitor](https://github.com/stutrek/scrollMonitor)\n\n```html\n\u003cstyle\u003e\n.section {\n  height: 100vh;\n}\n[data-doorman] {\n\tvisibility: hidden;\n}\n\u003c/style\u003e\n\n\u003cdiv id=\"section1\" class=\"section\"\u003e\n  \u003cspan data-doorman\u003esection1\u003c/span\u003e\n\u003c/div\u003e\n\u003cdiv id=\"section2\" class=\"section\"\u003e\n  \u003cspan data-doorman\u003esection2\u003c/span\u003e\n\u003c/div\u003e\n\u003cdiv id=\"section3\" class=\"section\"\u003e\n  \u003cspan data-doorman\u003esection3\u003c/span\u003e\n\u003c/div\u003e\n\n\u003cscript src=\"https://unpkg.com/scrollmonitor@1.2.2\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/doorman-effect/umd/doorman.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const sections = [\n    document.getElementById('section1'),\n    document.getElementById('section2'),\n    document.getElementById('section3')\n  ]\n  Array.prototype.forEach.call(sections, (section) =\u003e {\n    const elementWatcher = scrollMonitor.create(section, -200)\n    elementWatcher.enterViewport(() =\u003e {\n      const elements = section.querySelectorAll('[data-doorman]')\n      Array.prototype.forEach.call(elements, (el) =\u003e {\n        const doorman = new Doorman(el)\n        doorman.start()\n      })\n      elementWatcher.destroy()\n    })\n  })\n\u003c/script\u003e\n```\n\n\n## Options\n\n```js\n{\n  direction: 'lr',\n\t// lr (left to right) || rl (right to left) || tb (top to bottom) || bt (bottom to top).\n  bgColor: 'rgb(000, 000, 000)',\n  duration: '300', // ms\n  delay: '0', // ms\n  easing: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)', // easeInOutQuint\n  reverse: false,\n  begin: function (element) {},\n  complete: function (element) {}\n}\n```\n\n```html\n\u003cdiv\n  data-doorman-direction=\"lr\"\n  data-doorman-bgColor=\"rgb(000, 000, 000)\"\n  data-doorman-duration=\"300\"\n  data-doorman-delay=\"150\"\n  data-doorman-easing=\"cubic-bezier(0.860, 0.000, 0.070, 1.000)\"\n  data-doorman-reverse=\"flase\"\n\u003e\n  Content...\n\u003c/div\u003e\n```\n\n## Browsers\n\n- Chrome\n- Firefox\n- IE11+\n- Safari\n\n## License\nReleased under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblivesta%2Fdoorman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblivesta%2Fdoorman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblivesta%2Fdoorman/lists"}