Skip to content

Commit

Permalink
feat: view img
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Jan 20, 2025
1 parent a36e6ad commit 9ed8c15
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
"react-lazy-load-image-component": "^1.6.3",
"react-loading-skeleton": "^3.5.0",
"react-markdown": "^9.0.3",
"react-medium-image-zoom": "^5.2.13",
"react-parallax-tilt": "^1.7.272",
"react-pdf": "^9.2.1",
"react-player": "^2.16.0",
Expand Down
6 changes: 5 additions & 1 deletion src/pages/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ import {
getDirection,
} from '@utils/aidFn'
import { fireConfetti } from '@utils/confetti'
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import styles from './index.module.less'

// const boxList = Array.apply(null, Array(10))
Expand Down Expand Up @@ -476,7 +478,9 @@ const Home = () => {
to={{ opacity: 1, transform: 'translate(0, 0)' }}
triggerOnce={true}
>
<img src="https://picsum.photos/360/200.jpg" alt="" />
<Zoom>
<img src="https://picsum.photos/360/200.jpg" alt="" />
</Zoom>
</AnimateOnScreen.DiyAnimation>
</section>
<section style={{ marginBottom: 40, display: 'flex' }}>
Expand Down

0 comments on commit 9ed8c15

Please sign in to comment.