纯css实现三维三角旋转屏转动合成动画效果代码
代码语言:html
所属分类:三维
代码描述:纯css实现三维三角旋转屏转动合成动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { height: 100vh; display: flex; justify-content: center; align-items: center; background: radial-gradient( circle, rgba(255, 255, 255, 1) 0%, rgba(184, 163, 96, 1) 71%, rgba(121, 101, 46, 1) 100% ); } .wrapper { transform-style: preserve-3d; transform: rotatex(-26deg); } .t { width: 200px; height: 40px; background: #0175c2; background-image: url("//repo.bfw.wiki/bfwrepo/image/5d65ea7d8bc8b.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_200,h_400,/quality,q_90"); background-position: 0 calc(var(--i) * -40px + 40px); position: relative; transform-style: preserve-3d; animation: spin 5s infinite; animation-delay: calc(var(--i) * 0.15s); transform-origin: center center 60px; } @keyframes spin { 0% { transform: rotatey(0deg); } 15%, 45% { transform: rotatey(180deg); } 100% { transform: rotatey(360deg); } } .t::before, .t::after { content: ""; position: absolute; width: 200px; height: 40px; background: linear-gradient.........完整代码请登录后点击上方下载按钮下载查看
网友评论0