纯css实现电梯动画效果代码
代码语言:html
所属分类:动画
代码描述:纯css实现电梯动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html { background: black; font-size: 1vh; width: 100%; height: 100%; } body { perspective: 100rem; overflow: hidden; width: 100%; height: 100%; margin: 0; display: flex; flex-wrap: wrap; } body, body *, body *:before, body *:after { transform-style: preserve-3d; box-sizing: border-box; position: absolute; content: ""; left: 0; top: 0; } x, y { position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; width: 1rem; height: 1rem; transform: translateZ(6px); animation: rise 1s infinite linear, rotate 20s infinite linear; } floor, floor:before, floor:after { width: 50rem; height: 50rem; box-shadow: 0 0 0 0.5rem #ff000052, inset 0 0 0 1.5rem #2334ff, inset 0 0 5rem 0.5rem #2334ff; border-radius: 5rem; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0