Skip to content

Commit

Permalink
fix(PreviewTools): update non working animation for floating case (#1095
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny authored Apr 29, 2024
1 parent 9494d02 commit dfccad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playroom/preview-tools.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export const controlsTransitionClasses = {
}),
};

export const floatingButtonTopTransitionClasses = controlsTransitionClasses;
// If we don't spread controlsTransitionClasses object, the animation is not working for some reason
export const floatingButtonTopTransitionClasses = {...controlsTransitionClasses};

export const floatingButtonBottomTransitionClasses = {
enter: style({
Expand Down

0 comments on commit dfccad5

Please sign in to comment.