婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > html+css實現血輪眼輪回眼特效代碼

html+css實現血輪眼輪回眼特效代碼

熱門標簽:長春極信防封電銷卡公司 智能電銷機器人廣告語 電話機器人批發 愛巢地圖標注 貴陽ai外呼系統 crm外呼系統好不好 電銷外呼線路改不外呼線路 重慶人工智能電銷機器人報價 強訊外呼系統

效果(完整代碼在底部):

實現并不難,都是重復的代碼比較多。

實現(可跟著一步一步寫):

1. 先定義基本標簽:

<!-- 血輪眼 -->
    <div class="zuo">
        <!-- 眼睛最中間那個黑點 -->
        <div class="zuoZong">
            <!-- 三勾玉所在的圈 -->
            <div class="zuoYu">
                <!-- 三個勾玉 -->
                <span class="yu"></span>
                <span class="yu"></span>
                <span class="yu"></span>
            </div>
        </div>
    </div>
    <!-- 輪回眼 -->
    <div class="you">
        <!-- 眼睛最中間那個黑點 -->
        <div class="dian"></div>
             <!-- 3個輪回圈 -->
            <div class="youYu">                        
                <span class="quan" style="--r:2;"></span>
                <span class="quan" style="--r:3;"></span>
                <span class="quan" style="--r:4;"></span>
            </div>       
    </div>

2. 定義左右眼的基本css樣式:

.zuo , .you{ 
            width: 250px;
            height: 120px;
            background-color: rgb(255, 255, 255);
            border-bottom: 5px solid rgb(70, 70, 70);
            overflow: hidden;
            position: relative;
        }

border-bottom: 5px solid rgb(70, 70, 70); 給個灰色的眼底。
overflow:溢出隱藏。
position: relative; 相對定位。

3. 開始先定義血輪眼的基本樣式:

.zuo{
            transform: translateX(-135px);
            border-radius: 0 120px 0 120px;
            box-shadow: inset 3px 2px 3px  rgba(17, 17, 17, 0.8);
        }

transform: translateX(-135px); 向左偏移,讓兩眼分開。
border-radius:給兩個角設置弧度,形成眼睛形狀。
bos-shadowL給眼角一點陰影。

4. 設置眼球寬高等:

.zuo::after{
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            width: 95px;
            height: 95px;
            border-radius: 50%;
            border: 2px solid #000;
            animation: colour 2s linear forwards;
        }
        @keyframes colour{
            0%,30%{
                background-color: rgb(0, 0, 0);
            }
            100%{
                 background-color: rgb(255, 4, 4);
             }
         }

position: absolute; 絕對定位
top: 50%;
left: 50%;
transform: translate(-50%,-50%); 居中對齊。
animation:設置動畫,讓其變紅色。forward:繼承最后一幀的屬性。
background-color: rgb(0, 0, 0); 黑色
background-color: rgb(255, 4, 4); 紅色。

5. 設置眼球正中間的黑點,都是些定位大小啥的,然后設置動畫然它慢慢變大:

 .zuoZong{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            width: 0px;
            height: 0px;
            border-radius: 50%;
            background-color: rgb(0, 0, 0);
            z-index: 1;
            animation: da 3s linear forwards;
        }
        @keyframes da{
            100%{
                width: 15px;
            height: 15px;
            }
        }

6. 設置三勾玉所在的圈,設置動畫讓其顯示與旋轉:

.zuoYu{
            position: absolute;
            top: -25px;
            left: -25px;
            bottom: -25px;
            right: -25px;
            border-radius: 50%;
            border: 2px solid rgb(0, 0, 0);
            animation: zhuan 2s linear 2s forwards;
            opacity: 0;
        }
        @keyframes zhuan{
           
            100%{
                opacity: 1;
                transform: rotate(720deg);
            }
        }

position: absolute;
top: -25px;
left: -25px;
bottom: -25px;
right: -25px; 大小。
border-radius: 50%;圓形。
border: 2px solid rgb(0, 0, 0); 黑色邊框。
opacity:0;透明度為0;
transform: rotate(720deg); 旋轉720度。

7. 制作三勾玉,先做一個圓,再用雙偽類制作一個圓弧,兩者結合就是勾玉了:

.zuoYu .yu{
             position: absolute;
             width: 15px;
             height: 15px;
             border-radius: 50%;
             background-color: rgb(0, 0, 0);

        }
        .zuoYu .yu::after{
            content: '';
            position: absolute;
            top: -6px;
            left: -1px;
            width: 6px;
            height: 20px;
            border-radius: 50%;
            border-left: 6px solid rgb(0, 0, 0);
        }

border-radius: 50%;
border-left: 6px solid rgb(0, 0, 0);
先讓偽類為圓,再只設置一條邊框,圓弧形成,再定位在父元素上,形成勾玉。

8. 給勾玉設置動畫,讓其從最中間變大旋轉到勾玉所在的圈:

.zuoYu .yu:nth-child(1){
            animation: yu1 2s ease-in 2s  forwards;
        }
        @keyframes yu1{
            0%{
                opacity: 0;
                left: 50%;
                top: 50%;                
                transform:translate(-50%,-50%)  scale(0.1) ;
            }
            100%{
                left: 50%;
                top: -9%;
                transform: scale(1) rotate(80deg);  
            }
        }

left: 50%;
top: 50%; 在最中間。
opacity:透明。
scale(0.1);縮小。
100%{…}到對應位置,同時變不透明和放大成正常大小。

9. 一樣的,給其它兩個勾玉動畫:

.zuoYu .yu:nth-child(2){
            animation: yu2 2s ease-in 2s forwards; 
        }
        @keyframes yu2{
            0%{
                opacity: 0;
                left: 50%;
                top: 50%;
                
                transform: translate(-50%,-50%) scale(0.1) ;
            }
            100%{
                top: 60%;
                left: -9%;
                transform: scale(1) rotate(-60deg);  
            }
        }
        .zuoYu .yu:nth-child(3){          
            animation: yu3 2s ease-in 2s forwards;
        }
        @keyframes yu3{
            0%{
                opacity: 0;
                right: 50%;
                top: 50%;
                
                transform: translate(-50%,-50%) scale(0.1);
            }
            100%{
                top: 60%;
                right: -9%;
                transform: scale(1) rotate(180deg);  
            }
        }

10.給兩個眼睛都設置一個白點,相當于反光效果吧,至此血輪眼做完了:

.zuo::before,.you::before{
            content: '';
            position: absolute;
            left: 38%;
            top: 30%;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgb(255, 255, 255);
            z-index: 10;
        }

position: absolute;
left: 38%;
top: 30%; 定位相應的位置。
background-color: rgb(255, 255, 255); 白色。
z-index: 10; 設置為10,顯示在最上層。

11.設置輪回眼基本css樣式,跟血輪眼一樣:

.you{
            transform: translateX(135px);
            border-radius:  120px 0 120px 0;
            box-shadow: inset -3px 2px 3px  rgba(17, 17, 17, 0.8);
        }

12.設置眼球寬高等:

.you::after{
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            width: 95px;
            height: 95px;
            border-radius: 50%;
            border: 2px solid #000;
            animation: youcolor 2s linear forwards;
         }
         @keyframes youcolor{
            0%,30%{
                background-color: rgb(0, 0, 0);
            }
            100%{
                 background-color: rgb(144, 130, 183);
             
             }
         }

position: absolute; 絕對定位
top: 50%;
left: 50%;
transform: translate(-50%,-50%); 居中對齊。
animation:設置動畫,讓其變紫色。forward:繼承最后一幀的屬性。
background-color: rgb(0, 0, 0); 黑色
background-color: rgb(144, 130, 183); 紫色。

13. 設置眼球最中間的黑點,跟血輪眼也差不多:

.dian{       
             position: absolute;
            top: 50%;
            left: 50%;              
            background-color: #000;
            transform: translate(-50%,-50%);
            border-radius: 50%;
            z-index: 10;
            animation: youda 3s linear forwards;
         }
         @keyframes youda{
             0%{
                height: 0px;
            width: 0px;
             }
             100%{
                height: 15px;
            width: 15px;
             }
         }

14. 設置輪回眼每個圈,同時設置動畫讓其變大:

.youYu{
            position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%,-50%);
       }
       .quan{
           position: absolute;
           border-radius: 50%;
           border: 2px solid #000;
           z-index: calc(1 - var(--r));
           animation: zhi 2s ease-out 2s forwards;
       }
       @keyframes zhi{
           0%{
            top: calc(var(--r) * 1px);
           left: calc(var(--r) * 1px);
           right: calc(var(--r) * 1px);
           bottom: calc(var(--r) * 1px);
           }
           100%{
            top: calc(var(--r) * -35px);
           left: calc(var(--r) * -35px);
           right: calc(var(--r) * -35px);
           bottom: calc(var(--r) * -35px);

               background-color: rgb(187, 177, 214);
           }
       }

z-index: calc(1 - var(–r)); 計算,讓最開始的圈顯示在最上層。
animation:設置動畫,讓輪回圈慢慢變大,同時變成紫色。

完整代碼:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body{
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #000;
        }
        .zuo , .you{ 
            width: 250px;
            height: 120px;
            background-color: rgb(255, 255, 255);
            border-bottom: 5px solid rgb(70, 70, 70);
            overflow: hidden;
            position: relative;
        }
         
        .zuo{
            transform: translateX(-135px);
            border-radius: 0 120px 0 120px;
            box-shadow: inset 3px 2px 3px  rgba(17, 17, 17, 0.8);
        }
        .zuo::after{
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            width: 95px;
            height: 95px;
            border-radius: 50%;
            border: 2px solid #000;
            animation: colour 2s linear forwards;
        }
        @keyframes colour{
            0%,30%{
                background-color: rgb(0, 0, 0);
            }
            100%{
                 background-color: rgb(255, 4, 4);
             }
         }

        .zuoZong{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            width: 0px;
            height: 0px;
            border-radius: 50%;
            background-color: rgb(0, 0, 0);
            z-index: 1;
            animation: da 3s linear forwards;
        }
        @keyframes da{
            100%{
                width: 15px;
            height: 15px;
            }
        }
        .zuoYu{
            position: absolute;
            top: -25px;
            left: -25px;
            bottom: -25px;
            right: -25px;
            border-radius: 50%;
            border: 2px solid rgb(0, 0, 0);
            animation: zhuan 2s linear 2s forwards;
            opacity: 0;
        }
        @keyframes zhuan{
           
            100%{
                opacity: 1;
                transform: rotate(720deg);
            }
        }
        .zuoYu .yu{
             position: absolute;
             width: 15px;
             height: 15px;
             border-radius: 50%;
             background-color: rgb(0, 0, 0);

        }
        .zuoYu .yu::after{
            content: '';
            position: absolute;
            top: -6px;
            left: -1px;
            width: 6px;
            height: 20px;
            border-radius: 50%;
            border-left: 6px solid rgb(0, 0, 0);
        }
        .zuoYu .yu:nth-child(1){
            animation: yu1 2s ease-in 2s  forwards;
        }
        @keyframes yu1{
            0%{
                opacity: 0;
                left: 50%;
                top: 50%;
                
                transform:translate(-50%,-50%)  scale(0.1) ;
            }
            100%{
                left: 50%;
                top: -9%;
                transform: scale(1) rotate(80deg);  
            }
        }       
        .zuoYu .yu:nth-child(2){
            animation: yu2 2s ease-in 2s forwards; 
        }
        @keyframes yu2{
            0%{
                opacity: 0;
                left: 50%;
                top: 50%;
                
                transform: translate(-50%,-50%) scale(0.1) ;
            }
            100%{
                top: 60%;
                left: -9%;
                transform: scale(1) rotate(-60deg);  
            }
        }
        .zuoYu .yu:nth-child(3){          
            animation: yu3 2s ease-in 2s forwards;
        }
        @keyframes yu3{
            0%{
                opacity: 0;
                right: 50%;
                top: 50%;
                
                transform: translate(-50%,-50%) scale(0.1);
            }
            100%{
                top: 60%;
                right: -9%;
                transform: scale(1) rotate(180deg);  
            }
        }
        .zuo::before,.you::before{
            content: '';
            position: absolute;
            left: 38%;
            top: 30%;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgb(255, 255, 255);
            z-index: 10;
        }
        .you{
            transform: translateX(135px);
            border-radius:  120px 0 120px 0;
            box-shadow: inset -3px 2px 3px  rgba(17, 17, 17, 0.8);
/*             filter: drop-shadow( 8px -5px 3px  rgb(216, 59, 59));
 */        }
         .you::after{
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            width: 95px;
            height: 95px;
            border-radius: 50%;
            border: 2px solid #000;
            animation: youcolor 2s linear forwards;
         }
         @keyframes youcolor{
            0%,30%{
                background-color: rgb(0, 0, 0);
            }
            100%{
                 background-color: rgb(144, 130, 183);
             
             }
         }
         
         .dian{       
             position: absolute;
            top: 50%;
            left: 50%;              
            background-color: #000;
            transform: translate(-50%,-50%);
            border-radius: 50%;
            z-index: 10;
            animation: youda 3s linear forwards;
         }
         @keyframes youda{
             0%{
                height: 0px;
            width: 0px;
             }
             100%{
                height: 15px;
            width: 15px;
             }
         }
         .youYu{
            position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%,-50%);
       }
       .quan{
           position: absolute;
           border-radius: 50%;
           border: 2px solid #000;
           z-index: calc(1 - var(--r));
           animation: zhi 2s ease-out 2s forwards;
       }
       @keyframes zhi{
           0%{
            top: calc(var(--r) * 1px);
           left: calc(var(--r) * 1px);
           right: calc(var(--r) * 1px);
           bottom: calc(var(--r) * 1px);
           }
           100%{
            top: calc(var(--r) * -35px);
           left: calc(var(--r) * -35px);
           right: calc(var(--r) * -35px);
           bottom: calc(var(--r) * -35px);

               background-color: rgb(187, 177, 214);
           }
       }
    </style>
</head>
<body>
    <!-- 血輪眼 -->
    <div class="zuo">
        <!-- 眼睛最中間那個黑點 -->
        <div class="zuoZong">
            <!-- 三勾玉所在的圈 -->
            <div class="zuoYu">
                <!-- 三個勾玉 -->
                <span class="yu"></span>
                <span class="yu"></span>
                <span class="yu"></span>
            </div>
        </div>
    </div>
    <!-- 輪回眼 -->
    <div class="you">
        <!-- 眼睛最中間那個黑點 -->
        <div class="dian"></div>
             <!-- 3個輪回圈 -->
            <div class="youYu">                        
                <span class="quan" style="--r:2;"></span>
                <span class="quan" style="--r:3;"></span>
                <span class="quan" style="--r:4;"></span>
            </div>       
    </div>
</body>
</html>

到此這篇關于html+css實現血輪眼輪回眼特效 的文章就介紹到這了,更多相關html血輪眼輪回眼特效 內容請搜索腳本之家以前的文章或繼續瀏覽下面的相關文章,希望大家以后多多支持腳本之家!

標簽:山南 陜西 吳忠 內蒙古 上海 保定 廣安 清遠

巨人網絡通訊聲明:本文標題《html+css實現血輪眼輪回眼特效代碼》,本文關鍵詞  html+css,實現,血輪眼,輪回,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《html+css實現血輪眼輪回眼特效代碼》相關的同類信息!
  • 本頁收集關于html+css實現血輪眼輪回眼特效代碼的相關信息資訊供網民參考!
  • 推薦文章
    婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av
    色婷婷国产精品综合在线观看| 精品精品欲导航| 国产亚洲欧美色| 欧美三级电影一区| 国产精品一区二区三区四区| 五月激情综合色| 亚洲欧美色一区| 国产日韩高清在线| 欧美一级搡bbbb搡bbbb| 欧美在线|欧美| 99久久久久久99| 99热99精品| 成人爱爱电影网址| 粉嫩欧美一区二区三区高清影视| 天天av天天翘天天综合网色鬼国产| 日韩理论片一区二区| 国产精品久久久久久久久动漫 | 国产乱人伦精品一区二区在线观看| 日韩精品一二区| 午夜欧美2019年伦理| 亚洲二区视频在线| 亚洲成人午夜影院| 亚洲综合久久久| 亚洲一区免费视频| 日日夜夜免费精品视频| 日韩经典一区二区| 免费成人在线观看视频| 久久国产欧美日韩精品| 精品一区二区在线播放| 精品综合免费视频观看| 国产精品白丝av| 成人av网址在线| 日本久久电影网| 欧洲激情一区二区| 91精品综合久久久久久| 日韩一区二区三区精品视频 | 国产精品美女久久久久久久网站| 国产精品丝袜一区| 亚洲激情成人在线| 日本视频在线一区| 国产高清在线观看免费不卡| 白白色 亚洲乱淫| 色欧美乱欧美15图片| 欧美性三三影院| 欧美xxxxxxxx| 中文字幕亚洲一区二区va在线| 亚洲激情图片一区| 美女国产一区二区| 国产成人亚洲精品狼色在线| 91亚洲精品久久久蜜桃网站| 欧美久久一二区| 国产无一区二区| 亚洲国产综合在线| 国产suv一区二区三区88区| 日本精品视频一区二区三区| 日韩欧美亚洲一区二区| 中文字幕一区二区三区视频| 日韩二区三区四区| 99免费精品在线| 精品国产精品网麻豆系列| 亚洲色欲色欲www| 麻豆久久久久久| 色狠狠一区二区三区香蕉| 精品奇米国产一区二区三区| 一区二区三区在线免费观看| 麻豆精品一区二区三区| 91精品福利视频| 国产无一区二区| 亚洲成人高清在线| 成人av在线电影| 91精品国产麻豆| 久久久久成人黄色影片| 亚洲国产你懂的| 国产成人午夜精品5599| 欧美日韩国产一二三| 精品成人佐山爱一区二区| 亚洲免费在线观看视频| 久久不见久久见免费视频7| 91啪亚洲精品| 国产精品亲子伦对白| 国产一区二区三区免费看| aaa国产一区| 久久九九久精品国产免费直播| 五月天久久比比资源色| 91豆麻精品91久久久久久| 国产精品毛片久久久久久 | 99精品国产99久久久久久白柏| 亚洲精品在线免费观看视频| 五月激情综合网| 在线一区二区三区| 国产精品欧美一区二区三区| 国产成人免费视频网站| 精品av综合导航| 国产麻豆精品久久一二三| 精品国产乱码久久久久久牛牛| 免费黄网站欧美| 欧美精品aⅴ在线视频| 亚洲亚洲人成综合网络| 91黄色免费观看| 一区二区三区四区在线播放 | 亚洲女同女同女同女同女同69| 成人在线一区二区三区| 国产精品欧美经典| 99久久精品国产毛片| 亚洲欧美福利一区二区| 在线免费av一区| 日韩精品一卡二卡三卡四卡无卡| 欧美精品免费视频| 男女性色大片免费观看一区二区| 欧美日韩小视频| 另类小说综合欧美亚洲| 精品sm在线观看| 成人午夜av电影| 亚洲视频免费在线| 欧美视频在线播放| 图片区小说区区亚洲影院| 欧美一区二区三区电影| 国产激情一区二区三区| 久久九九久久九九| 波多野洁衣一区| 亚洲欧美日韩在线不卡| 欧美久久一区二区| 国产伦精品一区二区三区免费迷| 久久久久久久一区| 日本久久电影网| 日本中文一区二区三区| 久久伊人中文字幕| 99久久婷婷国产综合精品电影| 一区二区三区中文字幕精品精品| 欧美一区二区在线免费播放| 国产一区二区精品久久91| 国产精品美女久久久久久2018 | 日韩三级精品电影久久久| 亚洲国产精品久久不卡毛片| 日韩欧美亚洲国产另类| 岛国av在线一区| 亚洲午夜激情网站| 日韩欧美一区二区免费| 99久久精品久久久久久清纯| 丝袜诱惑制服诱惑色一区在线观看| www国产精品av| 欧美色窝79yyyycom| 国产精品一区二区三区乱码| 一区二区在线观看av| 欧美一区二区三区四区五区 | 日韩欧美高清一区| 99在线精品一区二区三区| 日韩国产精品久久| 国产精品私人影院| 日韩欧美www| 欧美性一二三区| 成人开心网精品视频| 日本美女一区二区三区| 亚洲丝袜另类动漫二区| 精品久久久久香蕉网| 欧美日本在线播放| 一本大道久久a久久综合| 精品一区二区成人精品| 五月天中文字幕一区二区| 中文字幕不卡的av| 精品国产凹凸成av人导航| 欧美日韩国产一级| 在线观看一区二区视频| 成人网在线免费视频| 国模套图日韩精品一区二区 | 国产99久久久国产精品潘金 | 调教+趴+乳夹+国产+精品| 中文字幕免费不卡| 日韩欧美成人午夜| 欧美精品黑人性xxxx| 色天天综合久久久久综合片| 国产美女久久久久| 视频一区中文字幕国产| 亚洲综合免费观看高清在线观看| 欧美高清在线视频| 精品人在线二区三区| 欧美日韩一区二区不卡| 欧美午夜理伦三级在线观看| 在线观看成人小视频| 岛国av在线一区| 成人免费看黄yyy456| 韩国v欧美v日本v亚洲v| 亚洲一卡二卡三卡四卡五卡| 亚洲欧洲国产日本综合| 国产精品日韩成人| 国产精品麻豆久久久| 欧美xxxxx裸体时装秀| 在线不卡中文字幕播放| 日韩一区二区免费电影| 在线播放/欧美激情| 欧美一区二区视频在线观看2020 | 亚洲大片一区二区三区| 亚洲高清免费视频| 亚洲综合色在线| 亚洲一区二区三区中文字幕| 午夜视频在线观看一区| 午夜精品一区二区三区免费视频 | 中文字幕中文乱码欧美一区二区| 亚洲免费在线观看视频| 亚洲精品国产一区二区精华液 |