Profile: Fix redundant scale animation

This commit is contained in:
Alexander Zinchuk 2021-12-24 01:35:57 +01:00
parent 08b062e40d
commit 952d44e7d3

View File

@ -92,6 +92,7 @@ const Transition: FC<TransitionProps> = ({
const childElements = container.children;
if (childElements.length === 1 && !activeKeyChanged) {
if (name.startsWith('slide-optimized')) {
(childElements[0] as HTMLElement).style.transition = 'none';
(childElements[0] as HTMLElement).style.transform = 'translate3d(0, 0, 0)';
}