Skip to content

Commit cbe5c71

Browse files
committed
feat(ionReorder): better animations
1 parent 64786fb commit cbe5c71

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

Diff for: scss/_items.scss

+4-14
Original file line numberDiff line numberDiff line change
@@ -637,12 +637,6 @@ button.item.item-button-right {
637637
@include translate3d($item-left-edit-open-width, 0, 0);
638638
}
639639

640-
.list-right-editing .item-right-editable .item-content,
641-
.item-right-editing.item-right-editable .item-content {
642-
// actively editing the left side of the item
643-
@include translate3d(-$item-right-edit-open-width, 0, 0);
644-
}
645-
646640
.item-remove-animate {
647641
&.ng-leave {
648642
@include transition-duration( $item-remove-transition-duration );
@@ -731,11 +725,11 @@ button.item.item-button-right {
731725
// -------------------------------
732726

733727
.item-right-edit {
734-
@include transition(all $item-edit-transition-function $item-edit-transition-duration / 2);
728+
@include transition(all $item-edit-transition-function $item-edit-transition-duration);
735729
position: absolute;
736730
top: 0;
737731
right: 0;
738-
z-index: 0;
732+
z-index: $z-index-item-reorder;
739733
width: $item-right-edit-open-width * 1.5;
740734
height: 100%;
741735
background: inherit;
@@ -755,21 +749,17 @@ button.item.item-button-right {
755749
}
756750
}
757751

758-
display: none;
752+
display: block;
759753
opacity: 0;
760-
@include translate3d($item-right-edit-open-width / 2, 0, 0);
754+
@include translate3d($item-right-edit-open-width * 1.5, 0, 0);
761755
&.visible {
762756
display: block;
763-
z-index: $z-index-item-reorder;
764757
&.active {
765758
opacity: 1;
766759
@include translate3d(0, 0, 0);
767760
}
768761
}
769762
}
770-
.list-right-editing .item-right-edit {
771-
@include transition-delay($item-edit-transition-duration / 2);
772-
}
773763

774764

775765
// Item Reordering (Right side edit button)

0 commit comments

Comments
 (0)