css布局实现电动三轮车嘟嘟车行驶在都市路上动画效果代码
代码语言:html
所属分类:动画
代码描述:css布局实现电动三轮车嘟嘟车行驶在都市路上动画效果代码
代码标签: 电动 三轮车 嘟嘟 车 行驶 在 都市 路上 动画 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> *, *::after, *::before { box-sizing: border-box; } body { background-color: #f8fbff; display: grid; place-content: center; height: 100vh; margin: 0; } .bg { background-color: #f8fbff; background-image: url("//repo.bfw.wiki/bfwrepo/image/60a2ff042098f.png"); background-position-y: center; background-attachment: fixed; background-repeat: repeat-x; background-position-x: -10%; animation: bg linear 20s infinite; } .tuk { width: 700px; height: 428px; z-index: 5; position: relative; margin-left: -20px; } .body { width: 595px; height: 374px; background: #262523; border-radius: 80px 150px 180px 60px; position: relative; } .body .empty-space { width: 270px; height: calc(100% - 40px); margin-top: 20px; background-color: #f8fbff; position: absolute; right: 140px; z-index: 1; border-radius: 30px 10px 10px; } .body .empty-space .seperator { height: 100%; width: 8px; background: #bbbbbe; right: 125px; position: absolute; } .body .empty-space .seperator .seat-base { background: #c80f1f; width: 20px; border-radius: 4px 4px 0 0; height: 140px; bottom: 0; left: -5px; position: absolute; } .body .empty-space .seperator .seat-base::after { content: ""; width: 10px; height: 82px; position: absolute; background: #c80f1f; bottom: 0; left: 20px; border-radius: 0 2px 0 0; } .body .empty-space .seperator .seat-base .seat { background: #262523; width: 60px; height: 15px; border-radius: 0 10px 10px 0; position: absolute; top: 40px; left: 20px; } .body .empty-space .seperator .seat-base .seat::before { content: ""; position: absolute; width: 8px; height: 40px; backgr.........完整代码请登录后点击上方下载按钮下载查看
网友评论0