forked from carbon-design-system/ibm-products
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(SidePanel): remove framer motion (carbon-design-system#6757)
* refactor(SidePanel): remove framer motion * fix: datagrid row click story * test(usePresence): add test coverage for hook * chore: add license * refactor(usePresence): track value based on animation end event * chore: update test name * chore: cleanup test * fix(SidePanel): address issue with placement prop animation * refactor(SidePanel): use carbon duration directly * chore(SidePanel): use integer syntax Co-authored-by: Alexander Melo <[email protected]> --------- Co-authored-by: Alexander Melo <[email protected]>
- Loading branch information
1 parent
d0b1481
commit c5fe9f9
Showing
8 changed files
with
317 additions
and
147 deletions.
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
packages/ibm-products-styles/src/components/SidePanel/_animations.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// | ||
// Copyright IBM Corp. 2025, 2025 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
@keyframes side-panel-entrance-reduced { | ||
0% { | ||
opacity: 0; | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes side-panel-exit-reduced { | ||
0% { | ||
opacity: 1; | ||
} | ||
|
||
100% { | ||
opacity: 0; | ||
} | ||
} | ||
|
||
@keyframes side-panel-entrance-right { | ||
0% { | ||
opacity: 0; | ||
/* stylelint-disable-next-line carbon/layout-use */ | ||
transform: translateX(var(--panel-transform)); | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
transform: translateX(0); | ||
} | ||
} | ||
|
||
@keyframes side-panel-entrance-left { | ||
0% { | ||
opacity: 0; | ||
/* stylelint-disable-next-line carbon/layout-use */ | ||
transform: translateX(calc(var(--panel-transform) * -1)); | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
transform: translateX(0); | ||
} | ||
} | ||
|
||
@keyframes side-panel-exit-right { | ||
0% { | ||
opacity: 1; | ||
transform: translateX(0); | ||
} | ||
|
||
100% { | ||
opacity: 0; | ||
/* stylelint-disable-next-line carbon/layout-use */ | ||
transform: translateX(var(--panel-transform)); | ||
} | ||
} | ||
|
||
@keyframes side-panel-exit-left { | ||
0% { | ||
opacity: 1; | ||
transform: translateX(0); | ||
} | ||
|
||
100% { | ||
opacity: 0; | ||
/* stylelint-disable-next-line carbon/layout-use */ | ||
transform: translateX(calc(var(--panel-transform) * -1)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.