Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
and(eq(shouldSpring, 1), neq(value, 1)),
set(
value,
timing({
from: value,
to: 1,
easing,
duration
})
)
),
cond(
and(eq(shouldSpring, 0), neq(value, 0)),
set(
value,
timing({
from: value,
to: 0,
easing,
duration
})
)
)
]),
[]
);
return (
{children}
);
};
1M
1Y
);
}
}
clock: this.clock,
duration: 350,
easing: Easing.bezier(0.25, 0.46, 0.45, 0.94),
from: this.value,
to: 0,
})
),
])
),
cond(
and(lessThan(this.value, 1), eq(this.shouldSpring, 0)),
block([
stopClock(this.clock),
set(
this.value,
timing({
clock: this.clockReversed,
duration: 350,
easing: Easing.bezier(0.25, 0.46, 0.45, 0.94),
from: this.value,
to: 1,
})
),
])
),
cond(
and(lessThan(this.opacity, 1), eq(this.shouldSpring, 1)),
block([
set(
this.opacity,
timing({
clock: this.opacityClock,