Skip to content

Instantly share code, notes, and snippets.

@ZZANZU
Last active December 10, 2023 12:10
Show Gist options
  • Save ZZANZU/c209769ee33eea43416918f8a8c31c1f to your computer and use it in GitHub Desktop.
Save ZZANZU/c209769ee33eea43416918f8a8c31c1f to your computer and use it in GitHub Desktop.
<Transition
app:constraintSetStart="@+id/start"
app:constraintSetEnd="@id/end"
motion:duration="3000">
<OnClick <!--πŸ”₯ 클릭을 톡해 μ• λ‹ˆλ©”μ΄μ…˜ μ‹€ν–‰-->
motion:targetId="@+id/example_btn"
motion:clickAction="toggle"
/>
<KeyFrameSet>
<KeyAttribute
app:motionTarget="@+id/example_iv"
app:framePosition="20"> <!--πŸ”₯ 20% μ§€μ μ˜ μ• λ‹ˆλ©”μ΄μ…˜ μ •μ˜-->
<CustomAttribute
app:customColorValue="@color/example_iv"
app:attributeName="colorFilter" />
</KeyAttribute>
<KeyAttribute
app:motionTarget="@+id/example_iv"
app:framePosition="70"> <!--πŸ”₯ 70% μ§€μ μ˜ μ• λ‹ˆλ©”μ΄μ…˜ μ •μ˜-->
<CustomAttribute
app:customColorValue="@color/example_iv"
app:attributeName="colorFilter" />
</KeyAttribute>
</KeyFrameSet>
</Transition>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment