css实现多彩滚动提示效果
代码语言:html
所属分类:加载滚动
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title> Multicolor Loader Ring</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> html, body { height: 100%; } body { align-items: center; display: flex; justify-content: center; } .loader { -webkit-animation: loader-turn1s linear infinite; animation: loader-turn1s linear infinite; padding: 1rem; max-width: 60px; width: 100%; } @-webkit-keyframes loader-turn { 50% { -webkit-transform: rotate(180deg); transform: rotate(180deg); } 100% { -webkit-transform: rotate(720deg); transform: rotate(720deg); } } @keyframes loader-turn { 50% { -webkit-transform: rotate(180deg); transform: rotate(180deg); } 100% { -webkit-transform: rotate(720deg); transform: rotate(720deg); } } .loader__value { -webkit-animation: loader-stroke6s linear infinite; animation: loader-stroke6s linear infinite; fill: none; stroke-dasharray: 63; stroke-dashoffset: 63; stroke-linecap: round; stroke-width: 4; } .loader__value:nth-child(1) { stroke: dodgerblue; } .loader__value:nth-child(2) { stroke: mediumspringgreen; -webkit-animation-delay: 1s; animation-delay: 1s; } .loader__.........完整代码请登录后点击上方下载按钮下载查看
网友评论0