{"id":30526653,"url":"https://github.com/downace/striped-background","last_synced_at":"2026-04-21T09:32:34.717Z","repository":{"id":277955007,"uuid":"934000977","full_name":"downace/striped-background","owner":"downace","description":"Generate customizable striped backgrounds using CSS gradients","archived":false,"fork":false,"pushed_at":"2025-04-16T06:47:00.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-01T08:20:34.235Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/downace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"custom":"https://pay.cloudtips.ru/p/057ae326"}},"created_at":"2025-02-17T05:30:31.000Z","updated_at":"2025-04-16T06:47:03.000Z","dependencies_parsed_at":"2025-04-16T11:49:35.223Z","dependency_job_id":null,"html_url":"https://github.com/downace/striped-background","commit_stats":null,"previous_names":["downace/striped-background"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/downace/striped-background","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downace%2Fstriped-background","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downace%2Fstriped-background/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downace%2Fstriped-background/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downace%2Fstriped-background/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/downace","download_url":"https://codeload.github.com/downace/striped-background/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downace%2Fstriped-background/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-08-27T00:43:20.153Z","updated_at":"2026-04-21T09:32:34.685Z","avatar_url":"https://github.com/downace.png","language":"TypeScript","funding_links":["https://pay.cloudtips.ru/p/057ae326"],"categories":[],"sub_categories":[],"readme":"# Striped Background\n\n\u003e Generate customizable striped backgrounds using CSS gradients\n\n### Usage\n\n```js\nimport stripedBackground from 'striped-background';\n\nconst div = document.getElementById('my-div');\n\nObject.assign(div.style, stripedBackground(\n    // Pattern, array of [line color, line width] tuples\n    [\n        ['#ffffff', 40],\n        ['rgb(244, 0, 39)', 30],\n    ],\n    '0.25turn', // Rotation angle\n    10, // Offset in pixels\n));\n```\n\nWith Vue 3:\n\n```vue\n\u003cscript\u003e\nimport { computed } from 'vue';\nimport stripedBackground from 'striped-background';\n\nconst divStyle = computed(() =\u003e ({\n  // ... other styles\n  ...stripedBackground(\n    [\n      ['#ffffff', 40],\n      ['rgb(244, 0, 39)', 30],\n    ],\n    '0.25turn',\n    10,\n  )\n}));\n\u003c/script\u003e\n\u003ctemplate\u003e\n  \u003cdiv :style=\"divStyle\"\u003e\u003c/div\u003e\n\u003c/template\u003e\n```\n\nAnimated (see [Examples](#examples)):\n\n```js\nconst div = document.getElementById('my-div');\n\nlet prevTimestamp;\nlet offset = 0;\nconst speed = 50 / 1000; // pixels per millisecond\n\nfunction step(timestamp) {\n    if (prevTimestamp === undefined) {\n        prevTimestamp = timestamp;\n        requestAnimationFrame(step);\n        return;\n    }\n    const distance = (timestamp - prevTimestamp) * speed;\n    offset = (offset - distance) % 200;\n    Object.assign(div.style, stripedBackground([\n        [\n            ['#ee1c25', 50],\n            ['#ffffff', 50],\n            ['#1b76bc', 50],\n            ['#ffffff', 50],\n        ],\n        -45,\n        offset,\n    ]));\n    prevTimestamp = timestamp;\n    requestAnimationFrame(step);\n}\n\nrequestAnimationFrame(step);\n```\n\n### Examples\n\n![Example image](example.png)\n\nFor live examples visit [examples page](https://downace.github.io/striped-background/examples.html).\n\nOr clone this repo and run local server:\n\n```shell\nnpx http-server -o examples.html .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdownace%2Fstriped-background","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdownace%2Fstriped-background","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdownace%2Fstriped-background/lists"}