Skills Plugins MCP Prompt Model 博客 我的中心

compose-animations

Use when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one state, switching composable content, or choosing between AnimatedVisibility, animate*AsState, rememberTransition, AnimatedContent, and Crossfade.

DeepseekModel キュレーション済みスキル 品質 優秀 · 90 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=chrisbanes-skills-skills-compose-animations-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name compose-animations description Use when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one state, switching composable content, or choosing between AnimatedVisibility, animate*AsState, rememberTransition, AnimatedContent, and Crossfade. Compose: animations Core principle Pick the smallest API that expresses the motion and its lifecycle. Procedure Identify the job: show or hide a subtree, animate one value, coordinate values from one state, resize content, swap content, or handle user-driven motion. Choose the matching API from the table. Prefer target-state APIs; use Animatable only when gestures, interruption, or imperative control require it. Check lifecycle: an alpha animation keeps content composed; AnimatedVisibility removes it after exit. Do not use a fade when unmounting is required. For AnimatedContent , render from the content lambda target and choose a contentKey only when visual identity differs from payload equality. Read AnimatedContent identity for state-holder details. Keep animated State in layout or draw block modifiers when it changes at frame rate; route deeper diagnosis to Compose performance . Use Navigation Compose transitions for destination swaps it owns, and dedicated libraries for art-based motion. Finish when the API, lifecycle, and content identity match the UI, no simpler API fits, and the relevant behavior is verified. API choice Need Prefer Show/hide a subtree with enter/exit semantics AnimatedVisibility One value follows state animate*AsState Several values follow one boolean, enum, or sealed state rememberTransition plus child animations Child size changes Modifier.animateContentSize() Different composable trees fill one region AnimatedContent , or Crossfade for the simple case Drag, fling, interruption, or imperative control Animatable Use an AnimationSpec when the default motion is wrong and a distinct label when multiple animations need tooling visibility. val width by animateDpAsState( targetValue = if (expanded) 200. dp else 56. dp, animationSpec = spring(dampingRatio = 0.7f ), label = "fabWidth" , ) For values that must remain synchronized, define them on one transition rather than several independent animate*AsState calls: val transition = rememberTransition(targetState = phase, label = "phase" ) val alpha by transition.animateFloat(label = "alpha" ) { target -> if (target == Phase.Visible) 1f else 0f } val offset by transition.animateDp(label = "offset" ) { target -> if (target == Phase.Visible) 0. dp else 24. dp } For animated fills, prefer drawBehind { drawRect(color.value) } over a value-form background when the color updates every frame. For an API ambiguity, start with the official Choose an animation API guide; use rememberInfiniteTransition for repeating cycles and SeekableTransitionState for seekable or test-controlled progress. When not to use this skill For side-effect timing or click-launched work, use Compose state and effects . For deep state-read or recomposition diagnosis, use Compose performance .
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。