{"id":19667444,"url":"https://github.com/jchehe/gsap_cn","last_synced_at":"2025-09-05T02:13:39.436Z","repository":{"id":145196390,"uuid":"119536658","full_name":"JChehe/GSAP_CN","owner":"JChehe","description":"GSAP 2.x（GreenSock Animation Platform）文档中文版。https://jchehe.gitbook.io/gsap-2-cn/","archived":false,"fork":false,"pushed_at":"2018-03-02T08:39:11.000Z","size":1553,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-28T23:42:44.303Z","etag":null,"topics":["animation","greensock","gsap","javascript","translation","tween"],"latest_commit_sha":null,"homepage":"https://jchehe.gitbook.io/gsap-2-cn/","language":null,"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/JChehe.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":"2018-01-30T13:02:30.000Z","updated_at":"2021-09-28T03:18:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"2dcc6f0e-801d-4f0e-9452-cad993f8150a","html_url":"https://github.com/JChehe/GSAP_CN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JChehe/GSAP_CN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JChehe%2FGSAP_CN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JChehe%2FGSAP_CN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JChehe%2FGSAP_CN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JChehe%2FGSAP_CN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JChehe","download_url":"https://codeload.github.com/JChehe/GSAP_CN/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JChehe%2FGSAP_CN/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273699712,"owners_count":25152286,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["animation","greensock","gsap","javascript","translation","tween"],"created_at":"2024-11-11T16:32:11.637Z","updated_at":"2025-09-05T02:13:39.390Z","avatar_url":"https://github.com/JChehe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## 开始使用文档\n\n“通过代码生成动画”这种方式给人的第一感觉是：“不是吧？！”。但不用担心，本平台就是让这种方式变得简单、直观和可行。\n\n#### 查看文档主菜单\n\n左侧菜单栏涵盖了 GreenSock 所有类的 API（HTML5 版本）。任意一个类都提供了概述和它所拥有的方法和属性，而每个方法和属性均拥有各自的详情页。另外，一定要看看 Plugins 和 Utilities 里的工具，你一定会被 GSAP 核心动画能力以外的东西所惊讶到。\n\n#### 我们最流行的工具\n\n了解 GreenSock 中最流行工具的技术细节\n\n* TweenLite\n\n  TweenLite 是一款超级快速、轻量且灵活的工具。它是 GreenSock 动画平台（GSAP）的基础。一个 TweenLite 实例能处理任意对象（或对象数组）的一个或多个属性。\n\n* TweenMax\n\n  TweenMax 对 TweenLite 进行了扩展，添加了很多有用（但非必要）的特性，如 repeat\\(\\)、repeatDelay\\(\\)、yoyo\\(\\) 和 updateTo\\(\\) 等。它同时默认引入了很多额外的插件，以保证自身的全面性。当然，这些插件也适用于 TweenLite。只不过 TweenMax 帮你省了加载通用插件这一步骤，这些插件有：CSSPlugin、RoundPropsPlugin、BezierPlugin、AttrPlugin、DirectionalRotationPlugin、EasePack、TimelineLite 和 TimelineMax。\n\n* TimelineLite\n\n  TimelineLite 是一款轻量、直观的时间轴类，用于创建和管理由 TweenLite、TweenMax、TimelineLite 和 TimelineMax 实例组成的队列。Timeline 实例好比一个容器，可根据时间放置补间动画实例（或其他 timeline）。\n\n* TimelineMax\n\n  TimelineMax 对 TimelineLite 进行了扩展，在 TimelineLite 的基础上增加了很多有用（但非必要）的特性，如 repeat、repeatDelay、yoyo、currentLabel\\(\\)、tweenTo\\(\\)、tweenFromTo\\(\\)、getLabelAfter\\(\\)、getLabelBefore\\(\\) 和 getActive\\(\\) 等。\n\n* Draggable\n\n  Draggable 通过使用鼠标/触摸事件，让几乎所有 DOM 元素变得可拖拽、可旋转、可投掷，甚至可弹性滚动。另外，它还能与 ThrowPropsPlugin（可选）完美集成，使用户能进行回弹和基于动量的减速过渡。\n\n#### GreenSock 官方练习（视频和电子书）\n\n如果你想知道 GSAP 能做什么，可以看看官方视频教程[《Learn HTML5 Animation with GreenSock》](https://www.nobledesktop.com/html5-greensock-video-class-gsap?a=ox7)。它超过 5 小时，由我们的极客大使 Carl Schooff 录制。该教程基于真实项目，详细说明了实现过程中每一步。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchehe%2Fgsap_cn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjchehe%2Fgsap_cn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchehe%2Fgsap_cn/lists"}