css实现五种loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:css实现五种loading加载动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background-color: #e0e0eb; } .box { position: relative; height: auto; width: 80%; margin: auto; margin-top: 50px; background: white; text-align: center; box-shadow: 3px 3px 30px black; } h1 { padding-top: 20px; font-family: "Do Hyeon", sans-serif; } .spinner { border-radius: 50%; margin: 20px; display: inline-block; position: relative; height: 60px; width: 60px; background-color: #e0e0eb; } .spinnerOne::after { content: ""; position: absolute; border-radius: 50%; top: -5px; left: -5px; height: 60px; width: 60px; border: 5px solid transparent; border-top-color: #7389AE; animation: spinneroneani 0.5s linear infinite; } @keyframes spinneroneani { 25% { border-top-color: transparent; border-right-color: transparent; border-bottom-color: transparent; border-left-color: #05A8AA; } 50% { border-top-color: transparent; border-right-color: transparent; border-bottom-color: #416788; border-left-color: transparent; transform: rotate(180deg) scale(1.2); } 75% { border-top-color: transparent; border-right-color: #2F6690; border-bottom-color: transparent; border-left-color: transparent; } 100% { border-top-color: #7389AE; border-right-color: transparent; border-bottom-color: transparent; border-left-color: transparent; transform: rotate(360deg) scale(1); } } .spinnerTwo:before { position: absolute; top: 30px; left: 27.5px; content: ""; height: 35px; width: 5px; background-color: #535657; transform.........完整代码请登录后点击上方下载按钮下载查看
网友评论0