Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Oct 22, 2023
1 parent 312f2c2 commit 0d6eb71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/tiny-transition/src/lagged/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
// https://github.com/solidjs-community/solid-primitives/pull/414#issuecomment-1520787178
// https://github.com/solidjs-community/solid-primitives/pull/437

// animation in each direction requires two intemediate states
// false -(true)-> enterFrom -(next frame)-> enterTo -(timeout)-> true
// animation in each direction requires two intemediate steps
// false --(true)----> enterFrom --(true)--> enterTo ---(timeout)-> true
// <-(timeout)-- leaveTo <-(false)-- leaveFrom <--(false)----
export type LaggedBooleanState =
| boolean
| "enterFrom"
Expand Down

0 comments on commit 0d6eb71

Please sign in to comment.