You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# COSMIC TIME
2
-
## An animation toolkit for Iced-rs/Iced
2
+
## An animation toolkit for [Iced](https://github.com/iced-rs/iced)
3
3
4
4
> This Project was build for [Cosmic DE](https://github.com/pop-os/cosmic-epoch). Though this will work for any project that depends on [Iced](https://github.com/iced-rs/iced).
5
5
@@ -56,12 +56,12 @@ There are some different things here!
56
56
> let animation = chain![
57
57
58
58
Cosmic Time refers to animations as [`Chain`]s because of how we build then.
59
-
Each [`Keyframe`] is linked together like a chain. The Cosmic Time API doesn't
59
+
Each Keyframe is linked together like a chain. The Cosmic Time API doesn't
60
60
say "change your width from 10 to 100". We define each state we want the
61
61
widget to have `.width(10)` at `Duration::ZERO` then `.width(100)` at
62
62
`Duration::from_secs(10)`. Where the `Duration` is the time after the previous
63
-
[`keyframe`]. This is why we call the animations chains. We cannot get to the
64
-
next state without animating though all previous [`Keyframe`]s.
63
+
keyframe. This is why we call the animations chains. We cannot get to the
64
+
next state without animating though all previous Keyframes.
65
65
66
66
> self.timeline.set_chain(animation).start();
67
67
@@ -140,6 +140,9 @@ Done:
140
140
-[x] Lazy keyframes. (Keyframes that can use the position of a previous (active or not) animation to start another animation.)
141
141
142
142
TODOs:
143
+
-[ ] Add container and space animiations between arbitraty length units.
144
+
Example: Length::Shrink to Length::Fixed(10.) and/or Length::Fill to Length::Shrink
145
+
Only fixed Length::Fixed(_) are supported currently.
143
146
-[ ] Add `Cosmic` cargo feature for compatibility with both iced and System76's temporary fork.
144
147
-[ ] Low motion accesability detection to disable animations.
0 commit comments