Skip to content

Commit

Permalink
chore: remove unintended export (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Sep 23, 2023
1 parent d9bdf83 commit 9b2fa8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/tiny-transition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Rendering framework agnostic transition/animation utility.

- always `remount`
- no `Transition.Child`
- can workaround by setting same animation duration for all components + set `appear` for inner components
- can workaround by setting same animation duration for all components
4 changes: 2 additions & 2 deletions packages/tiny-transition/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class TransitionManager {
this.disposables.add(
onNextFrame(() => {
// "enterTo" on next frame
forceStyle(el); // TODO: don't need next frame if forceStyle?
forceStyle(el);
this.options.onEnterTo?.(el);

// notify "entered"
Expand Down Expand Up @@ -193,6 +193,6 @@ function parseDurationSingle(s: string): number {
return ms;
}

export function forceStyle(el: HTMLElement) {
function forceStyle(el: HTMLElement) {
typeof getComputedStyle(el).transition || console.log("unreachable");
}

0 comments on commit 9b2fa8c

Please sign in to comment.