锥形渐变碟盘动画效果

代码语言:html

所属分类:布局界面

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>BFW NEW PAGE</title>

    <style>
        body {
            background: #0c2b3c;
        }
@keyframes shake {
            0% {
                transform: rotate(0);
            }
            25% {
                transform: rotate(20deg);
            }
            50% {
                transform: rotate(-20deg);
            }
            75% {
                transform: rotate(20deg);
            }
            100% {
                transform: rotate(0);
            }
        }
        .pokeball {
            position: absolute;
            left: 10%;
            top: 35%;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background-image: conic-gradient(#db372f 25%, #ccd2d6 0 45%, #dadee2 0 45%, #e8ebed 0 55%, #f6f7f8 0 65%, #fff 0 75%, #df4c45 25%);
        }
        .pokeball:before {
            content: "";
            position: absolute;
            top: 37%;
            left: 37%;
            width: 20%;
            height: 20%;
            border-radius: 50%;
            background: conic-gradient(#fff 35%, #f6f7f8 0 45%, #e8ebed 0 55%, #ccd2d6 0 65%, #afb9c0 0 75%, #fff 25%);
            border: 7px solid #0c2b3c;
        }
        .pokeball:hover {
            cursor: pointer;
            animation-name: shake;
            animation-duration: 1s;
            animation-iteration-count: 2;
            animation-timing-function: ease-in-out;
        }
        .pokeball:active:before {
            top: 38%;
            background: white;
        }
        .greatball {
            position: absolute;
            left: 30%;
            top: 35%;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background-image: conic-gradient(#33a4ff 25%, #ccd2d6 0 45%, #dadee2 0 45%, #e8ebed 0 55%, #f6f7f8 0 65%, #fff 0 75%, #4cafff 25%);
        }
        .greatball:before {
            content: "";
            position: absolute;
            top: 37%;
            left: 37%;
            width: 20%;
            height: 20%;
            border-radius: 50%;
            background: conic-gradient(#fff 35%, #f6f7f8 0 45%, #e8ebed 0 55%, #ccd2d6 0 65%, #afb9c0 0 75%, #fff 25%);
            border: 7px solid #0c2b3c;
        }
        .greatball:hover {
            cursor: pointer;
            animation-name: shake;
            animation-duration: 1s;
            animation-iteration-count: 2;
           .........完整代码请登录后点击上方下载按钮下载查看

网友评论0