{"id":37386990,"url":"https://github.com/notiv-nt/postcss-transition","last_synced_at":"2026-01-16T05:22:25.861Z","repository":{"id":34182202,"uuid":"171178620","full_name":"notiv-nt/postcss-transition","owner":"notiv-nt","description":"Plugin that allows you to set the default value for the transition shorthand property","archived":false,"fork":false,"pushed_at":"2023-12-17T12:58:25.000Z","size":655,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T02:06:59.638Z","etag":null,"topics":["css","postcss","postcss-plugin","transition"],"latest_commit_sha":null,"homepage":null,"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/notiv-nt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-02-17T22:14:33.000Z","updated_at":"2025-01-21T00:35:55.000Z","dependencies_parsed_at":"2024-11-15T22:03:01.030Z","dependency_job_id":"3ef03b45-9b67-476d-876d-36963edc833a","html_url":"https://github.com/notiv-nt/postcss-transition","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.6176470588235294,"last_synced_commit":"2689530a72865cc7ba3a1b8d5cbb1f696eab08ad"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/notiv-nt/postcss-transition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notiv-nt%2Fpostcss-transition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notiv-nt%2Fpostcss-transition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notiv-nt%2Fpostcss-transition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notiv-nt%2Fpostcss-transition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notiv-nt","download_url":"https://codeload.github.com/notiv-nt/postcss-transition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notiv-nt%2Fpostcss-transition/sbom","scorecard":{"id":695106,"data":{"date":"2025-08-11","repo":{"name":"github.com/notiv-nt/postcss-transition","commit":"0656a65e3aad3f27e8f169199b824e9d47f3fa14"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-publish.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/notiv-nt/postcss-transition/build-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-publish.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/notiv-nt/postcss-transition/build-publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-publish.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/notiv-nt/postcss-transition/build-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/notiv-nt/postcss-transition/build-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/notiv-nt/postcss-transition/build-publish.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T03:27:08.656Z","repository_id":34182202,"created_at":"2025-08-22T03:27:08.656Z","updated_at":"2025-08-22T03:27:08.656Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["css","postcss","postcss-plugin","transition"],"created_at":"2026-01-16T05:22:25.779Z","updated_at":"2026-01-16T05:22:25.848Z","avatar_url":"https://github.com/notiv-nt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [postcss-transition](https://www.npmjs.com/package/postcss-transition)\n\n## Installation\n\n```\nnpm i postcss-transition\n```\n\nPlugin that allows you to set the **default** value for the **transition shorthand** property\n\n## USAGE:\n\n### Add the plugin (postcss.config)\n\n```javascript\npostcss([\n  // (plugins) Anything ....\n\n  require('postcss-transition')({\n    // Everything is optional, you can set only duration, or timing-function\n    // If nothing is set, then there is nothing to replace, the plugin will not do anything\n    property: 'ANY_PROPERTY',\n    duration: 'ANY_DURATION',\n    delay: 'ANY_DELAY',\n    timingFunction: 'ANY_FUNCTION',\n  }),\n\n  // (optimization) autoprefixer, postcss-clean, css-mqpacker ...\n]);\n```\n\n`ANY_**` — means **any** value, just string for `javascript`, will be inserted **AS IS**\n\n### Add property in source code\n\nOrder of values **SHOULD** be: [**property**][**duration**] [**delay**][**timing-function**], **should** be, but it's not **must** be\n\n**!!BUT!!** duration is always **BEFORE** delay\n\n```css\na {\n  transition: ; /* (dont sure it works with pre-processors) */\n  transition: color;\n  transition: color 2s;\n  transition: color 2s ease-in;\n}\n```\n\n### See results\n\n```css\na {\n  transition: ANY_PROPERTY ANY_DURATION ANY_DELAY ANY_FUNCTION;\n  /* use all defaults (ideally) */\n\n  transition: color ANY_DURATION ANY_DELAY ANY_FUNCTION;\n  /* property (exists) + duration (added) + delay (added) + timing-function (added) */\n\n  transition: color 2s ANY_DELAY ANY_FUNCTION;\n  /* property (exists) + duration (exists) + delay (added) + timing-function (added) */\n\n  transition: color 2s ANY_DELAY ease-in;\n  /* property (exists) + duration (exists) + delay (added) + timing-function (exists) */\n}\n```\n\n## Reason ?\n\nI'm (~too lazy~) tired to write the remaining values for the property\n\n## Alternatives ?\n\n#### 1) [Inherit](https://jsfiddle.net/notiv/k89z0arj/1/)\n\n```css\n*,\n::before,\n::after {\n  transition-timing-function: var(--transition-function);\n  transition-duration: var(--transition-duration);\n  transition-property: none;\n}\n\na {\n  transition-property: color;\n}\n```\n\n#### 2) Mixins\n\n- https://www.npmjs.com/package/transition-mixin\n- http://compass-style.org/reference/compass/css3/transition/\n- https://gist.github.com/tobiasahlin/7a421fb9306a4f518aab\n- ~my old mixin on stylus which you shouldn't see ))))~\n\n#### 3) Do not be lazy?\n\n## Example\n\n#### Config:\n\n```javascript\npostcss([\n  // ...\n\n  require('postcss-transition')({\n    property: 'var(--transition-property)',\n    duration: 'var(--transition-duration)',\n    delay: 'var(--transition-delay)',\n    timingFunction: 'var(--transition-timing-function)',\n  }),\n\n  // ...\n]);\n```\n\n#### Input\n\n```css\n/* just as an example of use with css variables (yes -_-, custom properties, i know) */\n:root {\n  --transition-property: color;\n  --transition-duration: 0.2s;\n  --transition-delay: 40ms;\n  --transition-timing-function: ease-in-out;\n}\n\na {\n  transition: color;\n}\n```\n\n#### Output\n\n```css\n:root {\n  --transition-property: color;\n  --transition-duration: 0.2s;\n  --transition-delay: 40ms;\n  --transition-timing-function: ease-in-out;\n}\n\na {\n  transition: color var(--transition-duration) var(--transition-delay) var(--transition-timing-function);\n}\n```\n\nhandy\n\n## More examples\n\n```css\n/* {\n  duration: '200ms'\n} */\n\na {\n  transition: color;\n  /* -\u003e */\n  transition: color 200ms;\n}\n```\n\n```css\n/* {\n  duration: '200ms',\n  timingFunction: 'ease-in-out'\n } */\n\na {\n  transition: color;\n  /* -\u003e */\n  transition: color 200ms ease-in-out;\n}\n```\n\n```css\n/* {\n  property: color,\n  duration: '200ms',\n  timingFunction: 'ease-in-out'\n } */\n\na {\n  transition: ;\n  /* -\u003e */\n  transition: color 200ms ease-in-out;\n}\n\nul li a {\n  transition: color, background-color;\n  /* -\u003e */\n  transition: color 200ms ease-in-out, background-color 200ms ease-in-out;\n}\n\nbutton {\n  transition: background-color;\n  /* -\u003e */\n  transition: background-color 200ms ease-in-out;\n}\n```\n\n```css\n/* {\n  duration: '200ms'\n } */\n\na {\n  transition: ease-in 1s font-size;\n  /* -\u003e */\n  transition: font-size 1s ease-in; /* just re-order in this case */\n}\n\na {\n  transition: font-size ease-in;\n  /* and */\n  transition: ease-in font-size;\n  /* -\u003e */\n  transition: font-size 200ms ease-in; /* the same */\n}\n\na {\n  transition: ease-in font-size 1s;\n  /* -\u003e */\n  transition: font-size 1s ease-in;\n}\n\na {\n  transition: 1s color ease-in;\n  /* -\u003e */\n  transition: color 1s ease-in;\n}\n\na {\n  transition: 1s 2s color ease-in;\n  /* -\u003e */\n  transition: color 1s 2s ease-in;\n}\n\na {\n  transition: ease-in color 1s 2s;\n  /* -\u003e */\n  transition: color 1s 2s ease-in;\n}\n```\n\nwell, you get the idea\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotiv-nt%2Fpostcss-transition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotiv-nt%2Fpostcss-transition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotiv-nt%2Fpostcss-transition/lists"}