{"id":19317600,"url":"https://github.com/queeniecplusplus/react_css","last_synced_at":"2026-04-15T13:32:04.133Z","repository":{"id":104588437,"uuid":"278975160","full_name":"QueenieCplusplus/React_css","owner":"QueenieCplusplus","description":"assign style add-on to component","archived":false,"fork":false,"pushed_at":"2020-07-12T02:42:58.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T04:46:20.158Z","etag":null,"topics":["css","es5-javascript","html5","react"],"latest_commit_sha":null,"homepage":"https://github.com/QueenieCplusplus/React_css","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/QueenieCplusplus.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}},"created_at":"2020-07-12T02:15:39.000Z","updated_at":"2020-07-12T02:43:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"d74474cd-96a0-4cce-83fa-12f388db3727","html_url":"https://github.com/QueenieCplusplus/React_css","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/QueenieCplusplus/React_css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FReact_css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FReact_css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FReact_css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FReact_css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QueenieCplusplus","download_url":"https://codeload.github.com/QueenieCplusplus/React_css/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FReact_css/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"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","es5-javascript","html5","react"],"created_at":"2024-11-10T01:15:38.543Z","updated_at":"2026-04-15T13:32:04.101Z","avatar_url":"https://github.com/QueenieCplusplus.png","language":"JavaScript","readme":"# React_css\nassign style add-on to component\n\n\n# add-ons Component\n\n    // CSS transition 轉場 (為類別指定合適的 CSS 樣式)\n    // 使用 \u003cReactCSSTransitionGroup/\u003e 此 addons 附加元件\n\n    // 加入附加元件\n    var React = require(\"react\");\n    var ReactCSSTransitionGroup = React.addons.ReactCSSTransitionGroup;\n\n    // html \n    \u003cReactCSSTransitionGroup transitionName = 'qStyle'\n        transitionEnter={this.state.enableAnimation}\n        transitionLeave={false}\n    \u003e\n        {qustionIssued}\n    \u003c/ReactCSSTransitionGroup\u003e\n\n\n# transition group Life Cycle\n\n轉場組生命週期\n\n    // 馬上生效\n    .qStyle-enter{\n\n\n    }\n\n    // 選中時生效\n    .qStyle-enter-active{\n\n\n    }\n\n\n    // 自動離開\n    .qStyle-leave{\n\n\n    }\n\n    // 離開時生效\n    .qStyle-leave-active{\n\n    }\n\n\n# CSS transition group\n\n樣式轉場組的使用叮嚀：\n\n因為此附加元件會延遲其子元件的移除，直到動畫結束為止。所以倘若沒有為此附加元件的 transitionName 屬性指定 CSS，\n則這些附加元件無法移除。\n\n另外，此附加元件的子元件都各自字有一唯一的 k/v 屬性集，轉場組使用這些值判斷附加元件何時進場出場該組，\n倘若沒有正確的主建屬性，動畫會失敗，且這附加元件也無法移除。\n\n所以即便轉場組只有一子元件如進場，其進場內的主建屬性也需要具備清楚。\n\n\n    .qStyle-enter{\n\n        // 彈出的視覺效果\n        // 主建屬性集必須齊全\n        transform: scale(1.2); // 放大倍數\n        transition: transform 0.2s // 過程歷經時間\n\n    }\n\n    .qStyle-enter-active{\n        \n        // 主建屬性集必須齊全\n        transform:\n\n    }\n\n    .qStyle-leave{\n    \n        // 主建屬性集必須齊全\n        transform:\n        opacity: 0;\n\n    }\n\n    .qStyle-leave-active{\n    \n        // 主建屬性集必須齊全\n\n    }\n\n\n＊ 範例\n\nhttps://github.com/QueenieCplusplus/React_email\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Freact_css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueeniecplusplus%2Freact_css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Freact_css/lists"}