这篇文章关键介绍了html css奥义之血轮进化轮回究极无敌眼 ,文中根据案例编码给大伙儿介绍的十分详尽,对大伙儿的学习培训或工作中具备一定的参考借鉴使用价值,必须的盆友能够参考下

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

watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=

实现并不难,都是重复的代码比较多。

实现(可跟着一步一步写):

  1. 先定义基本标签:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

<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>
  1. 定义左右眼的基本css样式:

1
2
3
4
5
6
7
8
.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; 相对定位。

  1. 开始先定义血轮眼的基本样式:

1
2
3
4
5
.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给眼角一点阴影。

  1. 设置眼球宽高等:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.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); 红色。

  1. 设置眼球正中间的黑点,都是些定位大小啥的,然后设置动画然它慢慢变大:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.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;
}
}

  1. 设置三勾玉所在的圈,设置动画让其显示与旋转:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.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度。

  1. 制作三勾玉,先做一个圆,再用双伪类制作一个圆弧,两者结合就是勾玉了:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.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);
先让伪类为圆,再只设置一条边框,圆弧形成,再定位在父元素上,形成勾玉。

  1. 给勾玉设置动画,让其从最中间变大旋转到勾玉所在的圈:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.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%{…}到对应位置,同时变不透明和放大成正常大小。

  1. 一样的,给其它两个勾玉动画:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.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.给两个眼睛都设置一个白点,相当于反光效果吧,至此血轮眼做完了:

1
2
3
4
5
6
7
8
9
10
11
.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样式,跟血轮眼一样:

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

12.设置眼球宽高等:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.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); 紫色。

  1. 设置眼球最中间的黑点,跟血轮眼也差不多:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.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;
}
}

  1. 设置轮回眼每个圈,同时设置动画让其变大:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.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:设置动画,让轮回圈慢慢变大,同时变成紫色。

完整代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277

Document

/* 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: http://www.qlyl1688.com/product_ycxsys.html 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>

到此这篇有关html css奥义之血轮进化轮回究极无敌眼的文章就详细介绍到这了,请关注我,爱你们哦宝贝们。

html css奥义之血轮进化轮回究极无敌眼相关推荐

  1. 轮回眼css,纯CSS如何实现血轮眼+轮回眼特效(代码详解)

    本篇文章给大家介绍一下使用纯CSS实现血轮眼+轮回眼特效的方法.有一定的参考价值,有需要的朋友可以参考一下,希望对你们有所助. 效果(完整代码在底部) 其实实现并不难,都是重复的代码比较多. 实现(可 ...

  2. 血轮眼轮回眼特效 html+css

    效果(完整代码在底部): 实现并不难,都是重复的代码比较多. 实现(可跟着一步一步写): 1. 先定义基本标签: <!-- 血轮眼 --><div class="zuo&q ...

  3. html+css 血轮眼轮回眼特效!

    文章目录 html+css 血轮眼轮回眼特效! 1.首先请看效果图(完整代码在最底部) 2.实现(可以跟着一步一步写来实现) 1.先定义基本的标签结构 2.定义左右眼多基本样式 3.开始先定义血轮眼的 ...

  4. 基于css和js的轮播效果图实现

    基于css和js的轮播效果图实现 第一篇:效果图 1.先啥也不说直接上效果图 第二篇:详细讲解 1.  建立容器  #box 给其设置相关属性(注意:overflow:hidden;) 2.  Box ...

  5. vue组件制作专题 - (mpvue专用)在mpvue中纯自己写css实现简单左右轮播

    在mpvue中纯自己写css实现简单左右轮播 CSDN:jcLee95 邮箱:291148484@163.com 项目中,在src目录下的components目录下新建一个新文件并重命名为jcmv-c ...

  6. html+css+js 实现图片轮播效果

    html+css+js 实现图片轮播效果 图片轮播效果: 会自动 向左 || 向右 切换图片 能手动点击按钮切换图片 多用于商品展览等等 --首先我们创建一个盒子进行展览,然后一个< ul> ...

  7. html如何实现图片轮流播放,纯css如何实现图片轮播

    纯css如何实现图片轮播 发布时间:2020-07-29 10:23:33 来源:亿速云 阅读:119 作者:Leah 纯css如何实现图片轮播?针对这个问题,这篇文章详细介绍了相对应的分析和解答,希 ...

  8. 使用HTML+CSS制作网易云轮播

    使用HTML和CSS制作网易云轮播 今天现来说说使用CSS的动画技术来实现轮播.现看看效果图         这里是八张图片渐入渐出的效果轮播. html代码: <!DOCTYPE html&g ...

  9. 用Python写血轮眼

    用python写血轮眼 import turtle turtle.title('血轮眼') #画布标题 turtle.bgcolor("green") #背景颜色 turtle.p ...

最新文章

  1. Elasticsearch之深入了解Search的运行机制
  2. android报错res\drawable-xhdpi\ic_Dianhua.png: Invalid file name: must contain only [a-z0-9_.]
  3. python生成随机数代码_Python中产生随机数
  4. 设计模式 - 命令模式(command pattern) 撤销(undo) 具体解释
  5. 大咖开讲:一小时学会.NET MVC开发的那些事儿
  6. java蓝桥杯算法训练 相l邻字母(题解)
  7. QT关于Excel的操作
  8. LabView实战笔记——贪吃蛇游戏设计
  9. 如何把微信和支付宝的收款二维码合成一个?
  10. 基于pytorch计算ssim和ms-ssim
  11. js点击使内容变成可编辑状态
  12. 网络操作系统和应用服务器考点,网络操作系统与应用服务器配置
  13. SSRF 攻击PHP-FPM(FastCGI 攻击):学习总结仅供参考
  14. Codepage的定义和历史
  15. npm run build 打包爬坑记(2)生产、测试打包
  16. 视频时序与BT1120的关系
  17. Pandas时间序列数据处理和datetime模块详细教程
  18. keil c语言字符串赋值,keil c指针变量赋值 请指点下迷津
  19. 容器适配器之stack用法总结
  20. 修改注册表恢复IE设置(转)

热门文章

  1. win10如何打开计算机端口,win10系统开启计算机端口的操作方法
  2. 摩拜联手高通中移动 剑指最大物联平台步子太大?
  3. 详解桂枝汤并说说流行的感冒偏方
  4. 依赖Api的exclude行为失效
  5. ZCash bellman版本 Groth16代码解析
  6. windows下用Python把pdf文件转化为图片(png高清)
  7. [转]NodeJS初探
  8. bios里excluded from boot order无法重装系统
  9. Android Studio 文件Excluded不显示找回
  10. 什么是 去中心化自治组织(DAO)