css实现环绕文字发出光圈
来源:互联网 发布:网络摄像机复位按钮 编辑:程序博客网 时间:2024/05/21 21:33
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>transparent</title>
<style>
body {
background: black;
}
/* .div-border {
background: red;
border-width: 50px;
display: inline-block;
border-style: solid;
height: 500px;
} */
.wrap{
height: 500px;
}
.shan {
position: absolute;
top: 0px;
left: 0px;
right:0px;
bottom: 0px;
margin: auto;
/* border-width: 100px; */
/* border-style: solid; */
/* border-color: rgba(255, 0, 0, 0.76) #15ff00 rgb(0, 204, 255) rgb(255, 0, 200); */
background: rgb(255, 230, 0);
width: 100px;
height: 100px;
border-radius: 100%;
animation: show-animation 2s ease-in-out 0s infinite;
-moz-animation: show-animation 2s ease-in-out 0s infinite;/*适配火狐浏览器*/
-webkit-animation: show-animation 2s ease-in-out 0s infinite;/*适配谷歌和Safari*/
}
@keyframes show-animation{
0%{
transform: scale(0);
-moz-transform: scale(0);
-webkit-transform: scale(0);
}
100%{
transform: scale(1);
-moz-transform: scale(1);
-webkit-transform: scale(1);
opacity: 0;
}
}
p {
display: inline-block;
/* background: red; */
color: #fff;
width: 100px;
height: 20px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -50px;
margin-top: -10px;
}
</style>
</head>
<body>
<div class="div-border">
</div>
<div class="wrap">
<div class="shan"></div>
<p>哈喽,你好</p>
</div>
</body>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>transparent</title>
<style>
body {
background: black;
}
/* .div-border {
background: red;
border-width: 50px;
display: inline-block;
border-style: solid;
height: 500px;
} */
.wrap{
height: 500px;
}
.shan {
position: absolute;
top: 0px;
left: 0px;
right:0px;
bottom: 0px;
margin: auto;
/* border-width: 100px; */
/* border-style: solid; */
/* border-color: rgba(255, 0, 0, 0.76) #15ff00 rgb(0, 204, 255) rgb(255, 0, 200); */
background: rgb(255, 230, 0);
width: 100px;
height: 100px;
border-radius: 100%;
animation: show-animation 2s ease-in-out 0s infinite;
-moz-animation: show-animation 2s ease-in-out 0s infinite;/*适配火狐浏览器*/
-webkit-animation: show-animation 2s ease-in-out 0s infinite;/*适配谷歌和Safari*/
}
@keyframes show-animation{
0%{
transform: scale(0);
-moz-transform: scale(0);
-webkit-transform: scale(0);
}
100%{
transform: scale(1);
-moz-transform: scale(1);
-webkit-transform: scale(1);
opacity: 0;
}
}
p {
display: inline-block;
/* background: red; */
color: #fff;
width: 100px;
height: 20px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -50px;
margin-top: -10px;
}
</style>
</head>
<body>
<div class="div-border">
</div>
<div class="wrap">
<div class="shan"></div>
<p>哈喽,你好</p>
</div>
</body>
</html>
WEB前端学习交流群21 598399936
阅读全文
0 0
- css实现环绕文字发出光圈
- css实现文字环绕
- CSS实现文字环绕图片效果
- HTML/CSS实现文字环绕图片布局
- css文字环绕效果
- 实现文字环绕图片
- 如何用CSS实现文字环绕图片的效果
- 利用css的clear属性实现文字环绕图片效果
- 【CSS】用shape完美实现文字环绕 circle、ellipse、polygon
- css文字环绕图片效果
- 如何实现文字环绕图片
- GDIplus实现带光圈文字输出
- CSS文字环绕图片,文中图效果
- iOS实现文字环绕图片textView布局
- CSS Shapes实现元素滚动自动环绕
- CSS用DIV做不规则形状的环绕文字
- 浅谈CSS文字环绕图片——自定义图片位置
- 如何在ppt里面实现文字环绕和分栏?
- jsp-Cookie与HttpSession对象
- FCN网络训练 SIFTFLOW数据集
- 程序之路
- nswbmw/N-blog学习笔记20171218
- 请求页框API简介
- css实现环绕文字发出光圈
- 初学JAVA,感想二三
- eclipse
- python re正则表达式说明文档
- 使用java编写kafka的生产者
- c++之static和const
- [Network] 计算机网络基础知识总结
- 【scala 代码片段3】轻松入门scala--集合的操作交并补
- linux---strace