|
@@ -1,20 +1,26 @@
|
|
|
-import React from 'react'
|
|
|
+import React, { useRef, useEffect } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import { useHistory } from 'react-router-dom'
|
|
|
function A5Mobile({ show, setShow }: { show: boolean; setShow: (show: boolean) => void }) {
|
|
|
const history = useHistory()
|
|
|
+ const ref = useRef<HTMLDivElement>(null)
|
|
|
+ useEffect(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ ref.current?.classList.add(styles.animate)
|
|
|
+ }, 500);
|
|
|
+ }, [])
|
|
|
return (
|
|
|
- <div className={styles.A5Mobile} style={{ display: show ? 'block' : 'none' }}>
|
|
|
+ <div ref={ref} className={styles.A5Mobile} style={{ display: show ? 'block' : 'none' }}>
|
|
|
<div className='title'>
|
|
|
<img src={require('./image/title.png')} alt='' />
|
|
|
</div>
|
|
|
- <div className="A4base-pic1">
|
|
|
+ <div className="A5-pic1">
|
|
|
<img src={require('./image/other.png')} alt='' />
|
|
|
</div>
|
|
|
- <div className="A4base-pic2">
|
|
|
+ <div className="A5-pic2">
|
|
|
<img src={require('./image/time.png')} alt='' />
|
|
|
</div>
|
|
|
- <div className="A4base-pic3">
|
|
|
+ <div className="A5-pic3">
|
|
|
<img src={require('./image/title_1.png')} alt='' />
|
|
|
</div>
|
|
|
<div
|