{"id":20244061,"url":"https://github.com/carbonpackages/carbon.neosui.loadinganimation","last_synced_at":"2026-02-12T23:33:03.673Z","repository":{"id":259183661,"uuid":"876550792","full_name":"CarbonPackages/Carbon.NeosUi.LoadingAnimation","owner":"CarbonPackages","description":"Loading animation for Neos UI","archived":false,"fork":false,"pushed_at":"2025-03-11T22:50:10.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T11:00:59.740Z","etag":null,"topics":["loading-animations","loading-indicator","loading-spinner","neos-ui","neoscms","react"],"latest_commit_sha":null,"homepage":"","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/CarbonPackages.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-22T06:54:52.000Z","updated_at":"2025-03-11T22:49:54.000Z","dependencies_parsed_at":"2024-10-23T10:05:57.330Z","dependency_job_id":"61f80d05-8c30-4585-98f5-c34fd330b21c","html_url":"https://github.com/CarbonPackages/Carbon.NeosUi.LoadingAnimation","commit_stats":null,"previous_names":["carbonpackages/carbon.neosui.loadinganimation"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/CarbonPackages/Carbon.NeosUi.LoadingAnimation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonPackages%2FCarbon.NeosUi.LoadingAnimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonPackages%2FCarbon.NeosUi.LoadingAnimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonPackages%2FCarbon.NeosUi.LoadingAnimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonPackages%2FCarbon.NeosUi.LoadingAnimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarbonPackages","download_url":"https://codeload.github.com/CarbonPackages/Carbon.NeosUi.LoadingAnimation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarbonPackages%2FCarbon.NeosUi.LoadingAnimation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29386220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T22:07:52.078Z","status":"ssl_error","status_checked_at":"2026-02-12T22:07:49.026Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["loading-animations","loading-indicator","loading-spinner","neos-ui","neoscms","react"],"created_at":"2024-11-14T09:11:48.077Z","updated_at":"2026-02-12T23:33:03.658Z","avatar_url":"https://github.com/CarbonPackages.png","language":"JavaScript","readme":"# Carbon.NeosUi.LoadingAnimation\n\nIt’s important that users understand that things are happening when they have to wait for something. This loading timer\ncan be used to provide feedback when there is a server response delay.\n\nThis is a small package to help create a nice loading animation in the [Neos UI](http://github.com/neos/neos-ui).\nThere are three variants of the loading animation: One with a CSS file, one with [StyleX](https://stylexjs.com),\nand one with pure inline style attributes. Use the one that best suits your stack.\n\n## How it looks\n\n![Visualization of animation](https://github.com/user-attachments/assets/afecd1bf-d1de-4cb7-a1c7-813bd1ea2a5b)\n\n## How to install\n\nBased on your package manager run:\n\n```bash\n# npm\nnpm install carbon-neos-loadinganimation --save-dev\n# pnpm\npnpm add carbon-neos-loadinganimation -D\n# Yarn\nyarn add carbon-neos-loadinganimation --dev\n```\n\n## How to use\n\n```js\n// Styled with inline styles\nimport { LoadingWithStyles } from \"carbon-neos-loadinganimation\";\n\n// Styled with css classes\nimport { LoadingWithClassNames } from \"carbon-neos-loadinganimation\";\n\n// Styled with styleX classes\nimport { LoadingWithStyleX } from \"carbon-neos-loadinganimation\";\n```\n\nYou can also directly import the loader:\n\n```js\n// Styled with inline styles\nimport LoadingAnimation from \"carbon-neos-loadinganimation/LoadingWithStyles\";\n\n// Styled with css classes\nimport LoadingAnimation from \"carbon-neos-loadinganimation/LoadingWithClassNames\";\n\n// Styled with styleX classes\nimport LoadingAnimation from \"carbon-neos-loadinganimation/LoadingWithStyleX\";\n```\n\nYou can use the component inside react like this\n\n```jsx\nimport React, { useState, useEffect } from \"react\";\nimport LoadingAnimation from \"carbon-neos-loadinganimation/LoadingWithStyles\";\n\nfunction Editor({ id, isLoading }) {\n  const [isLoading, setIsLoading] = useState(true);\n\n  useEffect(() =\u003e {\n    setLoading(true);\n    // Do your calls\n    // ...\n    setLoading(false);\n  }, []);\n\n  return \u003cLoadingAnimation id={id} isLoading={isLoading} delayTime={2000} timeoutTime={7000} heightMultiplier={2} /\u003e;\n}\n```\n\nEvery component receives following props:\n\n| Property name | Default value              | Description                                                          |\n| ------------- | -------------------------- | -------------------------------------------------------------------- |\n| `isLoading`   | `false`                    | The main property. True will start the animation process.            |\n| `delayTime`   | `500`                      | The time in ms after the circle animations starts.                   |\n| `timeoutTime` | `5000`                     | The time in ms after the dots animations starts.                     |\n| `id`          | `null`                     | The id of the container                                              |\n| `title`       | `'Neos.Neos:Main:loading'` | The title of the container. Will shown a tooltip. Will be translated |\n| `width`       | `60`                       | Controls the size of the animation                                   |\n\n\u003e `delayTime` and `timeoutTime` should be positive. `timeoutTime` is the time after `delayTime` is finished.\n\n## How it works\n\nAfter a certain time when the `isLoading` is set to `true`, determined by `delayTime` and `timeoutTime`, the timers\nchanges his state. If `isLoading` is false, nothing is displayed at all.\n\n```\n                      ┌────────────────────┐\n              ┌───────│     isLoading      │───────┐\n              │       └────────────────────┘       │\n\n            true                                 false\n\n              │                                    │\n              ▼                                    ▼\n┌───────────────────────────┐        ┌───────────────────────────┐\n│                           │        │       cancel timer        │\n│       reserve space       │        │             +             │\n│                           │        │        return null        │\n└───────────────────────────┘        └───────────────────────────┘\n              │\n\n    after delayTime in ms\n\n              │\n              ▼\n┌───────────────────────────┐\n│                           │\n│   show circle animation   │\n│                           │\n└───────────────────────────┘\n              │\n\n   after timeoutTime in ms\n\n              │\n              ▼\n┌───────────────────────────┐\n│                           │\n│    show dots animation    │\n│                           │\n└───────────────────────────┘\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarbonpackages%2Fcarbon.neosui.loadinganimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarbonpackages%2Fcarbon.neosui.loadinganimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarbonpackages%2Fcarbon.neosui.loadinganimation/lists"}