mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix: animation for rtl collapse end side
This commit is contained in:
@@ -623,11 +623,11 @@ export class ItemSliding implements ComponentInterface {
|
||||
) {
|
||||
let optionWidthOffset = 0;
|
||||
|
||||
const finalTransform = isRTL
|
||||
? `translate3d(${containerWidthOffset + optionWidthOffset},0,0)`
|
||||
: `translate3d(${containerWidthOffset - optionWidthOffset}px,0,0)`;
|
||||
|
||||
options.forEach((option) => {
|
||||
const finalTransform = isRTL
|
||||
? `translate3d(${optionWidthOffset + option.clientWidth}px,0,0)`
|
||||
: `translate3d(${containerWidthOffset - optionWidthOffset}px,0,0)`;
|
||||
|
||||
const keyframes: Keyframe[] = [
|
||||
{ transform: option.style.transform },
|
||||
isReset
|
||||
|
||||
Reference in New Issue
Block a user