Skip to content

Commit

Permalink
test(ac): transform changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thetaPC committed Oct 17, 2024
1 parent f5e7494 commit 60820bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/components/action-sheet/action-sheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

.action-sheet-wrapper {
@include position(null, 0, 0, 0);
// @include transform(translate3d(0, 100%, 0));
@include transform(translate3d(0, 100%, 0));

display: block;
position: absolute;
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/action-sheet/animations/md.enter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export const mdEnterAnimation = (baseEl: HTMLElement): Animation => {

wrapperAnimation
.addElement(baseEl.querySelector('.action-sheet-wrapper')!)
.fromTo('transform', 'translateY(100%)', 'translateY(0%)');
.keyframes([
{ offset: 0, transform: 'translateY(100%)' },
{ offset: 1, transform: 'translateY(0%)' }
]);

return baseAnimation
.addElement(baseEl)
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/action-sheet/animations/md.leave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export const mdLeaveAnimation = (baseEl: HTMLElement): Animation => {

wrapperAnimation
.addElement(baseEl.querySelector('.action-sheet-wrapper')!)
.fromTo('transform', 'translateY(0%)', 'translateY(100%)');
.keyframes([
{ offset: 0, transform: 'translateY(0%)' },
{ offset: 1, transform: 'translateY(100%)' }
]);

return baseAnimation
.addElement(baseEl)
Expand Down

0 comments on commit 60820bb

Please sign in to comment.