transitions.js - http://pzuraq.github.io/liquid-tether/#/examples?a=animation-with-context엠 액체 속박 끈 내가 타다 남은 액체 속박 끈을 사용하고
I 사용한 코드는 '문맥 애니메이션'아래의 예제이다.
모달은 작동하지만 콘솔에서 transitions.js 파일 오류가 발생하는 좋은 전환은 없습니다. 정의되지 않았습니다 대상 :
export default function(){
this.transition(
target('modal-dialog'),
this.toValue(({ index: newIndex }, { index: oldIndex }) => newIndex > oldIndex),
this.use('tether', ['to-left', options]),
this.reverse('tether', ['to-right', options])
);
this.transition(
target('modal-dialog'),
this.toValue(({ index }) => index === 1),
this.use('tether', 'fade', 'fade')
);
this.transition(
target('modal-dialog'),
this.toValue(({ index }) => !index),
this.use('tether', 'fade', 'fade')
);
}
오류는 다음과 같습니다
내 전환에 아래의 코드를 참조하십시오.
어떻게 대상을 정의합니까?
미리 감사드립니다. :-)