css+html 实现 光晕 光圈
<style>
html {
height: 100%;
}
body {
height: 100%;
background-color: #000;
margin: 0;
padding: 0;
}
.lensflare {
position: relative;
overflow: hidden;
width: 100%;
min-height: 100%;
overflow: hidden;
}
.source-spread {
position: absolute;
background: radial-gradient(rgba(255, 225, 255, .05) 10%, rgba(255, 225, 255, .05) 30%, rgba(0, 0, 0, 0) 60%);
border-radius: 50%;
width: 2000px;
height: 2000px;
margin-top: -1000px;
margin-left: -1000px;
top: 14%;
left: 14%;
z-index: 0;
}
.source {
position: absolute;
background: radial-gradient(#fff 0%, rgba(243, 206, 205, .4) 35%, rgba(88, 88, 88, .3) 60%, rgba(0, 0, 0, 0) 70%);
border-radius: 50%;
width: 800px;
height: 800px;
margin-top: -400px;
margin-left: -400px;
top: 14%;
left: 14%;
z-index: 2;
}
.source-beam {
position: absolute;
background: radial-gradient(rgba(255, 255, 255, .3) 0%, rgba(0, 0, 0, 0) 70%);
border-radius: 50%;
width: 2200px;
height: 28px;
margin-top: -14px;
margin-left: -1100px;
top: 14%;
left: 14%;
z-index: 1;
}
.c1 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(189, 91, 87, 0) 40%, rgba(189, 91, 87, 0.5) 45%, rgba(189, 91, 87, 0) 50%, rgba(189, 91, 87, 0) 100%);
border-radius: 50%;
width: 400px;
height: 400px;
margin-top: -200px;
margin-left: -200px;
top: 14%;
left: 14%;
z-index: 3;
}
.c2 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(162, 196, 134, 0) 20%, rgba(162, 196, 134, 0.3) 43%, rgba(67, 85, 52, 0) 50%, rgba(67, 85, 52, 0) 100%);
border-radius: 50%;
width: 300px;
height: 300px;
margin-top: -150px;
margin-left: -150px;
top: 3%;
left: 3%;
z-index: 4;
}
.c3 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(31, 99, 255, .1) 1%, rgba(31, 99, 255, .13) 100%);
border-radius: 50%;
width: 160px;
height: 160px;
margin-top: -80px;
margin-left: -80px;
top: 46%;
left: 46%;
z-index: 5;
}
.c4 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(31, 99, 255, .1) 1%, rgba(31, 99, 255, .13) 100%);
border-radius: 50%;
width: 50px;
height: 50px;
margin-top: -25px;
margin-left: -25px;
top: 44%;
left: 44%;
z-index: 6;
}
.c5 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(31, 99, 255, .1) 1%, rgba(31, 99, 255, .13) 100%);
border-radius: 50%;
width: 88px;
height: 88px;
margin-top: -44px;
margin-left: -44px;
top: 47%;
left: 47%;
z-index: 7;
}
.c6 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(255, 129, 57, .15) 1%, rgba(255, 129, 57, .2) 100%);
border-radius: 50%;
width: 88px;
height: 88px;
margin-top: -44px;
margin-left: -44px;
top: 57%;
left: 57%;
z-index: 8;
}
.c7 {
position: absolute;
background: radial-gradient(rgba(255, 225, 255, .9) 10%, rgba(137, 255, 220, .4) 30%, rgba(0, 0, 0, 0) 60%);
border-radius: 50%;
width: 16px;
height: 16px;
margin-top: -8px;
margin-left: -8px;
top: 62%;
left: 62%;
z-index: 9;
}
.c8 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(255, 129, 57, .15) 10%, rgba(187, 129, 57, .20) 50%, rgba(255, 129, 57, .2) 60%, rgba(0, 0, 0, 0) 65%);
border-radius: 50%;
width: 190px;
height: 190px;
margin-top: -95px;
margin-left: -95px;
top: 71%;
left: 71%;
z-index: 10;
}
.c9 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15) 1%, rgba(255, 129, 57, .2) 100%);
border-radius: 50%;
width: 104px;
height: 104px;
margin-top: -52px;
margin-left: -52px;
top: 70%;
left: 70%;
z-index: 11;
}
.c10 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15) 1%, rgba(255, 129, 57, .2) 100%);
border-radius: 50%;
width: 60px;
height: 60px;
margin-top: -30px;
margin-left: -30px;
top: 72%;
left: 72%;
z-index: 12;
}
.c11 {
position: absolute;
background: radial-gradient(rgba(255, 225, 255, .9) 10%, rgba(137, 255, 220, .4) 30%, rgba(0, 0, 0, 0) 60%);
border-radius: 50%;
width: 22px;
height: 22px;
margin-top: -11px;
margin-left: -11px;
top: 75%;
left: 75%;
z-index: 13;
}
.c12 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(73, 168, 199, .15) 10%, rgba(100, 145, 42, .20) 30%, rgba(100, 145, 42, .2) 60%, rgba(0, 0, 0, 0) 65%);
border-radius: 50%;
width: 80px;
height: 80px;
margin-top: -40px;
margin-left: -40px;
top: 81%;
left: 81%;
z-index: 14;
}
.c13 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(0, 0, 0, .5) 4%, rgba(100, 145, 42, .2) 36%, rgba(163, 240, 63, .2) 38%, rgba(100, 145, 42, .1) 40%, rgba(189, 91, 87, 0) 43%);
border-radius: 50%;
width: 240px;
height: 240px;
margin-top: -120px;
margin-left: -120px;
top: 88%;
left: 88%;
z-index: 15;
}
.c14 {
position: absolute;
background: radial-gradient(ellipse at center, rgba(189, 91, 87, 0) 39%, rgba(94, 29, 191, 0.2) 41%, rgba(29, 71, 191, 0.2) 42%, rgba(191, 113, 29, 0.2) 43%, rgba(189, 91, 87, 0) 45%, rgba(189, 91, 87, 0) 100%);
border-radius: 50%;
width: 600px;
height: 600px;
margin-top: -300px;
margin-left: -300px;
top: 99%;
left: 99%;
z-index: 16;
}
</style>
<div class="lensflare">
<div class="source-spread"></div>
<div class="source"></div>
<div class="source-beam"></div>
<div class="c1"></div>
<div class="c2"></div>
<div class="c3"></div>
<div class="c4"></div>
<div class="c5"></div>
<div class="c6"></div>
<div class="c7"></div>
<div class="c8"></div>
<div class="c9"></div>
<div class="c10"></div>
<div class="c11"></div>
<div class="c12"></div>
<div class="c13"></div>
<div class="c14"></div>
</div>

css+html 实现 光晕 光圈的更多相关文章
- css 实现头像周围光圈动态效果
效果: html文件: <img class="userHead" src="xx/user.jpg"> css文件: .userHead{ wid ...
- Matplotlib数据可视化(3):文本与轴
在一幅图表中,文本.坐标轴和图像的是信息传递的核心,对着三者的设置是作图这最为关心的内容,在上一篇博客中虽然列举了一些设置方法,但没有进行深入介绍,本文以围绕如何对文本和坐标轴进行设置展开(对图像 ...
- 【原创】CSS高效开发实战:CSS 3、LESS、SASS、Bootstrap、Foundation --读书笔记(5)使用放射渐变制作光影效果
阴影效果通常用来表现光线投射在物体上的感觉,如果想制作一个如图5.19所示的文字光影效果,就可以使用背景的线性渐变进行构建. 图5.19可以看到有类似光束照射文字的效果,很好地突出了文字.这实现起来很 ...
- CSS中伪类及伪元素用法详解
CSS中伪类及伪元素用法详解 伪类的分类及作用: 注:该表引自W3School教程 伪元素的分类及作用: 接下来让博主通过一些生动的实例(之前的作业或小作品)来说明几种常用伪类的用法和效果,其他的 ...
- 快速学习html、css的经典笔记
HTML语言剖析 Html简介-目录 全写: HyperText Mark-up Language 译名: 超文本标识语言 简释:一种为普通文件中某些字句加上标示的语言,其目的在于运用标签(tag ...
- css中的大小、定位、轮廓相关属性
css中的大小.定位.轮廓相关属性 1.通过height.width属性控制组件大小 height:高度,可以设置任何有效的距离值: width:宽度,可以设置任何有效的属性值: max-height ...
- CSS3按钮鼠标悬浮光圈效果
1 .HTML相关知识点 HTML(超文本标记语言)是网页的核心.首先你要学会,不要害怕,HTML很容易学习的,刚开始多记多练,但是到最后还是要自己深入专研,简单的入门是很快,但学好HTML是成为W ...
- bootstrap学习总结-css样式设计(二)
首先,很感谢各位园友对我的支持,关于bootstrap的学习总结,我会持续更新,如果有写的不对的地方,麻烦各位给我指正出来哈.关于上篇文章,固定布局和流式布局很关键,如果还不太清楚的可以再看看我写的h ...
- cocos2d制作动态光晕效果基础——blendFunc
转自:http://www.2cto.com/kf/201207/144191.html 最近的项目要求动态光晕的效果. 何谓动态光晕?之前不知道别人怎么称呼这个效果, 不过在我看来,“动态光晕”这个 ...
随机推荐
- 推荐python入门书籍(爬虫方面)
学爬虫,需要理论与实践相结合,Python生态中的爬虫库多如牛毛,urllib.urllib2.requests.beautifulsoup.scrapy.pyspider都是爬虫相关的库,但是如果没 ...
- Django中出现:TemplateDoesNotExist at
setting文件中加入:
- 改变某个对象的CSS样式时,不要使用JS直接添加样式,
重绘: 使用js改变网页的背景颜色 浏览器会把整个网页的颜色重新在画一遍,导致性能降低 回流: 只要改变某个DOM对象的宽或者高,浏览器就会重新再计算网页结构,重新生成一次,导致性能严重降低. CSS ...
- javacv开发详解之1:调用本机摄像头视频
前言:javacv开发包是用于支持java多媒体开发的一套开发包,可以适用于本地多媒体(音视频)调用以及音视频,图片等文件后期操作(图片修改,音视频解码剪辑等等功能),这里只使用最简单的本地摄像头调用 ...
- LOJ P10163 Amount of Degrees 题解
每日一题 day6 打卡 Analysis 题目的意思是找在区间[x,y]之间满足能够由k个b的不同次幂相加得到的数的总数.这题的关键是转换进制,之前几道题我们保存的是数的每位数,其实也就是10进制, ...
- MyBatis中jdbcType=INTEGER、VARCHAR作用
Mapper.xml中 pid = #{pid,jdbcType=INTEGER} pid = #{pid} 都可以用 Mybatis中什么时候应该声明jdbcType? 当Mybatis不能自动识别 ...
- Qt--解析Json
一.QT5 Json简介 QT4中使用第三方库QJson解析JSON文件. QT5新增加了处理JSON的类,类均以QJson开头,包含在QtCore模块中.QT5新增加六个相关类: QJsonArra ...
- Linux操作系统常用命令合集——第一篇-文件和目录操作(40个命令)
一.选项和参数的区别 在经过上一次的系统安装后我们已经成功登陆,登陆LInux后,我们就可以在#或$符后面去输入命令,有的时候命令后面还会跟着“选项”(英文名:options)或“参数” ...
- Mybatis 向statement传入多个参数
1.一般情况下可以将多个参数放入Map,让Map作为statement的参数 public void update(@Param("fieldMap") Map<String ...
- OpenJudge 1.5.36:计算多项式的值
描述 假定多项式的形式为xn+xn-1+…+x2+x+1,请计算给定单精度浮点数x和正整数n值的情况下这个多项式的值. 输入输入仅一行,包括x和n,用单个空格隔开.x在float范围内,n <= ...