CSS

语言:

CSSSCSS

确定

@import url("https://fonts.googleapis.com/css?family=Raleway:300,700,900");

body {

background: #5444c4;

color: #FFF;

margin: 0;

font-family: 'Raleway', sans-serif;

text-align: center;

letter-spacing: 0.08em;

}

b {

font-size: 28px;

color: #FFF;

}

.container {

width: 300px;

height: 500px;

margin: 15px auto;

background: #6cd2ff;

overflow: hidden;

position: relative;

box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);

}

.text {

position: absolute;

left: 50%;

top: 45%;

transform: translate(-50%, -50%);

text-align: center;

color: #6cd2ff;

font-size: 64px;

font-weight: 900;

}

.liquid {

width: 120%;

height: 10px;

position: absolute;

top: -2%;

left: -10%;

background: #FFF;

border-radius: 10%;

animation: liquid 5s infinite;

}

.blobs {

filter: url("#goo");

width: 100%;

height: 100%;

position: relative;

}

.blobs .blob {

width: 30px;

height: 30px;

margin: 0 5px 0px 0;

background: #FFF;

border-radius: 50%;

position: absolute;

top: 0;

animation: drip_one 5s infinite;

}

.blobs .blob:nth-child(1) {

left: -14%;

}

.blobs .blob:nth-child(2) {

left: -1%;

}

.blobs .blob:nth-child(3) {

left: 12%;

}

.blobs .blob:nth-child(4) {

left: 25%;

}

.blobs .blob:nth-child(5) {

left: 38%;

}

.blobs .blob:nth-child(6) {

left: 51%;

}

.blobs .blob:nth-child(7) {

left: 64%;

}

.blobs .blob:nth-child(8) {

left: 77%;

}

.blobs .blob:nth-child(9) {

left: 90%;

}

.blobs .blob:nth-of-type(4n-7) {

width: 65px;

animation: drip_four 5s infinite;

}

.blobs .blob:nth-of-type(3n-2) {

width: 26px;

}

.blobs .blob:nth-of-type(2) {

width: 22px;

}

.blobs .blob:nth-of-type(8) {

animation: drip_five 5s infinite;

}

.blobs .blob:nth-of-type(4n+2) {

height: 56px;

animation: drip_two 5s infinite;

}

.blobs .blob:nth-of-type(6n-2) {

height: 42px;

animation: drip_three 5s infinite;

}

@keyframes drip_one {

from {

top: 0;

}

to {

top: 103%;

}

}

@keyframes drip_two {

from {

top: 0;

}

to {

top: 104%;

}

}

@keyframes drip_three {

from {

top: 0;

height: 52px;

}

to {

top: 102%;

height: 132px;

}

}

@keyframes drip_four {

from {

top: 0;

width: 65px;

height: 30px;

}

to {

top: 102%;

width: 75px;

height: 45px;

}

}

@keyframes drip_five {

from {

top: 0;

height: 30px;

}

to {

top: 102%;

height: 72px;

}

}

@keyframes liquid {

from {

height: 15px;

}

to {

height: 109%;

}

}

html5液体效果,HTML5/CSS3/SVG实现的液体掉落(滑落)动画相关推荐

  1. html5倒计时效果,html5+css3进度条倒计时动画特效代码【推荐】

    html5+css3进度条倒计时动画特效这个作品在今天上网找网络资源的时候无意中发现的,看到效果非常棒并且很实用,就第一时间把它整理出来与大家分享了,主要用到了html5.javascript和css ...

  2. html5云朵效果,纯CSS3打造逼真的多层云彩动画特效

    这是一款效果非常炫酷的纯CSS3逼真的多层云彩动画特效.该特效使用多张透明的云彩PNG图片作为背景图片,使用CSS animation动画来制作云彩水平飘动的动画效果. 使用方法 HTML结构 该多层 ...

  3. html5 抽奖效果,html5+css3实现抽奖活动的效果

    看过我博客的知道,前几天我发过一个通过form表单来实现和用户交互效果,上次是通关过table实现用户注册页面,那么今天我们也是通过table的表单效果来画出抽奖的页面,通过css3和javascri ...

  4. html5 翻牌效果,HTML5实现移动端点击翻牌功能

    效果 一个大小的两个面,在同一位置上 正面的Y轴旋转为0度 背面的Y轴旋转180度 隐藏被旋转的 div 元素的背面(backface-visibility) 点击的时候同时改变正面和背面的旋转角度, ...

  5. html5 地图效果,html5 echarts图表插件炫光的分布地图动画特效

    特效描述:图表插件 炫光的动画 分布地图动画 动画特效.html5地图动画,html5 echarts图表插件 代码结构 1. 引入JS 2. HTML代码  ECharts $('#documen ...

  6. html5波浪效果,html5 canvas粒子波浪动画特效

    特效描述:html5 canvas 粒子波浪动画特效.html5基于canvas绘制波涛汹涌的粒子波浪动画. 代码结构 1. HTML代码 'use strict'; var FastRandom = ...

  7. html5 雨滴效果,html5 canvas下雨滴掉落动画特效

    特效描述:html5 canvas 雨滴掉落动画 动画特效.html5 canvas绘制下雨场景动画.雨滴动画. 代码结构 1. 引入JS 2. HTML代码 // TO DO // Remove r ...

  8. html5 vr效果,HTML5 Three.js 虚拟现实小实验(VR Experiment)

    HTML 导入代码模板: /*! Reticulum - v1.0.12 - 2015-08-17 * https://gqpbj.github.io/examples/basic.html * * ...

  9. html5悬浮效果,html5悬浮球效果

    1 .SuspendedBall{ 2 position:fixed; 3 width:50px; 4 height:50px; 5 background:#3071a9; 6 border-radi ...

最新文章

  1. MySQL面试题 | 附答案解析(九)
  2. AttributeError: module ‘sys‘ has no attribute ‘maxint‘
  3. 计算机维护常识_系统篇
  4. 【轉】Android编程之SparseArrayE详解
  5. stm32硬件消抖_在 STM32 上使用 C++ 指南
  6. 3.1 《数据库系统概论》SQL概述及数据定义(模式SCHEMA、表TABLE、索引INDEX)
  7. 软件工程——个人课程总结
  8. Bootstrap创建按钮组
  9. 韵达混合云深度解析:Docker助力大规模云上调度实践
  10. rbw数字信号处理_数字中频概述 - 频谱分析
  11. 基于IPS7LnkNet.Advanced的S7Watch 西门子PLC调试工具
  12. 错误specificity:nan
  13. HTML制作WORD表格
  14. python编程-----利用爬虫获取自如房间信息(三)
  15. baidumap api MySQL_百度地图API
  16. Redis数据库中Hash哈希的介绍,常用命令和应用场景
  17. 规则引擎drools系列(一)
  18. 华为FPGA设计设计规范
  19. 对SLAM和自动驾驶定位的思考,最新自动驾驶视觉SLAM方法综述!
  20. 【CSDN开发云】v1.21 版本,自定义镜像管理

热门文章

  1. 申通回应被京东“封杀”;Kotlin 1.4.0 发布 | 极客头条
  2. JavaScript 将死?
  3. 雷军谈小米10售价:不贵,交个朋友;百度开源首个口罩人脸检测模型;优麒麟18.04.4 LTS发布 | 极客头条...
  4. 没能 PK 掉 WiFi 的 Li-Fi,可能是 5G 请来的救兵
  5. 程序员的修神之路是?
  6. 谷歌、IBM 们的“量子争霸”迷局
  7. 不得了!这个 AI 让企业家、技术人员、投资人同台“互怼”
  8. 偷窥、报复、歧视,Google 为何频发性骚扰事件?
  9. jq ajax xml,jQuery+ajax读取并解析XML文件的方法
  10. 火爆全网MySQL路线笔记!linuxmysql允许远程连接