fix: editor-mode-switch animation should only run once (#3543)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -50,7 +50,7 @@ export const PageSwitchItem = (
|
|||||||
<HoverAnimateController {...props}>
|
<HoverAnimateController {...props}>
|
||||||
<InternalLottie
|
<InternalLottie
|
||||||
options={{
|
options={{
|
||||||
loop: true,
|
loop: false,
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
animationData: require('./animation-data/page-hover.json'),
|
animationData: require('./animation-data/page-hover.json'),
|
||||||
rendererSettings: {
|
rendererSettings: {
|
||||||
@@ -69,7 +69,7 @@ export const EdgelessSwitchItem = (
|
|||||||
<HoverAnimateController {...props}>
|
<HoverAnimateController {...props}>
|
||||||
<InternalLottie
|
<InternalLottie
|
||||||
options={{
|
options={{
|
||||||
loop: true,
|
loop: false,
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
animationData: require('./animation-data/edgeless-hover.json'),
|
animationData: require('./animation-data/edgeless-hover.json'),
|
||||||
rendererSettings: {
|
rendererSettings: {
|
||||||
|
|||||||
Reference in New Issue
Block a user