纯css打造一个饼状图效果
代码语言:html
所属分类:布局界面
代码描述:纯css打造一个饼状图效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@900&display=swap"); body { background: #d3d0c9; } .pie, .link { position: fixed; top: 0; left: 0; right: 0; bottom: 0; } .pie { background: radial-gradient(circle closest-side, transparent 66%, #d3d0c9 0), conic-gradient(#4e79a7 0, #4e79a7 38%, #f28e2c 0, #f28e2c 61%, #e15759 0, #e15759 77%, #76b7b2 0, #76b7b2 87%, #59a14f 0, #59a14f 93%, #edc949 0, #edc949 100%); animation: spin 3s linear infinite; box-shadow: inset 0 0 0 2px #d3d0c9, 0 0 0 2px #d3d0c9; } @keyframes spin { to { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0