CSS

语言:

CSSSCSS

确定

/* General Demo Style */

@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);

@font-face {

font-family: 'codropsicons';

src: url('/fonts/codropsicons/codropsicons.eot');

src: url('/fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'), url('/fonts/codropsicons/codropsicons.woff') format('woff'), url('/fonts/codropsicons/codropsicons.ttf') format('truetype'), url('/fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');

font-weight: normal;

font-style: normal;

}

*,

*:after,

*:before {

-webkit-box-sizing: border-box;

-moz-box-sizing: border-box;

box-sizing: border-box;

}

body,

html {

font-size: 100%;

padding: 0;

margin: 0;

}

/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */

.clearfix:before,

.clearfix:after {

content: " ";

display: table;

}

.clearfix:after {

clear: both;

}

body {

font-family: 'Lato', Calibri, Arial, sans-serif;

color: #89867e;

background: #fcf6f0;

}

a {

color: #888;

text-decoration: none;

}

a:hover,

a:active {

color: #333;

}

/* Header Style */

.main,

.container > header {

margin: 0 auto;

padding: 2em;

}

.container > header {

text-align: center;

background: rgba(0, 0, 0, 0.01);

}

.container > header h1 {

font-size: 2.625em;

line-height: 1.3;

margin: 0;

font-weight: 300;

}

.container > header span {

display: block;

font-size: 60%;

color: #ceccc6;

padding: 0 0 0.6em 0.1em;

}

/* Main Content */

.main {

max-width: 69em;

min-height: 15em;

}

p.support {

font-weight: 700;

text-align: center;

padding: 2em;

}

/* To Navigation Style */

.codrops-top {

background: #fff;

background: rgba(255, 255, 255, 0.6);

text-transform: uppercase;

width: 100%;

font-size: 0.69em;

line-height: 2.2;

}

.codrops-top a {

padding: 0 1em;

letter-spacing: 0.1em;

color: #888;

display: inline-block;

}

.codrops-top a:hover {

background: rgba(255, 255, 255, 0.95);

color: #333;

}

.codrops-top span.right {

float: right;

}

.codrops-top span.right a {

float: left;

display: block;

}

.codrops-icon:before {

font-family: 'codropsicons';

margin: 0 4px;

speak: none;

font-style: normal;

font-weight: normal;

font-variant: normal;

text-transform: none;

line-height: 1;

-webkit-font-smoothing: antialiased;

}

.codrops-icon-drop:before {

content: "\e001";

}

.codrops-icon-prev:before {

content: "\e004";

}

.codrops-icon-archive:before {

content: "\e002";

}

.codrops-icon-next:before {

content: "\e000";

}

.codrops-icon-about:before {

content: "\e003";

}

/* Demo Buttons Style */

.codrops-demos {

padding-top: 1em;

font-size: 0.9em;

}

.codrops-demos a {

display: inline-block;

margin: 0.5em;

padding: 0.7em 1.1em;

border: 3px solid #b1aea6;

color: #b1aea6;

font-weight: 700;

}

.codrops-demos a:hover,

.codrops-demos a.current-demo,

.codrops-demos a.current-demo:hover {

border-color: #89867e;

color: #89867e;

}

@media screen and (max-width: 25em) {

.codrops-icon span {

display: none;

}

}

.drop {

background: rgba(255, 255, 245, 1);

border: 4px solid rgba(255, 245, 235, 1);

border-radius: 100%;

box-shadow: inset -0.1em 0 2em 0.5em rgba(255, 255, 255, 0.5), inset -0.1em 0 0.5em 0 rgba(0, 0, 0, 0.8);

position: relative;

margin: 0 auto;

width: 15em;

height: 15em;

overflow: hidden;

-webkit-transform-style: preserve-3d;

transform-style: preserve-3d;

}

.drop:before,

.drop:after {

content: "";

display: block;

position: absolute;

}

.drop:before {

background: rgba(167, 217, 234, 1);

border-radius: 100%;

box-shadow: 0 0 0 0.1em rgba(167, 217, 234, 0.8), 0 0 0 0.15em rgba(167, 217, 234, 0.8), 0 0 0 0.2em rgba(167, 227, 234, 0.8), 0 0 0 0.25em rgba(167, 227, 234, 0.8), 0 0 0 0.3em rgba(167, 227, 234, 0.8), 0 0 0 0.35em rgba(167, 227, 234, 0.8), 0 0 0 0.4em rgba(167, 227, 234, 0.8), 0 0 0 0.45em rgba(167, 227, 234, 0.8), 0 0 0 0.5em rgba(167, 227, 234, 0.8);

top: 0%;

left: 50%;

width: 0.2em;

height: 0.2em;

-webkit-animation: fall 3.5s cubic-bezier(0.5, 0, 1, 0.5) infinite;

-moz-animation: fall 3.5s cubic-bezier(0.5, 0, 1, 0.5) infinite;

-ms-animation: fall 3.5s cubic-bezier(0.5, 0, 1, 0.5) infinite;

animation: fall 3.5s cubic-bezier(0.5, 0, 1, 0.5) infinite;

}

.drop:after {

background: rgb(52, 152, 219);

background: -webkit-linear-gradient(rgba(52, 255, 255, 1) 0%, rgba(52, 152, 219, 1) 10%, rgba(152, 252, 219, 1) 100%);

background: -moz-linear-gradient(rgba(52, 255, 255, 1) 0%, rgba(52, 152, 219, 1) 10%, rgba(152, 252, 219, 1) 100%);

background: linear-gradient(rgba(52, 255, 255, 1) 0%, rgba(52, 152, 219, 1) 10%, rgba(152, 252, 219, 1) 100%);

border-radius: 100% 0 50% 0;

left: 0;

bottom: 0;

width: inherit;

height: 3em;

opacity: 0.7;

-webkit-animation: surface 3s linear infinite;

-moz-animation: surface 3s linear infinite;

-ms-animation: surface 3s linear infinite;

animation: surface 3s linear infinite;

}

@-webkit-keyframes fall {

5%, 15% {

box-shadow: 0 -1.4em 0 0.1em rgba(167, 217, 234, 1), 0 -0.8em 0 0.15em rgba(167, 217, 234, 1), 0 -0.3em 0 0.2em rgba(167, 217, 234, 1), 0 -0.1em 0 0.25em rgba(167, 217, 234, 1), 0 0 0 0.3em rgba(167, 217, 234, 1), 0 0.2em 0 0.35em rgba(167, 217, 234, 1), 0 0.4em 0 0.4em rgba(167, 217, 234, 1), 0 0.6em 0 0.45em rgba(167, 217, 234, 1), 0 0.8em 0 0.5em rgba(167, 217, 234, 1);

}

16% {

top: 80%;

}

18% {

top: 80%;

box-shadow: 1em -8em 0 0.2em rgba(177, 227, 234, 1), -2.2em -3.8em 0 0.1em rgba(177, 227, 234, 1), 3em -2.85em 0 0.3em rgba(177, 227, 234, 1), -3.5em -4em 0 0.2em rgba(177, 227, 234, 1), 0 0 0 0.3em rgba(177, 227, 234, 1), 2em -2em 0 0.2em rgba(177, 227, 234, 1), -0.3em -3em 0 0.2em rgba(177, 227, 234, 1), 0.5em -5em 0 0.35em rgba(177, 227, 234, 1), -3em -1em 0 0.3em rgba(177, 227, 234, 1);

}

30% {

top: 90%;

box-shadow: 1.5em 0 0 0.2em rgba(252, 252, 255, 0.1), -2em 0 0 0.15em rgba(252, 252, 255, 0.1), 3em 0 0 0.2em rgba(252, 252, 255, 0.1), -2em 0 0 0.25em rgba(252, 252, 255, 0.1), 0 0 0 0.2em rgba(252, 252, 255, 0.1), 2.35em 0 0 0.3em rgba(252, 252, 255, 0.1), -0.5em 0 0 0.2em rgba(252, 252, 255, 0.1), 1em 0 0 0.3em rgba(252, 252, 255, 0.1), -4em 0 0 0.4em rgba(252, 252, 255, 0.1);

}

40%,

100% {

top: 95%;

background: rgba(255, 255, 255, 1);

box-shadow: 1.8em 0.5em 0 0.2em rgba(255, 255, 255, 0), -3em 0.5em 0 0.1em rgba(255, 255, 255, 0), 4em 0.5em 0 0.1em rgba(255, 255, 255, 0), -3.5em 0.5em 0 0.1em rgba(255, 255, 255, 0), 0 0 0 0.3em rgba(255, 255, 215, 0), 2.45em 0.5em 0 0.1em rgba(255, 255, 255, 0), -0.8em 0.5em 0 0.2em rgba(255, 255, 255, 0), 1.5em 0.5em 0 0.3em rgba(255, 255, 255, 0), -4.5em 0.5em 0 0.2em rgba(255, 255, 255, 0);

}

}

@-moz-keyframes fall {

5%, 15% {

box-shadow: 0 -1.4em 0 0.1em rgba(167, 217, 234, 1), 0 -0.8em 0 0.15em rgba(167, 217, 234, 1), 0 -0.3em 0 0.2em rgba(167, 217, 234, 1), 0 -0.1em 0 0.25em rgba(167, 217, 234, 1), 0 0 0 0.3em rgba(167, 217, 234, 1), 0 0.2em 0 0.35em rgba(167, 217, 234, 1), 0 0.4em 0 0.4em rgba(167, 217, 234, 1), 0 0.6em 0 0.45em rgba(167, 217, 234, 1), 0 0.8em 0 0.5em rgba(167, 217, 234, 1);

}

16% {

top: 80%;

}

18% {

top: 80%;

box-shadow: 1em -8em 0 0.2em rgba(177, 227, 234, 1), -2.2em -3.8em 0 0.1em rgba(177, 227, 234, 1), 3em -2.85em 0 0.3em rgba(177, 227, 234, 1), -3.5em -4em 0 0.2em rgba(177, 227, 234, 1), 0 0 0 0.3em rgba(177, 227, 234, 1), 2em -2em 0 0.2em rgba(177, 227, 234, 1), -0.3em -3em 0 0.2em rgba(177, 227, 234, 1), 0.5em -5em 0 0.35em rgba(177, 227, 234, 1), -3em -1em 0 0.3em rgba(177, 227, 234, 1);

}

30% {

top: 90%;

box-shadow: 1.5em 0 0 0.2em rgba(252, 252, 255, 0.1), -2em 0 0 0.15em rgba(252, 252, 255, 0.1), 3em 0 0 0.2em rgba(252, 252, 255, 0.1), -2em 0 0 0.25em rgba(252, 252, 255, 0.1), 0 0 0 0.2em rgba(252, 252, 255, 0.1), 2.35em 0 0 0.3em rgba(252, 252, 255, 0.1), -0.5em 0 0 0.2em rgba(252, 252, 255, 0.1), 1em 0 0 0.3em rgba(252, 252, 255, 0.1), -4em 0 0 0.4em rgba(252, 252, 255, 0.1);

}

40%,

100% {

top: 95%;

background: rgba(255, 255, 255, 1);

box-shadow: 1.8em 0.5em 0 0.2em rgba(255, 255, 255, 0), -3em 0.5em 0 0.1em rgba(255, 255, 255, 0), 4em 0.5em 0 0.1em rgba(255, 255, 255, 0), -3.5em 0.5em 0 0.1em rgba(255, 255, 255, 0), 0 0 0 0.3em rgba(255, 255, 215, 0), 2.45em 0.5em 0 0.1em rgba(255, 255, 255, 0), -0.8em 0.5em 0 0.2em rgba(255, 255, 255, 0), 1.5em 0.5em 0 0.3em rgba(255, 255, 255, 0), -4.5em 0.5em 0 0.2em rgba(255, 255, 255, 0);

}

}

@-ms-keyframes fall {

5%, 15% {

box-shadow: 0 -1.4em 0 0.1em rgba(167, 217, 234, 1), 0 -0.8em 0 0.15em rgba(167, 217, 234, 1), 0 -0.3em 0 0.2em rgba(167, 217, 234, 1), 0 -0.1em 0 0.25em rgba(167, 217, 234, 1), 0 0 0 0.3em rgba(167, 217, 234, 1), 0 0.2em 0 0.35em rgba(167, 217, 234, 1), 0 0.4em 0 0.4em rgba(167, 217, 234, 1), 0 0.6em 0 0.45em rgba(167, 217, 234, 1), 0 0.8em 0 0.5em rgba(167, 217, 234, 1);

}

16% {

top: 80%;

}

18% {

top: 80%;

box-shadow: 1em -8em 0 0.2em rgba(177, 227, 234, 1), -2.2em -3.8em 0 0.1em rgba(177, 227, 234, 1), 3em -2.85em 0 0.3em rgba(177, 227, 234, 1), -3.5em -4em 0 0.2em rgba(177, 227, 234, 1), 0 0 0 0.3em rgba(177, 227, 234, 1), 2em -2em 0 0.2em rgba(177, 227, 234, 1), -0.3em -3em 0 0.2em rgba(177, 227, 234, 1), 0.5em -5em 0 0.35em rgba(177, 227, 234, 1), -3em -1em 0 0.3em rgba(177, 227, 234, 1);

}

30% {

top: 90%;

box-shadow: 1.5em 0 0 0.2em rgba(252, 252, 255, 0.1), -2em 0 0 0.15em rgba(252, 252, 255, 0.1), 3em 0 0 0.2em rgba(252, 252, 255, 0.1), -2em 0 0 0.25em rgba(252, 252, 255, 0.1), 0 0 0 0.2em rgba(252, 252, 255, 0.1), 2.35em 0 0 0.3em rgba(252, 252, 255, 0.1), -0.5em 0 0 0.2em rgba(252, 252, 255, 0.1), 1em 0 0 0.3em rgba(252, 252, 255, 0.1), -4em 0 0 0.4em rgba(252, 252, 255, 0.1);

}

40%,

100% {

top: 95%;

background: rgba(255, 255, 255, 1);

box-shadow: 1.8em 0.5em 0 0.2em rgba(255, 255, 255, 0), -3em 0.5em 0 0.1em rgba(255, 255, 255, 0), 4em 0.5em 0 0.1em rgba(255, 255, 255, 0), -3.5em 0.5em 0 0.1em rgba(255, 255, 255, 0), 0 0 0 0.3em rgba(255, 255, 215, 0), 2.45em 0.5em 0 0.1em rgba(255, 255, 255, 0), -0.8em 0.5em 0 0.2em rgba(255, 255, 255, 0), 1.5em 0.5em 0 0.3em rgba(255, 255, 255, 0), -4.5em 0.5em 0 0.2em rgba(255, 255, 255, 0);

}

}

@keyframes fall {

5%, 15% {

box-shadow: 0 -1.4em 0 0.1em rgba(167, 217, 234, 1), 0 -0.8em 0 0.15em rgba(167, 217, 234, 1), 0 -0.3em 0 0.2em rgba(167, 217, 234, 1), 0 -0.1em 0 0.25em rgba(167, 217, 234, 1), 0 0 0 0.3em rgba(167, 217, 234, 1), 0 0.2em 0 0.35em rgba(167, 217, 234, 1), 0 0.4em 0 0.4em rgba(167, 217, 234, 1), 0 0.6em 0 0.45em rgba(167, 217, 234, 1), 0 0.8em 0 0.5em rgba(167, 217, 234, 1);

}

16% {

top: 80%;

}

18% {

top: 80%;

box-shadow: 1em -8em 0 0.2em rgba(177, 227, 234, 1), -2.2em -3.8em 0 0.1em rgba(177, 227, 234, 1), 3em -2.85em 0 0.3em rgba(177, 227, 234, 1), -3.5em -4em 0 0.2em rgba(177, 227, 234, 1), 0 0 0 0.3em rgba(177, 227, 234, 1), 2em -2em 0 0.2em rgba(177, 227, 234, 1), -0.3em -3em 0 0.2em rgba(177, 227, 234, 1), 0.5em -5em 0 0.35em rgba(177, 227, 234, 1), -3em -1em 0 0.3em rgba(177, 227, 234, 1);

}

30% {

top: 90%;

box-shadow: 1.5em 0 0 0.2em rgba(252, 252, 255, 0.1), -2em 0 0 0.15em rgba(252, 252, 255, 0.1), 3em 0 0 0.2em rgba(252, 252, 255, 0.1), -2em 0 0 0.25em rgba(252, 252, 255, 0.1), 0 0 0 0.2em rgba(252, 252, 255, 0.1), 2.35em 0 0 0.3em rgba(252, 252, 255, 0.1), -0.5em 0 0 0.2em rgba(252, 252, 255, 0.1), 1em 0 0 0.3em rgba(252, 252, 255, 0.1), -4em 0 0 0.4em rgba(252, 252, 255, 0.1);

}

40%,

100% {

top: 95%;

background: rgba(255, 255, 255, 1);

box-shadow: 1.8em 0.5em 0 0.2em rgba(255, 255, 255, 0), -3em 0.5em 0 0.1em rgba(255, 255, 255, 0), 4em 0.5em 0 0.1em rgba(255, 255, 255, 0), -3.5em 0.5em 0 0.1em rgba(255, 255, 255, 0), 0 0 0 0.3em rgba(255, 255, 215, 0), 2.45em 0.5em 0 0.1em rgba(255, 255, 255, 0), -0.8em 0.5em 0 0.2em rgba(255, 255, 255, 0), 1.5em 0.5em 0 0.3em rgba(255, 255, 255, 0), -4.5em 0.5em 0 0.2em rgba(255, 255, 255, 0);

}

}

@-webkit-keyframes surface {

50% {

border-radius: 0 75% 0 75%;

opacity: 0.5;

height: 3.5em;

}

}

@-moz-keyframes surface {

50% {

border-radius: 0 75% 0 75%;

opacity: 0.5;

height: 3.5em;

}

}

@-ms-keyframes surface {

50% {

border-radius: 0 75% 0 75%;

opacity: 0.5;

height: 3.5em;

}

}

@keyframes surface {

50% {

border-radius: 0 75% 0 75%;

opacity: 0.5;

height: 3.5em;

}

}

css 水珠动图,使用CSS3动画、渐变和伪元素实现的水滴动画相关推荐

  1. css 水珠动图,使用CSS3实现的水滴涟漪动画

    CSS 语言: CSSSCSS 确定 body { background-color: #31C5F3; overflow: hidden; } div { margin: 175px auto; } ...

  2. css 水珠动图,CSS3 水滴和波浪动画图标

    CSS 语言: CSSSCSS 确定 body { background: #0a6a8d; } h2, p { text-align: center; text-transform: upperca ...

  3. css 水珠动图,CSS3逼真水珠特效

    CSS3逼真水珠特效- www.shouce.ren body{background: #013668;} #pepsi{position: absolute;left: 30%;top: 30%;} ...

  4. html与css结合动效案例,CSS3制作动画效果例子

    实现网站的图片.文字的动态效果,我们有photoshop制作多帧动画GIF.用flash制作更精巧的动画,还有利用javascript通过识别ID/CLASS 来实现对应DIV块的动画效果.然而,即使 ...

  5. 【04】HTML5+CSS3:01-HTML5新增标签、多媒体标签、input标签、新增表单属性、CSS3属性选择器、伪元素选择器、2D转换

    文章目录 HTML5 第一天 一.什么是 `HTML5` 二.`HTML5 ` 新增标签 三.多媒体音频标签 四.多媒体视频标签 五.新增 input 标签 六.新增表单属性 七.`CSS3 ` 属性 ...

  6. CSS3新增选择器:伪元素选择器

    一.  ::first-letter 第一个字 二. ::first-line 第一行(以浏览器为准的第一行) 三. ::selection 被选中的字行(鼠标选中的字段)只能向 ::selectio ...

  7. css3新增选择器、伪元素、隐藏元素的方法、visibility: hidden与display:none;的区别 、遮罩层效果、​ 三级菜单制作、选项卡制作——css3知识点总结

    目录 css3新增选择器 兄弟选择器 属性选择器 伪类选择器 其他伪类选择器 类元素选择器 直接选择器 否定选择器 伪元素 :after清除浮动 :before和:after 用来写小三角形 首字母 ...

  8. html设置gif为透明,使用GIF动图和CSS3背景裁剪(background-clip)特性实现的透明文本烟雾特效...

    CSS 语言: CSSSCSS 确定 @import url('https://fonts.googleapis.com/css?family=Montserrat'); body { backgro ...

  9. 手把手教你撸一个能生成抖音风格动图的gif制作平台

    前言 又到了一周一次的周总结, 笔者基于之前的开源项目 blink , 开发了一款能在线配置故障艺术, 并一键生成gif动图的平台, 这里暂时取名为QT. 接下来笔者将复盘一下该可视化平台的实现步骤以 ...

最新文章

  1. 关于程序员的政治(转)
  2. 计算机系统的安全需求的需求等级,计算机信息系统安全等级保护 通用技术要求.PDF...
  3. Html 教程 (6)script标签
  4. linux oracle swd.oui,centos7安装oracle11g报错,请问怎么解?
  5. 26岁的她,成为深圳大学史上最年轻正教授!
  6. python程序设计遇到的问题_Python程序设计与实践:用计算思维解决问题
  7. php 赋值给 dom对象,详解PHP原生DOM对象操作XML的方法
  8. 对于集成SP3后后不能激活的解释
  9. MatLab--数字图像处理基础
  10. 基于pytorch的GAN网络搭建
  11. 值得收藏:一份非常完整的MySQL规范
  12. 第四篇--关于device
  13. 新坑 GAN神经网络
  14. Ubuntu18.04与RTX1080Ti安装深度学习框架
  15. 网页前端之字幕滚动实现
  16. Error: L6218E: Undefined symbol f_mkfs (referred from main.o)
  17. mysql 批量造假数据
  18. 古代汉语 郭锡良版本 复习要点
  19. 关于java读写文件
  20. 微信小程序学习day02-WXSS 模板样式

热门文章

  1. properties文件html,properties的中文意思
  2. 知乎热议:28 岁程序员期权过亿,彪悍从字节退休,旅居日本开温泉酒店
  3. 年总—回顾收获,奋力前行
  4. Linux移动文件提示权限被拒绝
  5. html在父窗口中打开新页面跳转,路由跳转、打开新窗口、跳转到新页面
  6. java中遍历HashMap
  7. 洛谷——P3353 在你窗外闪耀的星星
  8. android浮标权限管理,Android辅助权限与悬浮窗
  9. JAVA开发坦克大战小游戏个人实战笔记
  10. 亚马逊手机腹背受敌 缺乏谷歌支持是硬伤