Commit 4bed47f5 authored by hewenhao's avatar hewenhao

feat: 引导页

parent a7aa3e4e
......@@ -184,5 +184,11 @@
"w": 300,
"h": 300,
"ossName": "/pk-math/3YWpuPxzmfnebWaxqu36TTT4biLx/300x300"
},
"cat-6.png": {
"u": "https://cdn.jkwljy.com/pk-math/2GNZg5jHSKPtJRMcB66gGpUoGXMH/300x300",
"w": 300,
"h": 300,
"ossName": "/pk-math/2GNZg5jHSKPtJRMcB66gGpUoGXMH/300x300"
}
}
......@@ -155,5 +155,10 @@ export default {
"u": "https://cdn.jkwljy.com/pk-math/3YWpuPxzmfnebWaxqu36TTT4biLx/300x300",
"w": 300,
"h": 300
},
"cat-6.png": {
"u": "https://cdn.jkwljy.com/pk-math/2GNZg5jHSKPtJRMcB66gGpUoGXMH/300x300",
"w": 300,
"h": 300
}
} as const
......@@ -19,6 +19,26 @@
}
}
.fade_in {
animation-name: fadeIn;
animation-duration: 0.5s;
animation-timing-function: ease-out;
animation-fill-mode: backwards;
animation-iteration-count: 1;
}
@keyframes fadeIn {
0% {
opacity: 0;
transform: scale(0.2, 0.2);
}
100% {
opacity: 1;
transform: scale(1, 1);
}
}
.dialog {
position: absolute;
top: -24px;
......
......@@ -72,10 +72,8 @@ const Scene1 = ({ onNext }: Scene1Props) => {
<ScrollView className={cs.viewport_body_inner} scrollY>
<View className={cs.sprite}>
<View className={cs.cat}>
<Image src={assets['cat.png'].u} className={classNames(styles.cat, current === 0 && styles.is_current)} />
<Image src={assets['cat-6.png'].u} className={classNames(styles.cat, styles.fade_in, current === 0 && styles.is_current)} />
<Image src={assets['cat-3.png'].u} className={classNames(styles.cat, current === 1 && styles.is_current)} />
<Image src={assets['cat-2.png'].u} className={classNames(styles.cat, current === 2 && styles.is_current)} />
<Image src={assets['cat-3.png'].u} className={classNames(styles.cat, current === 3 && styles.is_current)} />
</View>
<View className={styles.dialog}>
{current === 0 && (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment