index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. <template>
  2. <div class="container">
  3. <template v-if="notWebgl">
  4. <div class="css-animation">
  5. <div class="blue-bg">
  6. <span class="phone"></span>
  7. <span class="goods"></span>
  8. <span class="nut"></span>
  9. <span class="people"></span>
  10. <span class="flower">
  11. <span class="leaf_2"></span>
  12. <span class="leaf_1"></span>
  13. <span class="leaf_4"></span>
  14. <span class="leaf_3"></span>
  15. <span class="flowerpot"></span>
  16. </span>
  17. <span class="fengche"></span>
  18. </div>
  19. </div>
  20. </template>
  21. <template v-else>
  22. <canvas id="output"></canvas>
  23. </template>
  24. <div class="wrapper">
  25. <div class="header">
  26. <span class="logo">
  27. NUTUI
  28. <s></s>
  29. </span>
  30. <search/>
  31. <div class="menu">
  32. <ul>
  33. <li>
  34. <a href="#/doc">指南</a>
  35. </li>
  36. <li>
  37. <a href="#/ActionSheet">组件</a>
  38. </li>
  39. <li>
  40. <a href="/demo.html#/index" class="qrcode top-qr" target="_blank">
  41. 示例
  42. <a>
  43. <span>请使用手机扫码体验</span>
  44. <img
  45. src="http://img13.360buyimg.com/uba/jfs/t1/14144/37/3433/5890/5c26d976E7cd98b80/94583409233081cc.png"
  46. alt
  47. >
  48. </a>
  49. </a>
  50. </li>
  51. </ul>
  52. <select @change="openwindow">
  53. <option value="2">2.X</option>
  54. <option value="1">1.X</option>
  55. </select>
  56. <a
  57. href="https://github.com/jdf2e/nutui"
  58. title="Github"
  59. target="_blank"
  60. class="github-icon"
  61. >github</a>
  62. </div>
  63. </div>
  64. <div class="content">
  65. <div class="mouseDiv" id="mouseDiv"></div>
  66. <p class="title">NutUI</p>
  67. <p class="sub-title">一套京东风格的轻量级移动端Vue组件库</p>
  68. <a href="#/doc" class="blue-btn">开始使用</a>
  69. <a href="javascript:;" class="qrcode btn">
  70. 扫码体验
  71. <a>
  72. <span>请使用手机扫码体验</span>
  73. <img
  74. src="http://img13.360buyimg.com/uba/jfs/t1/14144/37/3433/5890/5c26d976E7cd98b80/94583409233081cc.png"
  75. alt
  76. >
  77. </a>
  78. </a>
  79. </div>
  80. </div>
  81. </div>
  82. </template>
  83. <script>
  84. // import * as THREE from "three";
  85. // import TWEEN from "@tweenjs/tween.js";
  86. // import Detector from "./asset/js/Detector.js";
  87. import search from "./search.vue";
  88. export default {
  89. name: "frontCover",
  90. data() {
  91. return {
  92. timer: null,
  93. notWebgl: true,
  94. isSmall: false
  95. };
  96. },
  97. components: {
  98. search
  99. },
  100. methods: {
  101. openwindow(val) {
  102. if (val.target.value == 1) {
  103. window.location.href = " http://nutui.jd.com/1x/";
  104. }
  105. }
  106. // threeAnimation() {
  107. // this.timer = setTimeout(() => {
  108. // //获取视窗宽高
  109. // var mouseX = 0,
  110. // mouseY = 0;
  111. // var SCREEN_HEIGHT = window.innerHeight;
  112. // var SCREEN_WIDTH = window.innerWidth;
  113. // var tween;
  114. // var planeObj = {
  115. // x: 450,
  116. // y: 80
  117. // };
  118. // //渲染器(render)
  119. // var renderer = new THREE.WebGLRenderer({
  120. // canvas: document.getElementById("output")
  121. // });
  122. // //设置背景颜色
  123. // renderer.setClearColor(0xffffff, 1.0);
  124. // renderer.setPixelRatio(window.devicePixelRatio);
  125. // renderer.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);
  126. // //场景(Scene)
  127. // var scene = new THREE.Scene();
  128. // //透视投影相机
  129. // var camera = new THREE.PerspectiveCamera(
  130. // 45,
  131. // SCREEN_WIDTH / SCREEN_HEIGHT,
  132. // 1,
  133. // 10000
  134. // );
  135. // camera.position.set(0, 0, 1300);
  136. // camera.lookAt(scene.position);
  137. // scene.add(camera);
  138. // //光源
  139. // var ambientLight = new THREE.AmbientLight("#468be8");
  140. // scene.add(ambientLight);
  141. // ambientLight.color.setHex(0xffffff);
  142. // //背景蓝色
  143. // var texture = new THREE.TextureLoader().load(
  144. // "//img12.360buyimg.com/uba/jfs/t1/22824/40/3136/6504/5c24a3f4E76fdafde/802d02d1ec5d3d55.png"
  145. // );
  146. // var material = new THREE.MeshBasicMaterial({
  147. // map: texture,
  148. // transparent: true
  149. // });
  150. // var geometry = new THREE.PlaneBufferGeometry(1174, 923);
  151. // //货物箱
  152. // var texture1 = new THREE.TextureLoader().load(
  153. // "//img14.360buyimg.com/uba/jfs/t1/21115/40/3224/5652/5c24a411E03ef9eb6/83781b97e59da905.png"
  154. // );
  155. // var material1 = new THREE.MeshBasicMaterial({
  156. // map: texture1,
  157. // transparent: true
  158. // });
  159. // var geometry1 = new THREE.PlaneBufferGeometry(146, 206);
  160. // //人物
  161. // var texture2 = new THREE.TextureLoader().load(
  162. // "//img12.360buyimg.com/uba/jfs/t1/9330/16/10894/8662/5c24a42aE708692b3/14455d20eca1ccee.png"
  163. // );
  164. // var material2 = new THREE.MeshBasicMaterial({
  165. // map: texture2,
  166. // transparent: true
  167. // });
  168. // var geometry2 = new THREE.PlaneBufferGeometry(230, 417);
  169. // //phone
  170. // var texture3 = new THREE.TextureLoader().load(
  171. // "//img10.360buyimg.com/uba/jfs/t1/19171/19/3175/23282/5c24a440Ee2a94261/45321aeaf173f237.png"
  172. // );
  173. // var material3 = new THREE.MeshBasicMaterial({
  174. // map: texture3,
  175. // transparent: true
  176. // });
  177. // var geometry3 = new THREE.PlaneBufferGeometry(284, 524);
  178. // //flower
  179. // var texture4 = new THREE.TextureLoader().load(
  180. // "//img13.360buyimg.com/uba/jfs/t1/20972/11/3212/7155/5c24a45aE356f126d/2649726673daddc8.png"
  181. // );
  182. // var material4 = new THREE.MeshBasicMaterial({
  183. // map: texture4,
  184. // transparent: true
  185. // });
  186. // var geometry4 = new THREE.PlaneBufferGeometry(257, 193);
  187. // //nut
  188. // var texture5 = new THREE.TextureLoader().load(
  189. // "//img14.360buyimg.com/uba/jfs/t1/21247/15/3196/859/5c24a472E1e9853ab/6bec8c6940288bc3.png"
  190. // );
  191. // var material5 = new THREE.MeshPhongMaterial({
  192. // map: texture5,
  193. // transparent: true,
  194. // opacity: 1
  195. // });
  196. // var geometry5 = new THREE.PlaneBufferGeometry(57, 57);
  197. // //fly
  198. // var texture6 = new THREE.TextureLoader().load(
  199. // "//img14.360buyimg.com/uba/jfs/t1/7300/6/10801/16348/5c24a487E98a8139b/27b70ff5b4ddaf1f.png"
  200. // );
  201. // var material6 = new THREE.MeshBasicMaterial({
  202. // map: texture6,
  203. // transparent: true,
  204. // opacity: 0
  205. // });
  206. // var geometry6 = new THREE.PlaneBufferGeometry(851, 597);
  207. // //flyContents
  208. // var fly_texture_1_1 = new THREE.TextureLoader().load(
  209. // "//img14.360buyimg.com/uba/jfs/t1/24669/35/3260/1611/5c24a4a9E4e0941ab/65a238650812a7a9.png"
  210. // );
  211. // var fly_materila_1_1 = new THREE.MeshBasicMaterial({
  212. // map: fly_texture_1_1,
  213. // transparent: true,
  214. // opacity: 0
  215. // });
  216. // fly_materila_1_1.side = THREE.DoubleSide;
  217. // var fly_geometry_1_1 = new THREE.PlaneBufferGeometry(77, 77);
  218. // var fly_texture_1_2 = new THREE.TextureLoader().load(
  219. // "//img10.360buyimg.com/uba/jfs/t1/16477/11/3111/645/5c24a4beE3668b9c1/f7f0b074baab071c.png"
  220. // );
  221. // var fly_materila_1_2 = new THREE.MeshBasicMaterial({
  222. // map: fly_texture_1_2,
  223. // transparent: true,
  224. // opacity: 0
  225. // });
  226. // fly_materila_1_2.side = THREE.DoubleSide;
  227. // var fly_geometry_1_2 = new THREE.PlaneBufferGeometry(54, 45);
  228. // var fly_texture_2_1 = new THREE.TextureLoader().load(
  229. // "//img12.360buyimg.com/uba/jfs/t1/8267/36/10934/1385/5c24a4d2E036f7ef1/d88f41ccd8d8f409.png"
  230. // );
  231. // var fly_materila_2_1 = new THREE.MeshBasicMaterial({
  232. // map: fly_texture_2_1,
  233. // transparent: true,
  234. // opacity: 0
  235. // });
  236. // fly_materila_2_1.side = THREE.DoubleSide;
  237. // var fly_geometry_2_1 = new THREE.PlaneBufferGeometry(103, 74);
  238. // var fly_texture_2_2 = new THREE.TextureLoader().load(
  239. // "//img20.360buyimg.com/uba/jfs/t1/9695/33/10662/1607/5c24a4e4Ee2f9bab1/18c829d3e46efc4e.png"
  240. // );
  241. // var fly_materila_2_2 = new THREE.MeshBasicMaterial({
  242. // map: fly_texture_2_2,
  243. // transparent: true,
  244. // opacity: 0
  245. // });
  246. // fly_materila_2_2.side = THREE.DoubleSide;
  247. // var fly_geometry_2_2 = new THREE.PlaneBufferGeometry(69, 79);
  248. // var fly_texture_3_1 = new THREE.TextureLoader().load(
  249. // "//img12.360buyimg.com/uba/jfs/t1/27128/26/3128/1206/5c24a4faEb2c39e88/825abcfc5fc19761.png"
  250. // );
  251. // var fly_materila_3_1 = new THREE.MeshBasicMaterial({
  252. // map: fly_texture_3_1,
  253. // transparent: true,
  254. // opacity: 0
  255. // });
  256. // fly_materila_3_1.side = THREE.DoubleSide;
  257. // var fly_geometry_3_1 = new THREE.PlaneBufferGeometry(52, 53);
  258. // var fly_texture_3_2 = new THREE.TextureLoader().load(
  259. // "//img12.360buyimg.com/uba/jfs/t1/29872/1/3250/1154/5c24a50eE15e06d48/2412d3d556bf7463.png"
  260. // );
  261. // var fly_materila_3_2 = new THREE.MeshBasicMaterial({
  262. // map: fly_texture_3_2,
  263. // transparent: true,
  264. // opacity: 0
  265. // });
  266. // fly_materila_3_2.side = THREE.DoubleSide;
  267. // var fly_geometry_3_2 = new THREE.PlaneBufferGeometry(73, 73);
  268. // var plane = new THREE.Mesh(geometry, material);
  269. // plane.position.x = 450;
  270. // plane.position.y = 80;
  271. // scene.add(plane);
  272. // var plane1 = new THREE.Mesh(geometry1, material1);
  273. // plane1.position.x = 220;
  274. // plane1.position.y = -170;
  275. // scene.add(plane1);
  276. // var plane3 = new THREE.Mesh(geometry3, material3);
  277. // plane3.position.x = 570;
  278. // plane3.position.y = -12;
  279. // scene.add(plane3);
  280. // var plane5 = new THREE.Mesh(geometry5, material5);
  281. // plane5.position.x = 505;
  282. // plane5.position.y = 147;
  283. // scene.add(plane5);
  284. // var plane2 = new THREE.Mesh(geometry2, material2);
  285. // plane2.position.x = 420;
  286. // plane2.position.y = -65;
  287. // scene.add(plane2);
  288. // var plane4 = new THREE.Mesh(geometry4, material4);
  289. // plane4.position.x = 770;
  290. // plane4.position.y = -175;
  291. // scene.add(plane4);
  292. // var plane6 = new THREE.Mesh(geometry6, material6);
  293. // plane6.position.x = 498;
  294. // plane6.position.y = 23;
  295. // scene.add(plane6);
  296. // var planeFly_1_1 = new THREE.Mesh(fly_geometry_1_1, fly_materila_1_1);
  297. // planeFly_1_1.position.x = 305;
  298. // planeFly_1_1.position.y = 220;
  299. // scene.add(planeFly_1_1);
  300. // var planeFly_1_2 = new THREE.Mesh(fly_geometry_1_2, fly_materila_1_2);
  301. // planeFly_1_2.position.x = 385;
  302. // planeFly_1_2.position.y = 225;
  303. // scene.add(planeFly_1_2);
  304. // var planeFly_2_1 = new THREE.Mesh(fly_geometry_2_1, fly_materila_2_1);
  305. // planeFly_2_1.position.x = 770;
  306. // planeFly_2_1.position.y = 20;
  307. // scene.add(planeFly_2_1);
  308. // var planeFly_2_2 = new THREE.Mesh(fly_geometry_2_2, fly_materila_2_2);
  309. // planeFly_2_2.position.x = 820;
  310. // planeFly_2_2.position.y = 90;
  311. // scene.add(planeFly_2_2);
  312. // var planeFly_3_1 = new THREE.Mesh(fly_geometry_3_1, fly_materila_3_1);
  313. // planeFly_3_1.position.x = 500;
  314. // planeFly_3_1.position.y = -130;
  315. // scene.add(planeFly_3_1);
  316. // var planeFly_3_2 = new THREE.Mesh(fly_geometry_3_2, fly_materila_3_2);
  317. // planeFly_3_2.position.x = 350;
  318. // planeFly_3_2.position.y = -200;
  319. // scene.add(planeFly_3_2);
  320. // var flyTweenParams = {
  321. // x: 565,
  322. // y: 147,
  323. // op: 0,
  324. // r: 70,
  325. // g: 139,
  326. // b: 232
  327. // };
  328. // var flyTween = new TWEEN.Tween(flyTweenParams)
  329. // .easing(TWEEN.Easing.Quadratic.Out)
  330. // .to({ x: 505, y: 147, op: 1, r: 255, g: 255, b: 255 }, 3000)
  331. // .onUpdate(function(p) {
  332. // plane5.position.x = p.x;
  333. // plane5.position.y = p.y;
  334. // material5.opacity = p.op;
  335. // ambientLight.color.setRGB(p.r / 255, p.g / 255, p.b / 255);
  336. // })
  337. // .start();
  338. // var flyTweenBack = new TWEEN.Tween(flyTweenParams)
  339. // .easing(TWEEN.Easing.Quadratic.Out)
  340. // .to({ x: 565, y: 147, op: 0, r: 70, g: 139, b: 232 }, 3000)
  341. // .onUpdate(function(p) {
  342. // plane5.position.x = p.x;
  343. // plane5.position.y = p.y;
  344. // material5.opacity = p.op;
  345. // ambientLight.color.setRGB(p.r / 255, p.g / 255, p.b / 255);
  346. // });
  347. // var flyContentsOp = {
  348. // op: 0
  349. // };
  350. // var flyContentTween = new TWEEN.Tween(flyContentsOp)
  351. // .easing(TWEEN.Easing.Quadratic.Out)
  352. // .to({ op: 1 }, 2500)
  353. // .onUpdate(function(p) {
  354. // fly_materila_1_1.opacity = fly_materila_1_2.opacity = fly_materila_2_1.opacity = fly_materila_2_2.opacity = fly_materila_3_1.opacity = fly_materila_3_2.opacity = material6.opacity =
  355. // p.op;
  356. // });
  357. // var flyContentTweenBack = new TWEEN.Tween(flyContentsOp)
  358. // .easing(TWEEN.Easing.Quadratic.Out)
  359. // .to({ op: 0 }, 2000)
  360. // .onUpdate(function(p) {
  361. // fly_materila_1_1.opacity = fly_materila_1_2.opacity = fly_materila_2_1.opacity = fly_materila_2_2.opacity = fly_materila_3_1.opacity = fly_materila_3_2.opacity = material6.opacity =
  362. // p.op;
  363. // });
  364. // flyTween.chain(flyContentTween);
  365. // //flyContentTween.chain(flyTween);
  366. // flyContentTween.chain(flyContentTweenBack);
  367. // flyContentTweenBack.chain(flyTweenBack);
  368. // flyTweenBack.chain(flyTween);
  369. // //flyContentTweenBack.chain(flyContentTween);
  370. // //监听事件
  371. // document
  372. // .querySelector("#mouseDiv")
  373. // .addEventListener("mousemove", onDocumentMouseMove, false);
  374. // window.addEventListener("resize", onWindowResize, false);
  375. // var timer = null;
  376. // function onWindowResize(event) {
  377. // SCREEN_HEIGHT = window.innerHeight;
  378. // SCREEN_WIDTH = window.innerWidth;
  379. // camera.aspect = SCREEN_WIDTH / SCREEN_HEIGHT;
  380. // camera.updateProjectionMatrix();
  381. // renderer.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);
  382. // }
  383. // function onDocumentMouseMove(event) {
  384. // clearTimeout(timer);
  385. // timer = setTimeout(function() {
  386. // if (tween) {
  387. // tween.stop();
  388. // }
  389. // if (event.clientX - mouseX > 100) {
  390. // tween = new TWEEN.Tween(planeObj)
  391. // .easing(TWEEN.Easing.Quadratic.Out)
  392. // .to({ x: 520, y: 150 }, 1000)
  393. // .onUpdate(function(p) {
  394. // plane.position.x = p.x;
  395. // plane.position.y = p.y;
  396. // })
  397. // .start();
  398. // } else if (event.clientX - mouseX < -100) {
  399. // tween = new TWEEN.Tween(planeObj)
  400. // .easing(TWEEN.Easing.Quadratic.Out)
  401. // .to({ x: 450, y: 80 }, 1000)
  402. // .onUpdate(function(p) {
  403. // plane.position.x = p.x;
  404. // plane.position.y = p.y;
  405. // })
  406. // .start();
  407. // }
  408. // tween.start();
  409. // mouseX = event.clientX;
  410. // mouseY = event.clientY;
  411. // }, 100);
  412. // }
  413. // function render() {
  414. // var timer = Date.now() * 0.0001;
  415. // requestAnimationFrame(render);
  416. // TWEEN.update();
  417. // //渲染,输出
  418. // renderer.render(scene, camera);
  419. // }
  420. // render();
  421. // });
  422. // }
  423. },
  424. watch: {},
  425. computed: {},
  426. created() {},
  427. mounted() {
  428. this.$nextTick(() => {
  429. //获取浏览器宽度
  430. let windowWidth = document.body.clientWidth;
  431. if (windowWidth <= 990) {
  432. this.isSmall = true;
  433. }
  434. this.notWebgl = true;
  435. // if (!Detector.webgl) {
  436. // //Detector.addGetWebGLMessage();
  437. // } else {
  438. // this.notWebgl = false;
  439. // this.threeAnimation();
  440. // }
  441. });
  442. },
  443. destroyed() {}
  444. };
  445. </script>
  446. <style lang="scss" scoped>
  447. @keyframes fadeInLeft {
  448. from {
  449. opacity: 0;
  450. transform: translate3d(-100%, 0, 0);
  451. }
  452. to {
  453. opacity: 1;
  454. transform: translate3d(0, 0, 0);
  455. }
  456. }
  457. @keyframes leafShake {
  458. form,
  459. to {
  460. transform: rotate(0);
  461. transform-origin: bottom;
  462. }
  463. 20%,
  464. 60% {
  465. transform: rotate(2deg);
  466. transform-origin: bottom;
  467. }
  468. 40%,
  469. 80% {
  470. transform: rotate(-2deg);
  471. transform-origin: bottom;
  472. }
  473. }
  474. @keyframes fadeInRight {
  475. from {
  476. opacity: 0;
  477. transform: translate3d(100%, 0, 0);
  478. }
  479. to {
  480. opacity: 1;
  481. transform: translate3d(0, 0, 0);
  482. }
  483. }
  484. @keyframes fadeIn {
  485. from {
  486. opacity: 0;
  487. }
  488. to {
  489. opacity: 1;
  490. }
  491. }
  492. .container {
  493. position: relative;
  494. min-width: 1260px;
  495. }
  496. .wrapper {
  497. position: absolute;
  498. top: 0;
  499. right: 0;
  500. bottom: 0;
  501. left: 0;
  502. .header {
  503. top: 0;
  504. min-width: 990px;
  505. width: 100%;
  506. height: 64px;
  507. display: flex;
  508. align-items: center;
  509. position: relative;
  510. }
  511. .menu {
  512. position: absolute;
  513. top: 0;
  514. right: 14%;
  515. width: 376px;
  516. font-size: 12px;
  517. li {
  518. float: left;
  519. width: 70px;
  520. text-align: center;
  521. height: 64px;
  522. line-height: 64px;
  523. cursor: pointer;
  524. color: #fff;
  525. & > a {
  526. display: block;
  527. height: 100%;
  528. line-height: 64px;
  529. }
  530. a {
  531. color: #fff;
  532. text-decoration: none;
  533. }
  534. }
  535. select {
  536. width: 74px;
  537. height: 28px;
  538. margin-top: 18px;
  539. margin-left: 20px;
  540. font-size: 12px;
  541. }
  542. li:hover {
  543. border-bottom: 2px solid #fff;
  544. }
  545. .github-icon {
  546. display: inline-block;
  547. height: 26px;
  548. width: 26px;
  549. font-size: 0;
  550. background: url("./asset/css/i/github.png") 0 0 no-repeat;
  551. vertical-align: middle;
  552. position: relative;
  553. top: -1px;
  554. margin-left: 35px;
  555. cursor: pointer;
  556. }
  557. }
  558. .logo {
  559. height: 100%;
  560. line-height: 64px;
  561. float: left;
  562. width: 245px;
  563. font-size: 0;
  564. position: relative;
  565. s {
  566. background: url(./asset/css/i/nut.png) 0 0 no-repeat;
  567. background-size: contain;
  568. height: 46px;
  569. width: 120px;
  570. display: inline-block;
  571. position: absolute;
  572. top: 50%;
  573. left: 50px;
  574. margin-top: -23px;
  575. }
  576. }
  577. .search {
  578. margin: 20px 0;
  579. display: inline-block;
  580. border-left: 1px solid #d8d8d8;
  581. padding-left: 84px;
  582. position: relative;
  583. &:before {
  584. content: "";
  585. display: inline-block;
  586. background: url(./asset/css/i/search.png) 0 0 no-repeat;
  587. height: 22px;
  588. width: 22px;
  589. position: absolute;
  590. top: 50%;
  591. margin-top: -11px;
  592. left: 40px;
  593. }
  594. .search-input {
  595. border: none;
  596. height: 24px;
  597. line-height: 24px;
  598. font-size: 12px;
  599. outline: none;
  600. width: 200px;
  601. background: transparent;
  602. }
  603. }
  604. .content {
  605. padding: 15% 0 0 8.8%;
  606. z-index: 999;
  607. position: relative;
  608. .mouseDiv {
  609. height: 300px;
  610. width: 500px;
  611. //background:#ccc;
  612. position: absolute;
  613. top: 50%;
  614. left: 50%;
  615. margin-left: -250px;
  616. margin-top: -50px;
  617. }
  618. .title {
  619. font-size: 42px;
  620. color: #333;
  621. font-weight: bold;
  622. animation: fadeInLeft 1s both;
  623. }
  624. .sub-title {
  625. font-size: 24px;
  626. color: #333;
  627. padding-top: 30px;
  628. padding-bottom: 100px;
  629. animation: fadeInLeft 1s both 0.5s;
  630. }
  631. .btn,
  632. .blue-btn {
  633. border: 1px solid rgba(83,150,255,1);
  634. background: #fff;
  635. color: rgba(83,150,255,1);
  636. width: 130px;
  637. height: 40px;
  638. line-height: 40px;
  639. text-align: center;
  640. display: inline-block;
  641. font-size: 14px;
  642. text-decoration: none;
  643. border-radius: 20px;
  644. animation: fadeInLeft 1s both 1.2s;
  645. &:hover,&:active{
  646. border-color:rgba(83,150,255,.8);
  647. color: rgba(83,150,255,.8);
  648. }
  649. }
  650. .blue-btn {
  651. color: #fff;
  652. background: rgba(83,150,255,1);
  653. margin-right: 40px;
  654. &:hover,&:active{
  655. background: rgba(83,150,255,.8);
  656. color: rgba(255,255,255,.8);
  657. }
  658. }
  659. }
  660. .qrcode {
  661. background: none;
  662. width: auto;
  663. margin: 0;
  664. opacity: 1;
  665. &.top-qr {
  666. a {
  667. left: -65px;
  668. top: 60px;
  669. }
  670. }
  671. a {
  672. position: absolute; //display: none;
  673. top: 44px;
  674. width: 200px;
  675. height: 240px;
  676. transform: scale(0.5);
  677. transform-origin: 50% top 0;
  678. transition: all 100ms ease-in-out 50ms;
  679. background: url("./asset/css/i/kuang.png") no-repeat;
  680. background-size: 200px;
  681. text-decoration: none;
  682. font-style: normal;
  683. text-align: center;
  684. left: -35px;
  685. overflow: hidden;
  686. pointer-events: none;
  687. span {
  688. display: block;
  689. overflow: hidden;
  690. color: #666;
  691. font-size: 14px;
  692. text-align: center;
  693. height: 45px;
  694. width: 100%;
  695. line-height: 60px;
  696. }
  697. img {
  698. opacity: 0.8;
  699. width: 166px;
  700. height: 166px;
  701. }
  702. }
  703. &:hover {
  704. opacity: 1;
  705. a {
  706. display: inline-block;
  707. opacity: 1;
  708. transform: scale(1);
  709. }
  710. }
  711. }
  712. }
  713. .css-animation {
  714. position: absolute;
  715. top: 0;
  716. right: 0;
  717. transform: scale3d(1.06, 1.06, 1.06);
  718. .blue-bg {
  719. background: url("//img12.360buyimg.com/uba/jfs/t1/22824/40/3136/6504/5c24a3f4E76fdafde/802d02d1ec5d3d55.png")
  720. 0 0 no-repeat;
  721. height: 757px;
  722. width: 963px;
  723. background-size: 100% 100%;
  724. position: absolute;
  725. right: 0;
  726. top: 0;
  727. .phone {
  728. background: url("//img10.360buyimg.com/uba/jfs/t1/19171/19/3175/23282/5c24a440Ee2a94261/45321aeaf173f237.png")
  729. 0 0 no-repeat;
  730. height: 419px;
  731. width: 227px;
  732. background-size: 100% 100%;
  733. position: absolute;
  734. right: 350px;
  735. top: 250px;
  736. display: inline-block;
  737. }
  738. .goods {
  739. background: url("//img14.360buyimg.com/uba/jfs/t1/21115/40/3224/5652/5c24a411E03ef9eb6/83781b97e59da905.png")
  740. 0 0 no-repeat;
  741. height: 165px;
  742. width: 117px;
  743. background-size: 100% 100%;
  744. position: absolute;
  745. display: inline-block;
  746. top: 500px;
  747. right: 710px;
  748. }
  749. .people {
  750. background: url("//img12.360buyimg.com/uba/jfs/t1/9330/16/10894/8662/5c24a42aE708692b3/14455d20eca1ccee.png");
  751. width: 184px;
  752. height: 334px;
  753. background-size: 100% 100%;
  754. position: absolute;
  755. top: 334px;
  756. right: 500px;
  757. }
  758. .flower {
  759. position: absolute;
  760. right: 195px;
  761. top: 510px;
  762. height: 160px;
  763. width: 208px;
  764. .leaf_1 {
  765. position: absolute;
  766. background: url(./asset/css/i/leaf_1.png) 0 0 no-repeat;
  767. height: 113px;
  768. width: 60px;
  769. background-size: 100% 100%;
  770. bottom: 36px;
  771. right: 79px;
  772. animation: leafShake 8s infinite;
  773. }
  774. .leaf_2 {
  775. position: absolute;
  776. background: url(./asset/css/i/leaf_2.png) 0 0 no-repeat;
  777. height: 64px;
  778. width: 66px;
  779. background-size: 100% 100%;
  780. bottom: 36px;
  781. right: 35px;
  782. animation: leafShake 8s infinite 0.6s;
  783. }
  784. .leaf_3 {
  785. position: absolute;
  786. background: url(./asset/css/i/leaf_3.png) 0 0 no-repeat;
  787. height: 28px;
  788. width: 64px;
  789. background-size: 100% 100%;
  790. bottom: 38px;
  791. right: 42px;
  792. //animation:leafShake 3s infinite 0.5s;
  793. }
  794. .leaf_4 {
  795. position: absolute;
  796. background: url(./asset/css/i/leaf_4.png) 0 0 no-repeat;
  797. height: 113px;
  798. width: 99px;
  799. background-size: 100% 100%;
  800. bottom: 38px;
  801. left: 2px;
  802. //animation:leafShake 3s infinite 0.2s;
  803. }
  804. .flowerpot {
  805. position: absolute;
  806. background: url(./asset/css/i/flowerpot.png) 0 0 no-repeat;
  807. height: 42px;
  808. width: 130px;
  809. bottom: 0;
  810. right: 5px;
  811. background-size: 100% 100%;
  812. }
  813. }
  814. .nut {
  815. position: absolute;
  816. height: 46px;
  817. width: 46px;
  818. background: url(./asset/css/i/nut-icon.png) 0 0 no-repeat;
  819. background-size: 100% 100%;
  820. top: 308px;
  821. right: 493px;
  822. animation: fadeInRight 2s both;
  823. }
  824. .fengche {
  825. position: absolute;
  826. background: url(./asset/css/i/fengche.png) 0 0 no-repeat;
  827. background-size: 100% 100%;
  828. width: 679px;
  829. height: 476px;
  830. top: 195px;
  831. right: 180px;
  832. animation: fadeIn 1s both 2s;
  833. }
  834. }
  835. }
  836. @media screen and (max-width: 1500px) {
  837. .css-animation{
  838. .blue-bg{
  839. transform: translateX(155px);
  840. }
  841. }
  842. .wrapper{
  843. .content{
  844. padding-left:5%;
  845. }
  846. .menu{
  847. right:6%;
  848. }
  849. }
  850. }
  851. </style>