index.vue 28 KB

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