css实现一个移动黄色正方体躲避蓝色长方体小游戏效果代码
代码语言:html
所属分类:游戏
代码描述:css实现一个移动黄色正方体躲避蓝色长方体小游戏效果代码
代码标签: 移动 黄色 正方体 躲避 蓝色 长方体 小游戏 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background: #202024; height: 100vh; overflow: hidden; display: flex; } div { transform-style: preserve-3d; position: absolute; } .container { position: relative; display: grid; grid-template-rows: repeat(20, 5vh); grid-template-columns: repeat(20, 5vw); transform-style: preserve-3d; } .monitor { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; transform-style: preserve-3d; } .trigger { position: relative; } .trigger:nth-child(1):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(2):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(3):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(4):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(5):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(6):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(7):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(8):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(9):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(10):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(11):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(12):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(13):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(14):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(15):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(16):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(17):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(18):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(19):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(20):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(21):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(22):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(23):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(24):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(25):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(26):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(27):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(28):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(29):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(30):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(31):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(32):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(33):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(34):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(35):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(36):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(37):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(38):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(39):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(40):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(41):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(42):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(43):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(44):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(45):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(46):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(47):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(48):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(49):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(50):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(51):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(52):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(53):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(54):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(55):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(56):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(57):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(58):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(59):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(60):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(61):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(62):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(63):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(64):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(65):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(66):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(67):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(68):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(69):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(70):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(71):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(72):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(73):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(74):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(75):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(76):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(77):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(78):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(79):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(80):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(81):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(82):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(83):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(84):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(85):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(86):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(87):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(88):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(89):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(90):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(91):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(92):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(93):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(94):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(95):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(96):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(97):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(98):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(99):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(100):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(101):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(102):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(103):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(104):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(105):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(106):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(107):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(108):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(109):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(110):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(111):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(112):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(113):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(114):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(115):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(116):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(117):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(118):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(119):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(120):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(121):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(122):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(123):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(124):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(125):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(126):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(127):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(128):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(129):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(130):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(131):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(132):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(133):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(134):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(135):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(136):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(137):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(138):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(139):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(140):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(141):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(142):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(143):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(144):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(145):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(146):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(147):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(148):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(149):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(150):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(151):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(152):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(153):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(154):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(155):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(156):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(157):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(158):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(159):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(160):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(161):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(162):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(163):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(164):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(165):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(166):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(167):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(168):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(169):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(170):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(171):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(172):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(173):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(174):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(175):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(176):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(177):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(178):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(179):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(180):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(181):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(182):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(183):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(184):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(185):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(186):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(187):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(188):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(189):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(190):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(191):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(192):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(193):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(194):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(195):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(196):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(197):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(198):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(199):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(200):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(201):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(202):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(203):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(204):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(205):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(206):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(207):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(208):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(209):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(210):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(211):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(212):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(213):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(214):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(215):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(216):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(217):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(218):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(219):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(220):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(221):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(222):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(223):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(224):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(225):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(226):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(227):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(228):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(229):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(230):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(231):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(232):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(233):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(234):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(235):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(236):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(237):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(238):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(239):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(240):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(241):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(242):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(243):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(244):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(245):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(246):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(247):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(248):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(249):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(250):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(251):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(252):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(253):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(254):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(255):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(256):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(257):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(258):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(259):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(260):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(261):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(262):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(263):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(264):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(265):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(266):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(267):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(268):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(269):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(270):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(271):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(272):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(273):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(274):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(275):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(276):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(277):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(278):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(279):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(280):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(281):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(282):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(283):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(284):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(285):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(286):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(287):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(288):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(289):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(290):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(291):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(292):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(293):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(294):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(295):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(296):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(297):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(298):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(299):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(300):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(301):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(302):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(303):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(304):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(305):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(306):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(307):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(308):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(309):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(310):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(311):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(312):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(313):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(314):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(315):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(316):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(317):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(318):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(319):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(320):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(321):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(322):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(323):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(324):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(325):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(326):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(327):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(328):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(329):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(330):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(331):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(332):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(333):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(334):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(335):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(336):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(337):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(338):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(339):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(340):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(341):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(342):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(343):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(344):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(345):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(346):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(347):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(348):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(349):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(350):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(351):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(352):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(353):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(354):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(355):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(356):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(357):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(358):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(359):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(360):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(361):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(362):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(363):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(364):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(365):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(366):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(367):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(368):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(369):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(370):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(371):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(372):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(373):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(374):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(375):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(376):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(377):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(378):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(379):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(380):hover ~ .monitor .me { transform: translateX(700px); } .trigger:nth-child(381):hover ~ .monitor .me { transform: translateX(-630px); } .trigger:nth-child(382):hover ~ .monitor .me { transform: translateX(-560px); } .trigger:nth-child(383):hover ~ .monitor .me { transform: translateX(-490px); } .trigger:nth-child(384):hover ~ .monitor .me { transform: translateX(-420px); } .trigger:nth-child(385):hover ~ .monitor .me { transform: translateX(-350px); } .trigger:nth-child(386):hover ~ .monitor .me { transform: translateX(-280px); } .trigger:nth-child(387):hover ~ .monitor .me { transform: translateX(-210px); } .trigger:nth-child(388):hover ~ .monitor .me { transform: translateX(-140px); } .trigger:nth-child(389):hover ~ .monitor .me { transform: translateX(-70px); } .trigger:nth-child(390):hover ~ .monitor .me { transform: translateX(0px); } .trigger:nth-child(391):hover ~ .monitor .me { transform: translateX(70px); } .trigger:nth-child(392):hover ~ .monitor .me { transform: translateX(140px); } .trigger:nth-child(393):hover ~ .monitor .me { transform: translateX(210px); } .trigger:nth-child(394):hover ~ .monitor .me { transform: translateX(280px); } .trigger:nth-child(395):hover ~ .monitor .me { transform: translateX(350px); } .trigger:nth-child(396):hover ~ .monitor .me { transform: translateX(420px); } .trigger:nth-child(397):hover ~ .monitor .me { transform: translateX(490px); } .trigger:nth-child(398):hover ~ .monitor .me { transform: translateX(560px); } .trigger:nth-child(399):hover ~ .monitor .me { transform: translateX(630px); } .trigger:nth-child(400):hover ~ .monitor .me { transform: translateX(700px); } .camera { position: absolute; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; transition: 500ms; } .camera.-x { transform: rotateX(0deg); } .camera.-y { transform: rotateY(-45deg); } .camera.-z { transform: rotateX(-45deg); } .me { position: absolute; top: 50%; left: 50%; transform-style: preserve-3d; transition: 700ms; } .me .face { position: absolute; } .me .face.-front { width: 30px; height: 30px; transform: translate(-50%, -50%) rotateY(0deg) translateZ(15px); background: #f5cd00; } .me .face.-left { width: 30px; height: 30px; transform: translate(-50%, -50%) rotate.........完整代码请登录后点击上方下载按钮下载查看
网友评论0