tailwindcss实现渐变loading加载动画效果代码
代码语言:html
所属分类:其他
代码描述:tailwindcss实现渐变loading加载动画效果代码
代码标签: tailwindcss 渐变 loading 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss.3.0.0.js"></script> <style> body { display: flex; justify-content: center; align-items: center; gap: 24px; height: 100vh; } .spinner-icon:before { background-image: conic-gradient(transparent 72deg, #fff 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #fff 0); mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #fff 0); } .bg-container { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(217deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0) 70.71%), linear-gradient(127deg, rgba(0, 255, 0, 0.8), rgba(0, 255, 0, 0) 70.71%), linear-gradient(336deg, rgba(0, 0, 255, 0.8), rgba(0, 0, 255, 0) 70.71%); border-radius: 12px; } </style> </head> <body> <div class="w-fit flex gap-8"> <div class=" relative flex flex-col items-center justify-center gap-8 w-96 h-96 "> <div class="bg-container"></div> <i class=" spin.........完整代码请登录后点击上方下载按钮下载查看
网友评论0