div+css实现立体文字环绕loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:div+css实现立体文字环绕loading加载动画效果代码
代码标签: div css 立体 文字 环绕 loading 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Nova+Mono&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap"); * { font-family: "Nova Mono", monospace; font-weight: 400; font-style: normal; transform-style: preserve-3d; perspective: 100px; perspective-origin: center; } html, body { height: 100%; } body { display: flex; align-items: center; justify-content: center; background: radial-gradient(#333, #000); color: white; } #loading { position: relative; animation: 3s spin linear infinite; } #loading span { position: absolute; } #loading span:nth-child(1) { transform: rotateY(0deg) translateZ(50px); } #loading span:nth-child(2) { transform: rotateY(51.4deg) translateZ(50px); }.........完整代码请登录后点击上方下载按钮下载查看
网友评论0