css实现水晶玻璃晶莹剔透立方体旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现水晶玻璃晶莹剔透立方体旋转动画效果代码
代码标签: css 水晶 玻璃 晶莹 剔透 立方体 旋转 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; background-color: #000; height: 100vh; display: grid; font-size: .5vmin; filter: saturate(0) contrast(2); } svg { display: none; } body *, body *::before, body *::after { position: absolute; transform-style: preserve-3d; } .scene { width: 100em; aspect-ratio: 1; place-self: center; perspective: 250em; } .cube, .wall { inset: 0; } .cube { animation: spin 6s linear infinite; } @keyframes spin { 0% { rotate: y 75deg; } 100% { rotate: y 435deg; } } .wall:nth-child(1) { --step: 0; } .wall:nth-chi.........完整代码请登录后点击上方下载按钮下载查看
网友评论0