HomeView.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. <template>
  2. <div
  3. class="home"
  4. @mousedown="onMouseDown"
  5. @mousemove="onMouseMove"
  6. @mouseup="onMouseUp"
  7. @mouseleave="onMouseLeave"
  8. @wheel.passive="onWheel"
  9. @dragstart.prevent
  10. >
  11. <div
  12. ref="landscape-wrap"
  13. class="landscape-wrap"
  14. :style="{
  15. left: landscapePositionleft,
  16. }"
  17. >
  18. <img
  19. v-for="index in 3"
  20. :key="index"
  21. class="landscape"
  22. src="@/assets/landscape.png"
  23. alt=""
  24. @dragstart.prevent
  25. >
  26. </div>
  27. <div
  28. class="people-far-wrap"
  29. :style="{
  30. right: peopleFarPositionRight,
  31. }"
  32. >
  33. <img
  34. class="people-far"
  35. :class="peopleFarColorStatus"
  36. src="@/assets/people-far-serial-frame-400-600-60.png"
  37. alt=""
  38. @dragstart.prevent
  39. >
  40. <HotSpot
  41. v-if="[3].includes(tourState) || ([0].includes(tourState) && maskOpacity === 0)"
  42. class="hot-spot"
  43. @click="onClickPeopleFarHotSpot"
  44. />
  45. </div>
  46. <div
  47. class="people-near-wrap"
  48. :style="{
  49. left: peopleNearPositionLeft,
  50. }"
  51. >
  52. <img
  53. class="people-near"
  54. src="@/assets/people-near.png"
  55. alt=""
  56. @dragstart.prevent
  57. >
  58. <img
  59. v-show="[0, 1].includes(tourState)"
  60. ref="treasure"
  61. class="treasure"
  62. :style="{
  63. height: treasureInitialHeightPercent + '%',
  64. opacity: treasureOpacity,
  65. }"
  66. src="@/assets/treasure.png"
  67. alt=""
  68. @dragstart.prevent
  69. >
  70. </div>
  71. <img
  72. class="introduce"
  73. :style="{
  74. left: introducePositionLeft,
  75. }"
  76. src="@/assets/introduce.png"
  77. alt=""
  78. @dragstart.prevent
  79. >
  80. <div
  81. v-if="[0, 1, 2].includes(tourState) && maskOpacity !== 0"
  82. class="fade-mask"
  83. :style="{
  84. opacity: maskOpacity,
  85. }"
  86. >
  87. <img
  88. v-show="[2].includes(tourState)"
  89. src="@/assets/treasure-last-frame.jpg"
  90. alt=""
  91. >
  92. </div>
  93. <div
  94. v-show="[1].includes(tourState)"
  95. class="treasure-frames-wrap"
  96. >
  97. <img
  98. v-for="index of treasureFrameTotalNum"
  99. v-show="treasureFrameCurNum === index - 1 ||
  100. treasureFrameCurNum - 1 === index - 1
  101. "
  102. :key="index"
  103. class="treasure-frame"
  104. :src="require(`@/assets/treasure-frames/合成 1_${(index-1).toString().padStart(5, '0')}.jpg`)"
  105. alt=""
  106. @load="onTreasureFrameLoad(index - 1)"
  107. @error="onTreasureFrameError(index - 1)"
  108. >
  109. <div
  110. class="text1"
  111. :style="{opacity: text1Opacity}"
  112. >
  113. <span class="title">宋清瓷团花粉盒</span><br>
  114. <span>约公元前1220年<br>口径13.5cm 底径8cm 高6cm</span>
  115. </div>
  116. <div
  117. class="text2"
  118. :style="{opacity: text2Opacity}"
  119. >
  120. 此展品为宋代文物。子母口,浅腹,平底,盖面平;盒为子口,内有三个小碟;胎灰白,坚硬,施青色釉,口沿与底部无釉。现收藏于松阳县博物馆。
  121. </div>
  122. </div>
  123. </div>
  124. </template>
  125. <script>
  126. const initialPeopleNearPositionLeft = '25%'
  127. const initPeopleFarPositionRight = '15%'
  128. const landscapeSpeedRate = 0.02
  129. const peopleFarSpeedRate = 0.4
  130. const peopleNearSpeedRate = 0.6
  131. const introduceSpeedRate = 0.6
  132. const treasureFadeInProgressRightBorder = 3000
  133. const treasureDisplayProgressRightBorder = 6000
  134. const treasureFadeOutProgressRightBorder = 2000
  135. const translateLengthRightBorder = 9000
  136. const treasureFrameTotalNum = 125
  137. const treasureInitialHeightPercent = 9
  138. const treasureFinalHeightPercent = 116
  139. export default {
  140. name: 'HomeView',
  141. components: {
  142. },
  143. data() {
  144. return {
  145. // 鼠标拖拽相关
  146. isMouseDown: false,
  147. lastMoveEventTimeStamp: 0,
  148. moveSpeed: 0,
  149. // 动画帧相关
  150. lastAnimationTimeStamp: 0,
  151. animationFrameId: null,
  152. tourState: 0, // 0:文物淡入过渡阶段;1:文物三维展示阶段;2:文物渐出过渡阶段;3:镜头平移阶段
  153. // 镜头平移相关
  154. translateLength: 0,
  155. landscapePositionleft: '18.491%',
  156. peopleFarPositionRight: initPeopleFarPositionRight,
  157. peopleNearPositionLeft: initialPeopleNearPositionLeft,
  158. introducePositionLeft: '3.347%',
  159. // 文物淡入相关
  160. treasureFadeInProgress: 0,
  161. treasureFadeInProgressRightBorder,
  162. treasureFadeInInitialLeft: 0,
  163. treasureFadeInInitialTop: 0,
  164. treasureFadeInFinalLeft: 0,
  165. treasureFadeInFinalTop: 0,
  166. treasureInitialHeightPercent,
  167. // 文物展示相关
  168. treasureDisplayProgress: 0,
  169. treasureFrameTotalNum,
  170. treasureFrameCurNum: 0,
  171. treasureFrameStateList: new Array(treasureFrameTotalNum),
  172. // 文物淡出相关
  173. treasureFadeOutProgress: 0,
  174. treasureFadeOutProgressRightBorder,
  175. // 远处人物变色相关
  176. peopleFarColorStatus: 'no-color', // 'no-color', 'color'
  177. isPeopleFarColorChanging: false,
  178. }
  179. },
  180. computed: {
  181. treasureOpacity() {
  182. if (this.tourState === 0) {
  183. if (this.treasureFadeInProgress > treasureFadeInProgressRightBorder / 2) {
  184. return 1
  185. } else {
  186. return this.treasureFadeInProgress / (treasureFadeInProgressRightBorder / 2)
  187. }
  188. } else if (this.tourState === 2) {
  189. if (this.treasureFadeOutProgress < treasureFadeOutProgressRightBorder / 2) {
  190. return 1
  191. } else {
  192. return 1 - (this.treasureFadeOutProgress - treasureFadeOutProgressRightBorder / 2) / (treasureFadeOutProgressRightBorder / 2)
  193. }
  194. } else {
  195. return 0
  196. }
  197. },
  198. maskOpacity() {
  199. if (this.tourState === 0) {
  200. if (this.treasureFadeInProgress > treasureFadeInProgressRightBorder / 2) {
  201. return 1
  202. } else {
  203. return this.treasureFadeInProgress / (treasureFadeInProgressRightBorder / 2)
  204. }
  205. } else if (this.tourState === 2) {
  206. if (this.treasureFadeOutProgress < treasureFadeOutProgressRightBorder / 2) {
  207. return 1
  208. } else {
  209. return 1 - (this.treasureFadeOutProgress - treasureFadeOutProgressRightBorder / 2) / (treasureFadeOutProgressRightBorder / 2)
  210. }
  211. } else {
  212. return 1
  213. }
  214. },
  215. text1Opacity() {
  216. if (this.tourState === 1) {
  217. if (this.treasureDisplayProgress < treasureDisplayProgressRightBorder * 0.1) {
  218. return this.treasureDisplayProgress / (treasureDisplayProgressRightBorder * 0.1)
  219. } else if (this.treasureDisplayProgress >= treasureDisplayProgressRightBorder * 0.1 && this.treasureDisplayProgress < treasureDisplayProgressRightBorder * 0.4) {
  220. return 1
  221. } else if (this.treasureDisplayProgress >= treasureDisplayProgressRightBorder * 0.4 && this.treasureDisplayProgress < treasureDisplayProgressRightBorder * 0.5) {
  222. return 1 - (this.treasureDisplayProgress - treasureDisplayProgressRightBorder * 0.4) / (treasureDisplayProgressRightBorder * (0.5 - 0.4))
  223. } else {
  224. return 0
  225. }
  226. } else {
  227. return 0
  228. }
  229. },
  230. text2Opacity() {
  231. if (this.tourState === 1) {
  232. if (this.treasureDisplayProgress < treasureDisplayProgressRightBorder * 0.5) {
  233. return 0
  234. } else if (this.treasureDisplayProgress >= treasureDisplayProgressRightBorder * 0.5 && this.treasureDisplayProgress < treasureDisplayProgressRightBorder * 0.6) {
  235. return (this.treasureDisplayProgress - treasureDisplayProgressRightBorder * 0.5) / (treasureDisplayProgressRightBorder * (0.6 - 0.5))
  236. } else if (this.treasureDisplayProgress >= treasureDisplayProgressRightBorder * 0.6 && this.treasureDisplayProgress < treasureDisplayProgressRightBorder * 0.9) {
  237. return 1
  238. } else {
  239. return 1 - (this.treasureDisplayProgress - treasureDisplayProgressRightBorder * 0.9) / (treasureDisplayProgressRightBorder * (1 - 0.9))
  240. }
  241. } else {
  242. return 0
  243. }
  244. },
  245. },
  246. watch: {
  247. tourState(vNew, vOld) {
  248. if (vOld === 0 && vNew === 1) {
  249. this.treasureDisplayProgress += 0.001
  250. } else if (vOld === 1 && vNew === 2) {
  251. this.treasureFadeOutProgress += 0.001
  252. } else if (vOld === 2 && vNew === 3) {
  253. this.translateLength -= 0.001
  254. } else if (vOld === 3 && vNew === 2) {
  255. this.treasureFadeOutProgress -= 0.001
  256. } else if (vOld === 2 && vNew === 1) {
  257. this.treasureDisplayProgress -= 0.001
  258. } else if (vOld === 1 && vNew === 0) {
  259. this.treasureFadeInProgress -= 0.001
  260. }
  261. },
  262. treasureFadeInProgress: {
  263. handler(vNew, vOld) {
  264. if (vOld < this.treasureFadeInProgressRightBorder && vNew >= this.treasureFadeInProgressRightBorder && this.tourState === 0) {
  265. this.tourState = 1
  266. }
  267. if (this.treasureFadeInProgress > treasureFadeInProgressRightBorder / 2) {
  268. this.$refs.treasure.style.left = this.treasureFadeInInitialLeft + (this.treasureFadeInProgress - treasureFadeInProgressRightBorder / 2) / (treasureFadeInProgressRightBorder / 2) * (this.treasureFadeInFinalLeft - this.treasureFadeInInitialLeft) + 'px'
  269. this.$refs.treasure.style.top = this.treasureFadeInInitialTop + (this.treasureFadeInProgress - treasureFadeInProgressRightBorder / 2) / (treasureFadeInProgressRightBorder / 2) * (this.treasureFadeInFinalTop - this.treasureFadeInInitialTop) + 'px'
  270. this.$refs.treasure.style.transform = `translate(-50%, -50%) scale(${1 + (this.treasureFadeInProgress - treasureFadeInProgressRightBorder / 2) / (treasureFadeInProgressRightBorder / 2) * (treasureFinalHeightPercent / this.treasureInitialHeightPercent - 1)})`
  271. } else {
  272. this.$refs.treasure.style.left = this.treasureFadeInInitialLeft + 'px'
  273. this.$refs.treasure.style.top = this.treasureFadeInInitialTop + 'px'
  274. this.$refs.treasure.style.transform = `translate(-50%, -50%) scale(1)`
  275. }
  276. }
  277. },
  278. treasureDisplayProgress: {
  279. handler(vNew, vOld) {
  280. // 更新toureState
  281. if (vOld > 0 && vNew <= 0 && this.tourState === 1) {
  282. this.tourState = 0
  283. } else if (vOld < treasureDisplayProgressRightBorder && vNew >= treasureDisplayProgressRightBorder && this.tourState === 1) {
  284. this.tourState = 2
  285. }
  286. let idealCurNum = Math.round(this.treasureDisplayProgress / treasureDisplayProgressRightBorder * treasureFrameTotalNum)
  287. while (this.treasureFrameStateList[idealCurNum] === false) {
  288. idealCurNum--
  289. }
  290. this.treasureFrameCurNum = idealCurNum
  291. }
  292. },
  293. treasureFadeOutProgress: {
  294. handler(vNew, vOld) {
  295. if (vOld > 0 && vNew <= 0 && this.tourState === 2) {
  296. this.tourState = 1
  297. } else if (vOld < this.treasureFadeOutProgressRightBorder && vNew >= this.treasureFadeOutProgressRightBorder && this.tourState === 2) {
  298. this.tourState = 3
  299. }
  300. }
  301. },
  302. translateLength: {
  303. handler(vNew, vOld) {
  304. // const rightBorder = window.innerWidth * 2
  305. if (vOld < 0 && vNew >= 0 && this.tourState === 3) {
  306. this.tourState = 2
  307. }
  308. // if (vOld > -rightBorder && vNew <= -rightBorder && this.tourState === 3) {
  309. // this.tourState = 1
  310. // }
  311. this.landscapePositionleft = `calc(18.491% + ${vNew * landscapeSpeedRate}px)`
  312. this.peopleFarPositionRight = `calc(${initPeopleFarPositionRight} - ${vNew * peopleFarSpeedRate}px)`
  313. this.peopleNearPositionLeft = `calc(${initialPeopleNearPositionLeft} + ${vNew * peopleNearSpeedRate}px)`
  314. this.introducePositionLeft = `calc(3.347% + ${vNew * introduceSpeedRate}px)`
  315. }
  316. },
  317. },
  318. mounted() {
  319. this.animationFrameId = requestAnimationFrame(this.inertanceEffect)
  320. setTimeout(() => {
  321. this.treasureFadeInInitialLeft = this.$refs.treasure.offsetLeft
  322. this.treasureFadeInInitialTop = this.$refs.treasure.offsetTop
  323. this.treasureFadeInFinalLeft = window.innerWidth / 2 - this.$refs.treasure.offsetParent.offsetLeft
  324. this.treasureFadeInFinalTop = window.innerHeight / 2 - this.$refs.treasure.offsetParent.offsetTop
  325. }, 100)
  326. },
  327. unmounted() {
  328. cancelAnimationFrame(this.animationFrameId)
  329. },
  330. methods: {
  331. onMouseDown(e) {
  332. this.isMouseDown = true
  333. this.moveSpeed = 0
  334. this.lastMoveEventTimeStamp = 0
  335. this.lastAnimationTimeStamp = Date.now()
  336. },
  337. onMouseUp(e) {
  338. this.isMouseDown = false
  339. },
  340. onMouseLeave() {
  341. this.isMouseDown = false
  342. },
  343. onMouseMove(e) {
  344. if (this.isMouseDown) {
  345. if (this.lastMoveEventTimeStamp) {
  346. // 更新speed
  347. const currentMoveSpeed = e.movementX / (e.timeStamp - this.lastMoveEventTimeStamp)
  348. this.moveSpeed = this.moveSpeed * 0.9 + currentMoveSpeed * 0.1
  349. }
  350. this.lastMoveEventTimeStamp = e.timeStamp
  351. }
  352. },
  353. onWheel(e) {
  354. if (this.tourState === 0) {
  355. this.treasureFadeInProgress += e.deltaY
  356. if (this.treasureFadeInProgress < 0) {
  357. this.treasureFadeInProgress = 0
  358. this.moveSpeed = 0
  359. } else if (this.treasureFadeInProgress > this.treasureFadeInProgressRightBorder) {
  360. this.treasureFadeInProgress = this.treasureFadeInProgressRightBorder
  361. }
  362. } else if (this.tourState === 1) {
  363. this.treasureDisplayProgress += e.deltaY
  364. if (this.treasureDisplayProgress < 0) {
  365. this.treasureDisplayProgress = 0
  366. } else if (this.treasureDisplayProgress > treasureDisplayProgressRightBorder) {
  367. this.treasureDisplayProgress = treasureDisplayProgressRightBorder
  368. }
  369. } else if (this.tourState === 2) {
  370. this.treasureFadeOutProgress += e.deltaY
  371. if (this.treasureFadeOutProgress < 0) {
  372. this.treasureFadeOutProgress = 0
  373. } else if (this.treasureFadeOutProgress > this.treasureFadeOutProgressRightBorder) {
  374. this.treasureFadeOutProgress = this.treasureFadeOutProgressRightBorder
  375. }
  376. } else if (this.tourState === 3) {
  377. this.translateLength -= e.deltaY
  378. if (this.translateLength > 0) {
  379. this.translateLength = 0
  380. } else if (this.translateLength < -translateLengthRightBorder) {
  381. this.translateLength = -translateLengthRightBorder
  382. this.moveSpeed = 0
  383. }
  384. }
  385. },
  386. inertanceEffect() {
  387. const timeStamp = Date.now()
  388. const timeElapsed = timeStamp - this.lastAnimationTimeStamp
  389. // 速度减慢
  390. if (this.moveSpeed > 0) {
  391. this.moveSpeed -= 0.003 * timeElapsed
  392. if (this.moveSpeed < 0) {
  393. this.moveSpeed = 0
  394. }
  395. } else if (this.moveSpeed < 0) {
  396. this.moveSpeed += 0.003 * timeElapsed
  397. if (this.moveSpeed > 0) {
  398. this.moveSpeed = 0
  399. }
  400. }
  401. // 根据速度更新“距离”
  402. if (this.tourState === 0) {
  403. this.treasureFadeInProgress -= this.moveSpeed * timeElapsed
  404. if (this.treasureFadeInProgress < 0) {
  405. this.treasureFadeInProgress = 0
  406. this.moveSpeed = 0
  407. } else if (this.treasureFadeInProgress > this.treasureFadeInProgressRightBorder) {
  408. this.treasureFadeInProgress = this.treasureFadeInProgressRightBorder
  409. }
  410. } else if (this.tourState === 1) {
  411. this.treasureDisplayProgress -= this.moveSpeed * timeElapsed
  412. if (this.treasureDisplayProgress < 0) {
  413. this.treasureDisplayProgress = 0
  414. } else if (this.treasureDisplayProgress > treasureDisplayProgressRightBorder) {
  415. this.treasureDisplayProgress = treasureDisplayProgressRightBorder
  416. }
  417. } else if (this.tourState === 2) {
  418. this.treasureFadeOutProgress -= this.moveSpeed * timeElapsed
  419. if (this.treasureFadeOutProgress < 0) {
  420. this.treasureFadeOutProgress = 0
  421. } else if (this.treasureFadeOutProgress > this.treasureFadeOutProgressRightBorder) {
  422. this.treasureFadeOutProgress = this.treasureFadeOutProgressRightBorder
  423. }
  424. } else if (this.tourState === 3) {
  425. this.translateLength += this.moveSpeed * timeElapsed
  426. if (this.translateLength > 0) {
  427. this.translateLength = 0
  428. } else if (this.translateLength < -translateLengthRightBorder) {
  429. this.translateLength = -translateLengthRightBorder
  430. this.moveSpeed = 0
  431. }
  432. }
  433. this.lastAnimationTimeStamp = timeStamp
  434. this.animationFrameId = requestAnimationFrame(this.inertanceEffect)
  435. },
  436. onClickPeopleFarHotSpot() {
  437. if (this.isPeopleFarColorChanging) {
  438. return
  439. } else {
  440. if (this.peopleFarColorStatus === 'no-color') {
  441. this.peopleFarColorStatus = 'color'
  442. } else {
  443. this.peopleFarColorStatus = 'no-color'
  444. }
  445. this.isPeopleFarColorChanging = true
  446. setTimeout(() => {
  447. this.isPeopleFarColorChanging = false
  448. }, 2500)
  449. }
  450. },
  451. onTreasureFrameLoad(idx) {
  452. this.treasureFrameStateList[idx] = true
  453. },
  454. onTreasureFrameError(idx) {
  455. this.treasureFrameStateList[idx] = false
  456. },
  457. }
  458. }
  459. </script>
  460. <style lang="less" scoped>
  461. .home {
  462. width: 100%;
  463. height: 100%;
  464. background-image: url(@/assets/background.jpg);
  465. background-repeat: repeat;
  466. background-size: contain;
  467. position: relative;
  468. overflow: hidden;
  469. .landscape-wrap {
  470. position: absolute;
  471. height: 30%;
  472. top: 0;
  473. display: flex;
  474. > .landscape {
  475. height: 100%;
  476. }
  477. }
  478. > .people-far-wrap {
  479. position: absolute;
  480. top: 15%;
  481. height: 750px;
  482. width: 500px;
  483. overflow: hidden;
  484. > .people-far {
  485. position: absolute;
  486. height: 100%;
  487. transition-property: left;
  488. transition-duration: 2.5s;
  489. transition-timing-function: steps(59, jump-end);
  490. &.no-color {
  491. left: 0;
  492. }
  493. &.color {
  494. left: calc(-100% * 59)
  495. }
  496. }
  497. > .hot-spot {
  498. position: absolute;
  499. left: 52%;
  500. transform: translateX(-50%);
  501. top: 17%;
  502. }
  503. }
  504. > .people-near-wrap {
  505. position: absolute;
  506. bottom: -13%;
  507. height: 100vh;
  508. > .people-near {
  509. height: 100%;
  510. }
  511. > .treasure {
  512. position: absolute;
  513. left: 49%;
  514. top: 32.5%;
  515. z-index: 2;
  516. transform: translate(-50%, -50%);
  517. }
  518. }
  519. .introduce {
  520. position: absolute;
  521. top: 5%;
  522. width: 13.727%;
  523. }
  524. .fade-mask {
  525. position: absolute;
  526. top: 0;
  527. bottom: 0;
  528. left: 0;
  529. right: 0;
  530. background-color: #bfbfa7;
  531. z-index: 1;
  532. img {
  533. width: 100%;
  534. height: 100%;
  535. object-fit: cover;
  536. }
  537. }
  538. .treasure-frames-wrap {
  539. position: absolute;
  540. top: 0;
  541. left: 0;
  542. width: 100%;
  543. height: 100%;
  544. z-index: 3;
  545. > img {
  546. width: 100%;
  547. height: 100%;
  548. object-fit: cover;
  549. }
  550. > .text1 {
  551. color: #fff;
  552. position: absolute;
  553. top: 5%;
  554. left: 3%;
  555. .title {
  556. font-size: 24px;
  557. font-weight: bold;
  558. line-height: 2;
  559. }
  560. span {
  561. font-size: 18px;
  562. line-height: 1.5;
  563. }
  564. }
  565. > .text2 {
  566. color: #fff;
  567. position: absolute;
  568. bottom: 5%;
  569. right: 3%;
  570. width: 30%;
  571. font-size: 18px;
  572. line-height: 1.5;
  573. }
  574. }
  575. @media screen and (max-height: 810px) {
  576. .people-far-wrap {
  577. height: 600px;
  578. width: 400px;
  579. }
  580. }
  581. @media screen and (max-height: 720px) {
  582. .people-far-wrap {
  583. height: 540px;
  584. width: 360px;
  585. }
  586. }
  587. @media screen and (max-height: 630px) {
  588. .people-far-wrap {
  589. height: 480px;
  590. width: 320px;
  591. }
  592. }
  593. @media screen and (max-height: 540px) {
  594. .people-far-wrap {
  595. height: 420px;
  596. width: 280px;
  597. }
  598. }
  599. }
  600. </style>