css实现开花loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:css实现开花loading加载动画效果代码

代码标签: loading 加载 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

 
<meta charset="UTF-8">
 

 
<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&amp;display=swap'>
 
<style>
* {
        border: 0;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
}
:root {
        --bg: #e3e4e8;
        --fg: #17181c;
        --dur: 8s;
        font-size: calc(20px + (30 - 20) * (100vw - 320px) / (1280 - 320));
}
body {
        background: var(--bg);
        color: var(--fg);
        font: bold 1em/1.5 "Comfortaa", sans-serif;
        display: grid;
        place-items: center;
        align-content: center;
        height: 100vh;
        letter-spacing: 0.1em;
        text-transform: uppercase;
}
.hexagon {
        margin-bottom: 1.5em;
        overflow: hidden;
        position: relative;
        width: 15em;
        height: 15em;
}
.hexagon__group, .hexagon__sector, .hexagon__sector:before, .hexagon__sector:after {
        position: absolute;
}
.hexagon__group {
        width: 100%;
        height: 100%;
}
.hexagon__group:nth-child(2) .hexagon__sector,
.hexagon__group:nth-child(2) .hexagon__sector:before,
.hexagon__group:nth-child(2) .hexagon__sector:after {
        animation-delay: calc(var(--dur) * -1/6);
}
.hexagon__group:nth-child(3) .hexagon__sector,
.hexagon__group:nth-chil.........完整代码请登录后点击上方下载按钮下载查看

网友评论0