div+css实现三维旋转行驶的自行车动画效果代码
代码语言:html
所属分类:三维
代码描述:div+css实现三维旋转行驶的自行车动画效果代码,无js代码。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> body { background: #eef; height: 100vh; overflow: hidden; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-perspective: 400px; perspective: 400px; } div { box-sizing: border-box; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } p { position: absolute; font-size: 40px; color: #984fbc; font-family: 'Dosis', sans-serif; letter-spacing: 3px; -webkit-transform: translateY(-45px); transform: translateY(-45px); } #road { -webkit-animation: run 15000ms linear infinite; animation: run 15000ms linear infinite; } #road .shadow { position: absolute; width: 300px; height: 40px; background: #ddd; border-radius: 999px; -webkit-transform: rotateX(90deg) translateX(-150px) translateZ(-92px); transform: rotateX(90deg) translateX(-150px) translateZ(-92px); } #road .bike { position: relative; } #road .bike_body_pedal { position: absolute; -webkit-transform-origin: -28px 54px; transform-origin: -28px 54px; -webkit-animation: tire 3000ms linear infinite; animation: tire 3000ms linear infinite; } #road .bike_body_pedal .arm_a { position: absolute; -webkit-transform: rotateZ(0deg) translateZ(8px) translateX(-30px) translateY(50px); transform: rotateZ(0deg) translateZ(8px) translateX(-30px) translateY(50px); } #road .bike_body_pedal .arm_a .bike_body_frame_side_a { position: absolute; height: 30px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_pedal .arm_a .bike_body_frame_side_a::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_pedal .arm_a .bike_body_frame_side_a::after { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_pedal .arm_a .bike_body_frame_side_b { position: absolute; height: 30px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_pedal .arm_a .bike_body_frame_side_b::before { content: ''; position: absolute; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_pedal .arm_a .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_pedal .arm_b { position: absolute; -webkit-transform: rotateZ(0deg) translateZ(-12px) translateX(-30px) translateY(28px); transform: rotateZ(0deg) translateZ(-12px) translateX(-30px) translateY(28px); } #road .bike_body_pedal .arm_b .bike_body_frame_side_a { position: absolute; height: 30px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_pedal .arm_b .bike_body_frame_side_a::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_pedal .arm_b .bike_body_frame_side_a::after { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_pedal .arm_b .bike_body_frame_side_b { position: absolute; height: 30px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_pedal .arm_b .bike_body_frame_side_b::before { content: ''; position: absolute; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_pedal .arm_b .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_pedal .pedal_a { position: absolute; top: 28px; left: -3px; -webkit-transform-origin: 5px 0px; transform-origin: 5px 0px; -webkit-animation: pedalA 3000ms linear infinite; animation: pedalA 3000ms linear infinite; } #road .bike_body_pedal .pedal_a .bike_body_frame_side_a { position: absolute; height: 20px; width: 10px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_pedal .pedal_a .bike_body_frame_side_a::before { content: ''; position: absolute; width: 4px; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_pedal .pedal_a .bike_body_frame_side_a::after { content: ''; position: absolute; right: 0; width: 4px; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_pedal .pedal_a .bike_body_frame_side_b { position: absolute; height: 20px; width: 10px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_pedal .pedal_a .bike_body_frame_side_b::before { content: ''; position: absolute; width: 10px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_pedal .pedal_a .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 10px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_pedal .pedal_b { position: absolute; top: 0px; left: -3px; -webkit-transform-origin: 5px 0px; transform-origin: 5px 0px; -webkit-animation: pedalB 3000ms linear infinite; animation: pedalB 3000ms linear infinite; } #road .bike_body_pedal .pedal_b .bike_body_frame_side_a { position: absolute; height: 20px; width: 10px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_pedal .pedal_b .bike_body_frame_side_a::before { content: ''; position: absolute; width: 4px; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_pedal .pedal_b .bike_body_frame_side_a::after { content: ''; position: absolute; right: 0; width: 4px; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_pedal .pedal_b .bike_body_frame_side_b { position: absolute; height: 20px; width: 10px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_pedal .pedal_b .bike_body_frame_side_b::before { content: ''; position: absolute; width: 10px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_pedal .pedal_b .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 10px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_saddle { position: absolute; -webkit-transform: translateX(-80px) translateY(-50px); transform: translateX(-80px) translateY(-50px); } #road .bike_body_saddle .bike_body_saddle_side_a { position: absolute; width: 40px; height: 20px; background: #000; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_saddle .bike_body_saddle_side_a::before { content: ''; position: absolute; top: 0; width: 40px; height: 6px; background: #333; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_saddle .bike_body_saddle_side_a::after { content: ''; position: absolute; bottom: 0; width: 40px; height: 6px; background: #333; -webkit-transform-origin: 0 6px; transform-origin: 0 6px; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_saddle .bike_body_saddle_side_b { position: absolute; width: 40px; height: 20px; background: #000; -webkit-transform: rotateX(90deg) translateZ(-6px); transform: rotateX(90deg) translateZ(-6px); } #road .bike_body_saddle .bike_body_saddle_side_b::before { content: ''; position: absolute; left: 0; width: 6px; height: 20px; background: #666; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_saddle .bike_body_saddle_side_b::after { content: ''; position: absolute; right: 0; width: 6px; height: 20px; background: #666; -webkit-transform-origin: 6px 0; transform-origin: 6px 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_rear .arm_a { position: absolute; -webkit-transform: rotateZ(28deg) translateZ(4px) translateX(-60px) translateY(4px); transform: rotateZ(28deg) translateZ(4px) translateX(-60px) translateY(4px); } #road .bike_body_rear .arm_a .bike_body_frame_side_a { position: absolute; height: 90px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_rear .arm_a .bike_body_frame_side_a::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_rear .arm_a .bike_body_frame_side_a::after { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_rear .arm_a .bike_body_frame_side_b { position: absolute; height: 90px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_rear .arm_a .bike_body_frame_side_b::before { content: ''; position: absolute; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_rear .arm_a .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_rear .arm_b { position: absolute; -webkit-transform: rotateZ(28deg) translateZ(-8px) translateX(-60px) translateY(4px); transform: rotateZ(28deg) translateZ(-8px) translateX(-60px) translateY(4px); } #road .bike_body_rear .arm_b .bike_body_frame_side_a { position: absolute; height: 90px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_rear .arm_b .bike_body_frame_side_a::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_rear .arm_b .bike_body_frame_side_a::after { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_rear .arm_b .bike_body_frame_side_b { position: absolute; height: 90px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_rear .arm_b .bike_body_frame_side_b::before { content: ''; position: absolute; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_rear .arm_b .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 4px; height: 12px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_rear .arm_c { position: absolute; -webkit-transform: rotateZ(90deg) translateZ(4px) translateX(53px) translateY(26px); transform: rotateZ(90deg) translateZ(4px) translateX(53px) translateY(26px); } #road .bike_body_rear .arm_c .bike_body_frame_side_a { position: absolute; height: 70px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_rear .arm_c .bike_body_frame_side_a::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_rear .arm_c .bike_body_frame_side_a::after { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_rear .arm_c .bike_body_frame_side_b { position: absolute; height: 70px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_rear .arm_c .bike_body_frame_side_b::before { content: ''; position: absolute; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_rear .arm_c .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_rear .arm_d { position: absolute; -webkit-transform: rotateZ(90deg) translateZ(-8px) translateX(53px) translateY(26px); transform: rotateZ(90deg) translateZ(-8px) translateX(53px) translateY(26px); } #road .bike_body_rear .arm_d .bike_body_frame_side_a { position: absolute; height: 70px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_rear .arm_d .bike_body_frame_side_a::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_rear .arm_d .bike_body_frame_side_a::after { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_rear .arm_d .bike_body_frame_side_b { position: absolute; height: 70px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_rear .arm_d .bike_body_frame_side_b::before { content: ''; position: absolute; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_rear .arm_d .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_front { position: absolute; -webkit-transform: rotateZ(-20deg) translateX(75px) translateY(-40px); transform: rotateZ(-20deg) translateX(75px) translateY(-40px); } #road .bike_body_front .bike_body_frame_1 { position: absolute; height: 65px; width: 8px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_front .bike_body_frame_2 { position: absolute; width: 30px; height: 8px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_front .side_a { position: absolute; -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_front .side_a .bike_body_frame_1::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_front .side_a .bike_body_frame_1::after { content: ''; position: absolute; width: 8px; height: 8px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_front .side_a .bike_body_frame_2::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_front .side_b { position: absolute; -webkit-transform: translateZ(-4px); transform: translateZ(-4px); } #road .bike_body_front .side_b .bike_body_frame_1::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_front .side_b .bike_body_frame_1::after { content: ''; position: absolute; bottom: 0; width: 8px; height: 8px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_front .side_b .bike_body_frame_2::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_front .side_c { -webkit-transform: rotateY(90deg) translateX(-40px) translateZ(30px); transform: rotateY(90deg) translateX(-40px) translateZ(30px); } #road .bike_body_front .side_c .bike_body_frame_side_a { position: absolute; width: 80px; height: 8px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_front .side_c .bike_body_frame_side_a::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_front .side_c .bike_body_frame_side_a::after { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_front .side_c .bike_body_frame_side_b { position: absolute; width: 80px; height: 8px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(8px); transform: translateZ(8px); } #road .bike_body_front .side_c .bike_body_frame_side_b::before { content: ''; position: absolute; width: 8px; height: 8px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_front .side_c .bike_body_frame_side_b::after { content: ''; position: absolute; right: 0; width: 8px; height: 8px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_front .arm_a { position: absolute; -webkit-transform: translateZ(4px) translateX(2px) translateY(57px); transform: translateZ(4px) translateX(2px) translateY(57px); } #road .bike_body_front .arm_a .bike_body_frame_side_a { position: absolute; height: 70px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_front .arm_a .bike_body_frame_side_a::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_front .arm_a .bike_body_frame_side_a::after { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_front .arm_a .bike_body_frame_side_b { position: absolute; height: 70px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_front .arm_a .bike_body_frame_side_b::before { content: ''; position: absolute; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_front .arm_a .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } #road .bike_body_front .arm_b { position: absolute; -webkit-transform: translateZ(-8px) translateX(2px) translateY(57px); transform: translateZ(-8px) translateX(2px) translateY(57px); } #road .bike_body_front .arm_b .bike_body_frame_side_a { position: absolute; height: 70px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_front .arm_b .bike_body_frame_side_a::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } #road .bike_body_front .arm_b .bike_body_frame_side_a::after { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_front .arm_b .bike_body_frame_side_b { position: absolute; height: 70px; width: 4px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_front .arm_b .bike_body_frame_side_b::before { content: ''; position: absolute; width: 4px; height: 4px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_front .arm_b .bike_body_frame_side_b::after { content: ''; position: absolute; bottom: 0; width: 4px; height: 12px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_triangle { position: absolute; -webkit-transform: rotateZ(80deg) translateX(-35px) translateY(-75px); transform: rotateZ(80deg) translateX(-35px) translateY(-75px); } #road .bike_body_triangle .bike_body_frame_1 { position: absolute; height: 130px; width: 8px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; -webkit-transform: rotateZ(-36.5deg); transform: rotateZ(-36.5deg); } #road .bike_body_triangle .bike_body_frame_2 { height: 120px; width: 8px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); } #road .bike_body_triangle .bike_body_frame_3 { position: absolute; bottom: 0; height: 8px; width: 97px; background: -webkit-linear-gradient(top, #ca81ee 0%, #984fbc 100%); background: linear-gradient(to bottom, #ca81ee 0%, #984fbc 100%); -webkit-transform: rotateZ(-10deg) translateX(-10px); transform: rotateZ(-10deg) translateX(-10px); } #road .bike_body_triangle .side_a { position: absolute; -webkit-transform: translateZ(4px); transform: translateZ(4px); } #road .bike_body_triangle .side_a .bike_body_frame_1::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_triangle .side_a .bike_body_frame_1::after { content: ''; position: absolute; width: 8px; height: 8px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_triangle .side_a .bike_body_frame_2::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_triangle .side_a .bike_body_frame_2::after { content: ''; position: absolute; width: 8px; height: 8px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_triangle .side_a .bike_body_frame_3::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } #road .bike_body_triangle .side_a .bike_body_frame_3::after { content: ''; position: absolute; width: 8px; height: 8px; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984fbc 0%, #661d8a 100%); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } #road .bike_body_triangle .side_b { position: absolute; -webkit-transform: translateZ(-4px); transform: translateZ(-4px); } #road .bike_body_triangle .side_b .bike_body_frame_1::before { content: ''; position: absolute; width: 100%; height: 100%; background: -webkit-linear-gradient(top, #984fbc 0%, #661d8a 100%); background: linear-gradient(to bottom, #984f.........完整代码请登录后点击上方下载按钮下载查看
网友评论0