| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057 |
- <template>
- <div class="container">
- <template v-if="notWebgl">
- <div class="css-animation" >
-
- <span class="blue-bg"></span>
- <span class="phone"></span>
- <span class="goods"></span>
- <span class="nut"></span>
- <span class="people"></span>
- <span class="flower">
- <span class="leaf_2"></span>
- <span class="leaf_1"></span>
- <span class="leaf_4"></span>
- <span class="leaf_3"></span>
-
- <span class="flowerpot"></span>
- </span>
- <span class="fengche"></span>
-
- </div>
-
- </template>
- <template v-else>
- <canvas id="output"></canvas>
- </template>
- <div class="wrapper">
- <div class="header">
- <span class="logo">
- NUTUI
- <s></s>
- </span>
- <search/>
- <div class="menu">
- <ul>
- <li>
- <a href="#/doc">指南</a>
- </li>
- <li>
- <a href="#/ActionSheet">组件</a>
- </li>
- <li>
- <a href="/demo.html#/index" class="qrcode top-qr" target="_blank">
- 示例
- <a>
- <span>请使用手机扫码体验</span>
- <img
- src="http://img13.360buyimg.com/uba/jfs/t1/14144/37/3433/5890/5c26d976E7cd98b80/94583409233081cc.png"
- alt
- >
- </a>
- </a>
- </li>
- </ul>
- <select @change="openwindow">
- <option value="2">2.X</option>
- <option value="1">1.X</option>
- </select>
- <a
- href="https://github.com/jdf2e/nutui"
- title="Github"
- target="_blank"
- class="github-icon"
- >github</a>
- </div>
- </div>
- <div class="content">
- <div class="mouseDiv" id="mouseDiv"></div>
- <p class="title">NutUI</p>
- <p class="sub-title">一套京东风格的轻量级移动端Vue组件库</p>
- <a href="#/doc" class="blue-btn">开始使用</a>
- <a href="javascript:;" class="qrcode btn">
- 扫码体验
- <a>
- <span>请使用手机扫码体验</span>
- <img
- src="http://img13.360buyimg.com/uba/jfs/t1/14144/37/3433/5890/5c26d976E7cd98b80/94583409233081cc.png"
- alt
- >
- </a>
- </a>
- </div>
- </div>
- </div>
- </template>
- <script>
- // import * as THREE from "three";
- // import TWEEN from "@tweenjs/tween.js";
- // import Detector from "./asset/js/Detector.js";
- import search from "./search.vue";
- export default {
- name: "frontCover",
- data() {
- return {
- timer: null,
- notWebgl: true,
- isSmall: false
- };
- },
- components: {
- search
- },
- methods: {
- openwindow(val) {
- if (val.target.value == 1) {
- window.location.href = " http://nutui.jd.com/1x/";
- }
- }
- // threeAnimation() {
- // this.timer = setTimeout(() => {
- // //获取视窗宽高
- // var mouseX = 0,
- // mouseY = 0;
- // var SCREEN_HEIGHT = window.innerHeight;
- // var SCREEN_WIDTH = window.innerWidth;
- // var tween;
- // var planeObj = {
- // x: 450,
- // y: 80
- // };
- // //渲染器(render)
- // var renderer = new THREE.WebGLRenderer({
- // canvas: document.getElementById("output")
- // });
- // //设置背景颜色
- // renderer.setClearColor(0xffffff, 1.0);
- // renderer.setPixelRatio(window.devicePixelRatio);
- // renderer.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);
- // //场景(Scene)
- // var scene = new THREE.Scene();
- // //透视投影相机
- // var camera = new THREE.PerspectiveCamera(
- // 45,
- // SCREEN_WIDTH / SCREEN_HEIGHT,
- // 1,
- // 10000
- // );
- // camera.position.set(0, 0, 1300);
- // camera.lookAt(scene.position);
- // scene.add(camera);
- // //光源
- // var ambientLight = new THREE.AmbientLight("#468be8");
- // scene.add(ambientLight);
- // ambientLight.color.setHex(0xffffff);
- // //背景蓝色
- // var texture = new THREE.TextureLoader().load(
- // "//img12.360buyimg.com/uba/jfs/t1/22824/40/3136/6504/5c24a3f4E76fdafde/802d02d1ec5d3d55.png"
- // );
- // var material = new THREE.MeshBasicMaterial({
- // map: texture,
- // transparent: true
- // });
- // var geometry = new THREE.PlaneBufferGeometry(1174, 923);
- // //货物箱
- // var texture1 = new THREE.TextureLoader().load(
- // "//img14.360buyimg.com/uba/jfs/t1/21115/40/3224/5652/5c24a411E03ef9eb6/83781b97e59da905.png"
- // );
- // var material1 = new THREE.MeshBasicMaterial({
- // map: texture1,
- // transparent: true
- // });
- // var geometry1 = new THREE.PlaneBufferGeometry(146, 206);
- // //人物
- // var texture2 = new THREE.TextureLoader().load(
- // "//img12.360buyimg.com/uba/jfs/t1/9330/16/10894/8662/5c24a42aE708692b3/14455d20eca1ccee.png"
- // );
- // var material2 = new THREE.MeshBasicMaterial({
- // map: texture2,
- // transparent: true
- // });
- // var geometry2 = new THREE.PlaneBufferGeometry(230, 417);
- // //phone
- // var texture3 = new THREE.TextureLoader().load(
- // "//img10.360buyimg.com/uba/jfs/t1/19171/19/3175/23282/5c24a440Ee2a94261/45321aeaf173f237.png"
- // );
- // var material3 = new THREE.MeshBasicMaterial({
- // map: texture3,
- // transparent: true
- // });
- // var geometry3 = new THREE.PlaneBufferGeometry(284, 524);
- // //flower
- // var texture4 = new THREE.TextureLoader().load(
- // "//img13.360buyimg.com/uba/jfs/t1/20972/11/3212/7155/5c24a45aE356f126d/2649726673daddc8.png"
- // );
- // var material4 = new THREE.MeshBasicMaterial({
- // map: texture4,
- // transparent: true
- // });
- // var geometry4 = new THREE.PlaneBufferGeometry(257, 193);
- // //nut
- // var texture5 = new THREE.TextureLoader().load(
- // "//img14.360buyimg.com/uba/jfs/t1/21247/15/3196/859/5c24a472E1e9853ab/6bec8c6940288bc3.png"
- // );
- // var material5 = new THREE.MeshPhongMaterial({
- // map: texture5,
- // transparent: true,
- // opacity: 1
- // });
- // var geometry5 = new THREE.PlaneBufferGeometry(57, 57);
- // //fly
- // var texture6 = new THREE.TextureLoader().load(
- // "//img14.360buyimg.com/uba/jfs/t1/7300/6/10801/16348/5c24a487E98a8139b/27b70ff5b4ddaf1f.png"
- // );
- // var material6 = new THREE.MeshBasicMaterial({
- // map: texture6,
- // transparent: true,
- // opacity: 0
- // });
- // var geometry6 = new THREE.PlaneBufferGeometry(851, 597);
- // //flyContents
- // var fly_texture_1_1 = new THREE.TextureLoader().load(
- // "//img14.360buyimg.com/uba/jfs/t1/24669/35/3260/1611/5c24a4a9E4e0941ab/65a238650812a7a9.png"
- // );
- // var fly_materila_1_1 = new THREE.MeshBasicMaterial({
- // map: fly_texture_1_1,
- // transparent: true,
- // opacity: 0
- // });
- // fly_materila_1_1.side = THREE.DoubleSide;
- // var fly_geometry_1_1 = new THREE.PlaneBufferGeometry(77, 77);
- // var fly_texture_1_2 = new THREE.TextureLoader().load(
- // "//img10.360buyimg.com/uba/jfs/t1/16477/11/3111/645/5c24a4beE3668b9c1/f7f0b074baab071c.png"
- // );
- // var fly_materila_1_2 = new THREE.MeshBasicMaterial({
- // map: fly_texture_1_2,
- // transparent: true,
- // opacity: 0
- // });
- // fly_materila_1_2.side = THREE.DoubleSide;
- // var fly_geometry_1_2 = new THREE.PlaneBufferGeometry(54, 45);
- // var fly_texture_2_1 = new THREE.TextureLoader().load(
- // "//img12.360buyimg.com/uba/jfs/t1/8267/36/10934/1385/5c24a4d2E036f7ef1/d88f41ccd8d8f409.png"
- // );
- // var fly_materila_2_1 = new THREE.MeshBasicMaterial({
- // map: fly_texture_2_1,
- // transparent: true,
- // opacity: 0
- // });
- // fly_materila_2_1.side = THREE.DoubleSide;
- // var fly_geometry_2_1 = new THREE.PlaneBufferGeometry(103, 74);
- // var fly_texture_2_2 = new THREE.TextureLoader().load(
- // "//img20.360buyimg.com/uba/jfs/t1/9695/33/10662/1607/5c24a4e4Ee2f9bab1/18c829d3e46efc4e.png"
- // );
- // var fly_materila_2_2 = new THREE.MeshBasicMaterial({
- // map: fly_texture_2_2,
- // transparent: true,
- // opacity: 0
- // });
- // fly_materila_2_2.side = THREE.DoubleSide;
- // var fly_geometry_2_2 = new THREE.PlaneBufferGeometry(69, 79);
- // var fly_texture_3_1 = new THREE.TextureLoader().load(
- // "//img12.360buyimg.com/uba/jfs/t1/27128/26/3128/1206/5c24a4faEb2c39e88/825abcfc5fc19761.png"
- // );
- // var fly_materila_3_1 = new THREE.MeshBasicMaterial({
- // map: fly_texture_3_1,
- // transparent: true,
- // opacity: 0
- // });
- // fly_materila_3_1.side = THREE.DoubleSide;
- // var fly_geometry_3_1 = new THREE.PlaneBufferGeometry(52, 53);
- // var fly_texture_3_2 = new THREE.TextureLoader().load(
- // "//img12.360buyimg.com/uba/jfs/t1/29872/1/3250/1154/5c24a50eE15e06d48/2412d3d556bf7463.png"
- // );
- // var fly_materila_3_2 = new THREE.MeshBasicMaterial({
- // map: fly_texture_3_2,
- // transparent: true,
- // opacity: 0
- // });
- // fly_materila_3_2.side = THREE.DoubleSide;
- // var fly_geometry_3_2 = new THREE.PlaneBufferGeometry(73, 73);
- // var plane = new THREE.Mesh(geometry, material);
- // plane.position.x = 450;
- // plane.position.y = 80;
- // scene.add(plane);
- // var plane1 = new THREE.Mesh(geometry1, material1);
- // plane1.position.x = 220;
- // plane1.position.y = -170;
- // scene.add(plane1);
- // var plane3 = new THREE.Mesh(geometry3, material3);
- // plane3.position.x = 570;
- // plane3.position.y = -12;
- // scene.add(plane3);
- // var plane5 = new THREE.Mesh(geometry5, material5);
- // plane5.position.x = 505;
- // plane5.position.y = 147;
- // scene.add(plane5);
- // var plane2 = new THREE.Mesh(geometry2, material2);
- // plane2.position.x = 420;
- // plane2.position.y = -65;
- // scene.add(plane2);
- // var plane4 = new THREE.Mesh(geometry4, material4);
- // plane4.position.x = 770;
- // plane4.position.y = -175;
- // scene.add(plane4);
- // var plane6 = new THREE.Mesh(geometry6, material6);
- // plane6.position.x = 498;
- // plane6.position.y = 23;
- // scene.add(plane6);
- // var planeFly_1_1 = new THREE.Mesh(fly_geometry_1_1, fly_materila_1_1);
- // planeFly_1_1.position.x = 305;
- // planeFly_1_1.position.y = 220;
- // scene.add(planeFly_1_1);
- // var planeFly_1_2 = new THREE.Mesh(fly_geometry_1_2, fly_materila_1_2);
- // planeFly_1_2.position.x = 385;
- // planeFly_1_2.position.y = 225;
- // scene.add(planeFly_1_2);
- // var planeFly_2_1 = new THREE.Mesh(fly_geometry_2_1, fly_materila_2_1);
- // planeFly_2_1.position.x = 770;
- // planeFly_2_1.position.y = 20;
- // scene.add(planeFly_2_1);
- // var planeFly_2_2 = new THREE.Mesh(fly_geometry_2_2, fly_materila_2_2);
- // planeFly_2_2.position.x = 820;
- // planeFly_2_2.position.y = 90;
- // scene.add(planeFly_2_2);
- // var planeFly_3_1 = new THREE.Mesh(fly_geometry_3_1, fly_materila_3_1);
- // planeFly_3_1.position.x = 500;
- // planeFly_3_1.position.y = -130;
- // scene.add(planeFly_3_1);
- // var planeFly_3_2 = new THREE.Mesh(fly_geometry_3_2, fly_materila_3_2);
- // planeFly_3_2.position.x = 350;
- // planeFly_3_2.position.y = -200;
- // scene.add(planeFly_3_2);
- // var flyTweenParams = {
- // x: 565,
- // y: 147,
- // op: 0,
- // r: 70,
- // g: 139,
- // b: 232
- // };
- // var flyTween = new TWEEN.Tween(flyTweenParams)
- // .easing(TWEEN.Easing.Quadratic.Out)
- // .to({ x: 505, y: 147, op: 1, r: 255, g: 255, b: 255 }, 3000)
- // .onUpdate(function(p) {
- // plane5.position.x = p.x;
- // plane5.position.y = p.y;
- // material5.opacity = p.op;
- // ambientLight.color.setRGB(p.r / 255, p.g / 255, p.b / 255);
- // })
- // .start();
- // var flyTweenBack = new TWEEN.Tween(flyTweenParams)
- // .easing(TWEEN.Easing.Quadratic.Out)
- // .to({ x: 565, y: 147, op: 0, r: 70, g: 139, b: 232 }, 3000)
- // .onUpdate(function(p) {
- // plane5.position.x = p.x;
- // plane5.position.y = p.y;
- // material5.opacity = p.op;
- // ambientLight.color.setRGB(p.r / 255, p.g / 255, p.b / 255);
- // });
- // var flyContentsOp = {
- // op: 0
- // };
- // var flyContentTween = new TWEEN.Tween(flyContentsOp)
- // .easing(TWEEN.Easing.Quadratic.Out)
- // .to({ op: 1 }, 2500)
- // .onUpdate(function(p) {
- // 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 =
- // p.op;
- // });
- // var flyContentTweenBack = new TWEEN.Tween(flyContentsOp)
- // .easing(TWEEN.Easing.Quadratic.Out)
- // .to({ op: 0 }, 2000)
- // .onUpdate(function(p) {
- // 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 =
- // p.op;
- // });
- // flyTween.chain(flyContentTween);
- // //flyContentTween.chain(flyTween);
- // flyContentTween.chain(flyContentTweenBack);
- // flyContentTweenBack.chain(flyTweenBack);
- // flyTweenBack.chain(flyTween);
- // //flyContentTweenBack.chain(flyContentTween);
- // //监听事件
- // document
- // .querySelector("#mouseDiv")
- // .addEventListener("mousemove", onDocumentMouseMove, false);
- // window.addEventListener("resize", onWindowResize, false);
- // var timer = null;
- // function onWindowResize(event) {
- // SCREEN_HEIGHT = window.innerHeight;
- // SCREEN_WIDTH = window.innerWidth;
- // camera.aspect = SCREEN_WIDTH / SCREEN_HEIGHT;
- // camera.updateProjectionMatrix();
- // renderer.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);
- // }
- // function onDocumentMouseMove(event) {
- // clearTimeout(timer);
- // timer = setTimeout(function() {
- // if (tween) {
- // tween.stop();
- // }
- // if (event.clientX - mouseX > 100) {
- // tween = new TWEEN.Tween(planeObj)
- // .easing(TWEEN.Easing.Quadratic.Out)
- // .to({ x: 520, y: 150 }, 1000)
- // .onUpdate(function(p) {
- // plane.position.x = p.x;
- // plane.position.y = p.y;
- // })
- // .start();
- // } else if (event.clientX - mouseX < -100) {
- // tween = new TWEEN.Tween(planeObj)
- // .easing(TWEEN.Easing.Quadratic.Out)
- // .to({ x: 450, y: 80 }, 1000)
- // .onUpdate(function(p) {
- // plane.position.x = p.x;
- // plane.position.y = p.y;
- // })
- // .start();
- // }
- // tween.start();
- // mouseX = event.clientX;
- // mouseY = event.clientY;
- // }, 100);
- // }
- // function render() {
- // var timer = Date.now() * 0.0001;
- // requestAnimationFrame(render);
- // TWEEN.update();
- // //渲染,输出
- // renderer.render(scene, camera);
- // }
- // render();
- // });
- // }
- },
- watch: {},
- computed: {},
- created() {},
- mounted() {
- this.$nextTick(() => {
- //获取浏览器宽度
- let windowWidth = document.body.clientWidth;
- if (windowWidth <= 990) {
- this.isSmall = true;
- }
- this.notWebgl = true;
- // if (!Detector.webgl) {
- // //Detector.addGetWebGLMessage();
- // } else {
- // this.notWebgl = false;
- // this.threeAnimation();
- // }
- });
- },
- destroyed() {}
- };
- </script>
- <style lang="scss" scoped>
- @keyframes fadeInLeft {
- from {
- opacity: 0;
- transform: translate3d(-100%, 0, 0);
- }
- to {
- opacity: 1;
- transform: translate3d(0, 0, 0);
- }
- }
- @keyframes fadeInRightAndTop{
- from{
- opacity: 0;
- transform: translate(100%,100%,0);
- transform: scale3d(1,1,1);
- }
- to{
- opacity: 1;
- transform:translate3d(0,0,0);
- transform: scale3d(1.06,1.06,1.06);
- }
- }
- @keyframes leafShake {
- form,
- to {
- transform: rotate(0);
- transform-origin: bottom;
- }
- 20%,
- 60% {
- transform: rotate(2deg);
- transform-origin: bottom;
- }
- 40%,
- 80% {
- transform: rotate(-2deg);
- transform-origin: bottom;
- }
- }
- @keyframes fadeInRight {
- from {
- opacity: 0;
- transform: translate3d(100%, 0, 0);
- }
- to {
- opacity: 1;
- transform: translate3d(0, 0, 0);
- }
- }
- @keyframes fadeIn {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- .container {
- position: relative;
- min-width: 1260px;
- }
- .wrapper {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- .header {
- top: 0;
- min-width: 990px;
- width: 100%;
- height: 64px;
- display: flex;
- align-items: center;
- position: relative;
- }
- .menu {
- position: absolute;
- top: 0;
- right: 14%;
- width: 376px;
- font-size: 12px;
- li {
- float: left;
- width: 70px;
- text-align: center;
- height: 64px;
- line-height: 64px;
- cursor: pointer;
- color: #fff;
- & > a {
- display: block;
- height: 100%;
- line-height: 64px;
- }
- a {
- color: #fff;
- text-decoration: none;
- }
- }
- select {
- width: 74px;
- height: 28px;
- margin-top: 18px;
- margin-left: 20px;
- font-size: 12px;
- }
- li:hover {
- border-bottom: 2px solid #fff;
- }
- .github-icon {
- display: inline-block;
- height: 26px;
- width: 26px;
- font-size: 0;
- background: url("./asset/css/i/github.png") 0 0 no-repeat;
- vertical-align: middle;
- position: relative;
- top: -1px;
- margin-left: 35px;
- cursor: pointer;
- }
- }
- .logo {
- height: 100%;
- line-height: 64px;
- float: left;
- width: 245px;
- font-size: 0;
- position: relative;
- s {
- background: url(./asset/css/i/nut.png) 0 0 no-repeat;
- background-size: contain;
- height: 46px;
- width: 120px;
- display: inline-block;
- position: absolute;
- top: 50%;
- left: 50px;
- margin-top: -23px;
- }
- }
- .search {
- margin: 20px 0;
- display: inline-block;
- border-left: 1px solid #d8d8d8;
- padding-left: 84px;
- position: relative;
- &:before {
- content: "";
- display: inline-block;
- background: url(./asset/css/i/search.png) 0 0 no-repeat;
- height: 22px;
- width: 22px;
- position: absolute;
- top: 50%;
- margin-top: -11px;
- left: 40px;
- }
- .search-input {
- border: none;
- height: 24px;
- line-height: 24px;
- font-size: 12px;
- outline: none;
- width: 200px;
- background: transparent;
- }
- }
- .content {
- padding: 15% 0 0 8.8%;
- z-index: 999;
- position: relative;
- .mouseDiv {
- height: 300px;
- width: 500px;
- //background:#ccc;
- position: absolute;
- top: 50%;
- left: 50%;
- margin-left: -250px;
- margin-top: -50px;
- }
- .title {
- font-size: 42px;
- color: #333;
- font-weight: bold;
- animation: fadeInLeft 1s both;
- }
- .sub-title {
- font-size: 24px;
- color: #333;
- padding-top: 30px;
- padding-bottom: 100px;
- animation: fadeInLeft 1s both 0.5s;
- }
- .btn,
- .blue-btn {
- border: 1px solid rgba(83,150,255,1);
- background: #fff;
- color: rgba(83,150,255,1);
- width: 130px;
- height: 40px;
- line-height: 40px;
- text-align: center;
- display: inline-block;
- font-size: 14px;
- text-decoration: none;
- border-radius: 20px;
- animation: fadeInLeft 1s both 1.2s;
- &:hover,&:active{
- border-color:rgba(83,150,255,.8);
- color: rgba(83,150,255,.8);
- }
- }
- .blue-btn {
- color: #fff;
- background: rgba(83,150,255,1);
- margin-right: 40px;
- &:hover,&:active{
- background: rgba(83,150,255,.8);
- color: rgba(255,255,255,.8);
- }
- }
- }
- .qrcode {
- background: none;
- width: auto;
- margin: 0;
- opacity: 1;
- &.top-qr {
- a {
- left: -65px;
- top: 60px;
- }
- }
- a {
- position: absolute; //display: none;
- top: 44px;
- width: 200px;
- height: 240px;
- transform: scale(0.5);
- transform-origin: 50% top 0;
- transition: all 100ms ease-in-out 50ms;
- background: url("./asset/css/i/kuang.png") no-repeat;
- background-size: 200px;
- text-decoration: none;
- font-style: normal;
- text-align: center;
- left: -35px;
- overflow: hidden;
- pointer-events: none;
- span {
- display: block;
- overflow: hidden;
- color: #666;
- font-size: 14px;
- text-align: center;
- height: 45px;
- width: 100%;
- line-height: 60px;
- }
- img {
- opacity: 0.8;
- width: 166px;
- height: 166px;
- }
- }
- &:hover {
- opacity: 1;
- a {
- display: inline-block;
- opacity: 1;
- transform: scale(1);
- }
- }
- }
- }
- <<<<<<< HEAD
- .css-animation{
- position: absolute;
- top:0;
- right:0;
- height:757px;
- width:963px;
- animation: fadeInRightAndTop 1.2s 1;
- transform: scale3d(1.06,1.06,1.06);
- .blue-bg{
- background:url('//img12.360buyimg.com/uba/jfs/t1/22824/40/3136/6504/5c24a3f4E76fdafde/802d02d1ec5d3d55.png') 0 0 no-repeat;
- height:757px;
- width:963px;
- background-size:100% 100%;
- position: absolute;
- right:0;
- top:0;
- }
- .phone{
- background:url('//img10.360buyimg.com/uba/jfs/t1/19171/19/3175/23282/5c24a440Ee2a94261/45321aeaf173f237.png') 0 0 no-repeat;
- height:419px;
- width:227px;
- background-size:100% 100%;
- position:absolute;
- right:350px;
- top:250px;
- display: inline-block;
- }
- .goods{
- background:url('//img14.360buyimg.com/uba/jfs/t1/21115/40/3224/5652/5c24a411E03ef9eb6/83781b97e59da905.png') 0 0 no-repeat;
- height:165px;
- width:117px;
- background-size:100% 100%;
- position:absolute;
- display:inline-block;
- top:500px;
- right:710px;
- }
- .people{
- background:url('//img12.360buyimg.com/uba/jfs/t1/9330/16/10894/8662/5c24a42aE708692b3/14455d20eca1ccee.png');
- width:184px;
- height:334px;
- background-size:100% 100%;
- position:absolute;
- top:334px;
- right:500px;
- }
- .flower{
- position: absolute;
- right:195px;
- top:510px;
- height:160px;
- width:208px;
- .leaf_1{
- position: absolute;
- background:url(./asset/css/i/leaf_1.png) 0 0 no-repeat;
- height:113px;
- width:60px;
- background-size:100% 100%;
- bottom:36px;
- right:79px;
- animation:leafShake 8s infinite ;
- }
- .leaf_2{
- position: absolute;
- background:url(./asset/css/i/leaf_2.png) 0 0 no-repeat;
- height:64px;
- width:66px;
- background-size:100% 100%;
- bottom:36px;
- right:35px;
- animation:leafShake 8s infinite 0.6s;
-
- }
- .leaf_3{
-
- position: absolute;
- background:url(./asset/css/i/leaf_3.png) 0 0 no-repeat;
- height:28px;
- width:64px;
- background-size:100% 100%;
- bottom:38px;
- right:42px;
- //animation:leafShake 3s infinite 0.5s;
- }
- .leaf_4{
- position: absolute;
- background:url(./asset/css/i/leaf_4.png) 0 0 no-repeat;
- height:113px;
- width:99px;
- background-size:100% 100%;
- bottom:38px;
- left:2px;
- //animation:leafShake 3s infinite 0.2s;
- }
- .flowerpot{
- position: absolute;
- background:url(./asset/css/i/flowerpot.png) 0 0 no-repeat;
- height:42px;
- width:130px;
- bottom:0;
- right:5px;
- background-size:100% 100%;
-
- }
- }
- .nut{
- position: absolute;
- height:46px;
- width:46px;
- background:url(./asset/css/i/nut-icon.png) 0 0 no-repeat;
- background-size:100% 100%;
- top:308px;
- right:493px;
- animation:fadeInRight 2s both;
-
-
- }
- .fengche{
- position:absolute;
- background:url(./asset/css/i/fengche.png) 0 0 no-repeat;
- background-size:100% 100%;
- width:679px;
- height:476px;
- top:195px;
- right:180px;
- animation: fadeIn 1s both 2s;
- }
- }
- =======
- .css-animation {
- position: absolute;
- top: 0;
- right: 0;
- transform: scale3d(1.06, 1.06, 1.06);
- .blue-bg {
- background: url("//img12.360buyimg.com/uba/jfs/t1/22824/40/3136/6504/5c24a3f4E76fdafde/802d02d1ec5d3d55.png")
- 0 0 no-repeat;
- height: 757px;
- width: 963px;
- background-size: 100% 100%;
- position: absolute;
- right: 0;
- top: 0;
- >>>>>>> fd9c2b1a875256700418a2f379f3e4c67e1c1f84
- .phone {
- background: url("//img10.360buyimg.com/uba/jfs/t1/19171/19/3175/23282/5c24a440Ee2a94261/45321aeaf173f237.png")
- 0 0 no-repeat;
- height: 419px;
- width: 227px;
- background-size: 100% 100%;
- position: absolute;
- right: 350px;
- top: 250px;
- display: inline-block;
- }
- .goods {
- background: url("//img14.360buyimg.com/uba/jfs/t1/21115/40/3224/5652/5c24a411E03ef9eb6/83781b97e59da905.png")
- 0 0 no-repeat;
- height: 165px;
- width: 117px;
- background-size: 100% 100%;
- position: absolute;
- display: inline-block;
- top: 500px;
- right: 710px;
- }
- .people {
- background: url("//img12.360buyimg.com/uba/jfs/t1/9330/16/10894/8662/5c24a42aE708692b3/14455d20eca1ccee.png");
- width: 184px;
- height: 334px;
- background-size: 100% 100%;
- position: absolute;
- top: 334px;
- right: 500px;
- }
- .flower {
- position: absolute;
- right: 195px;
- top: 510px;
- height: 160px;
- width: 208px;
- .leaf_1 {
- position: absolute;
- background: url(./asset/css/i/leaf_1.png) 0 0 no-repeat;
- height: 113px;
- width: 60px;
- background-size: 100% 100%;
- bottom: 36px;
- right: 79px;
- animation: leafShake 8s infinite;
- }
- .leaf_2 {
- position: absolute;
- background: url(./asset/css/i/leaf_2.png) 0 0 no-repeat;
- height: 64px;
- width: 66px;
- background-size: 100% 100%;
- bottom: 36px;
- right: 35px;
- animation: leafShake 8s infinite 0.6s;
- }
- .leaf_3 {
- position: absolute;
- background: url(./asset/css/i/leaf_3.png) 0 0 no-repeat;
- height: 28px;
- width: 64px;
- background-size: 100% 100%;
- bottom: 38px;
- right: 42px;
- //animation:leafShake 3s infinite 0.5s;
- }
- .leaf_4 {
- position: absolute;
- background: url(./asset/css/i/leaf_4.png) 0 0 no-repeat;
- height: 113px;
- width: 99px;
- background-size: 100% 100%;
- bottom: 38px;
- left: 2px;
- //animation:leafShake 3s infinite 0.2s;
- }
- .flowerpot {
- position: absolute;
- background: url(./asset/css/i/flowerpot.png) 0 0 no-repeat;
- height: 42px;
- width: 130px;
- bottom: 0;
- right: 5px;
- background-size: 100% 100%;
- }
- }
- .nut {
- position: absolute;
- height: 46px;
- width: 46px;
- background: url(./asset/css/i/nut-icon.png) 0 0 no-repeat;
- background-size: 100% 100%;
- top: 308px;
- right: 493px;
- animation: fadeInRight 2s both;
- }
- .fengche {
- position: absolute;
- background: url(./asset/css/i/fengche.png) 0 0 no-repeat;
- background-size: 100% 100%;
- width: 679px;
- height: 476px;
- top: 195px;
- right: 180px;
- animation: fadeIn 1s both 2s;
- }
- }
- }
- @media screen and (max-width: 1500px) {
- .css-animation{
- .blue-bg{
- transform: translateX(155px);
- }
- }
- .wrapper{
- .content{
- padding-left:5%;
- }
- .menu{
- right:6%;
- }
- }
- }
- </style>
|