【29】纯css3制作的冒着气泡的瓶子
来源:互联网 发布:淘宝客服中心代码 编辑:程序博客网 时间:2024/05/09 18:26
这几天由于时间紧的原因就不多说话了看效果吧
想看效果的点击鑫大大的小屋
<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>瓶子里的水</title> <link rel="stylesheet" href="css/base.css"> <style type="text/css"> .css-jar{ position:relative; width: 195px; margin: 150px auto; text-align: center; transform: scale(2.5); } .css-jar .pk{ background: radial-gradient(circle at 50% 55%, rgba(240, 245, 255, 0.9), rgba(240, 245, 255, 0.9) 40%, rgba(225, 238, 255, 0.8) 60%, rgba(43, 130, 255, 0.4)); width:40px; height: 10px; margin: 0 auto -1px auto; border-right:1px solid rgb(43,130,255); border-left:1px solid rgb(43,130,255); border-radius:19px; } .css-jar .ps{ width: 34px; height: 46px; margin: 0 auto -7px auto; z-index: 7; position: relative; border-right:1px solid rgb(43,130,255); border-left:1px solid rgb(43,130,255); background: radial-gradient(circle at 50% 55%, rgba(240, 245, 255, 0.9), rgba(240, 245, 255, 0.9) 40%, rgba(225, 238, 255, 0.8) 60%, rgba(43, 130, 255, 0.4)); } .css-jar .pj{ margin:auto; width: 117px; height:97px; border-radius:50%; border:1px solid rgb(43,130,255); border-top: 0 solid #fff; overflow: hidden; position: relative; z-index: 5; background: radial-gradient(circle at 50% 55%, rgba(240, 245, 255, 0.9), rgba(240, 245, 255, 0.9) 40%, rgba(225, 238, 255, 0.8) 60%, rgba(43, 130, 255, 0.4)); } .css-jar .css-liquid{ height: 39px; background-color: rgb(53,238,251); position: absolute; bottom:0; left:0; right:0; } .css-jar .css-wave{ width: 58px; height: 19px; position: absolute; background: rgb(53,238,251); left:0; top:56px; border-radius:50%; animation: css-wave 1.15s linear 1.15s infinite alternate; -o-animation: css-wave 1.15s linear 1.15s infinite alternate; -ms-animation: css-wave 1.15s linear 1.15s infinite alternate; -moz-animation: css-wave 1.15s linear 1.15s infinite alternate; -webkit-animation: css-wave 1.15s linear 1.15s infinite alternate; } .css-jar .css-wave + .css-wave{ left: auto; right: 0; } .css-jar .css-bubble{ left: 15px; top: 49px; position: absolute; width: 5px; height: 5px; background: radial-gradient(circle at 50% 55%, rgba(240, 245, 255, 0.9), rgba(240, 245, 255, 0.9) 40%, rgba(225, 238, 255, 0.8) 60%, rgba(43, 130, 255, 0.4)); border-radius:50%; animation: css-bounce 2.65s linear 0s infinite alternate; -o-animation: css-bounce 2.65s linear 0s infinite alternate; -ms-animation: css-bounce 2.65s linear 0s infinite alternate; -moz-animation: css-bounce 2.65s linear 0s infinite alternate; -webkit-animation: css-bounce 2.65s linear 0s infinite alternate; } .css-jar .css-bubble + .css-bubble{ position: absolute; left: 73px; top: 39px; animation-duration:3.45s; -o-animation-duration:3.45s; -ms-animation-duration:3.45s; -moz-animation-duration:3.45s; -webkit-animation-duration:3.45s; } .css-bubble2{bottom: 0 !important; left: 100px !important;} .css-bubble3{bottom: 0 !important; left: 50px !important;} .css-bubble4{bottom: 0 !important; left: 30px !important;} @keyframes css-wave{ from{ transform: translateX(97px); } to{ transform: translateX(-97px); } } @keyframes css-bounce{ 0%{ transform: translate(5px,15px); } 50%{ transform: translate(0px,-15px); } 100%{ transform: translate(-5px,-36px); opacity: 1; } } @keyframes css-buble{ 0%{ transform: translate(3px,10px); } 25%{ transform: translate(0px,0px); } 50%{ transform: translate(-3px,-24px); } 75%{ transform: translate(0px,-49px); opacity: 1; } 100%{ transform: translate(3px,-97px); opacity: 0; } } </style></head><body><div class="clearfix box"> <div class="css-jar"> <div class="pk"></div> <div class="ps"></div> <div class="pj"> <div class="css-liquid"></div> <div class="css-wave"></div> <div class="css-wave"></div> <div class="css-bubble"></div> <div class="css-bubble css-bubble2"></div> <div class="css-bubble css-bubble3"></div> <div class="css-bubble css-bubble4"></div> </div> </div></div></body></html>
阅读全文
0 0
- 【29】纯css3制作的冒着气泡的瓶子
- 用css3制作一个带小尖角的气泡对话框
- 玻璃球体的制作——气泡气泡气泡
- 纯css3制作的几个社交媒体网站的图标
- 纯css3制作的太阳地球月亮效果
- 【转】纯CSS3制作的Tab选项卡
- 漂亮的加载等待动画,用纯CSS3制作
- 纯CSS3制作逼真的iphone 6手机模型
- css3实现气泡效果的聊天框
- 纯CSS3制作轮播图
- VS2005中消息气泡的制作
- 令人难以置信的纯 CSS3 图标
- 纯CSS3画的云朵
- css3立方体的制作
- 2006瓶子的星运
- 打破瓶子的极限
- 瓶子里的水
- 玩瓶子的老头
- spring学习总结(一)
- leetcode 672. Bulb Switcher II
- C# MongoDB操作类
- LeetCode
- 游戏开发知识点补习
- 【29】纯css3制作的冒着气泡的瓶子
- Docker实战:使用Dockerfile创建带tomcat服务并支持ssh的Centos Docker镜像
- css-基础概念
- 设计模式(三)建造者模式(转)
- Django Rest FrameWork 全部API简述
- node+sequelize实现单表多表操作
- 文件系统读写--文件读过程代码分析
- spring boot学习笔记(一)
- Sublime Text 3找不到Install Package的解决办法之一