2019独角兽企业重金招聘Python工程师标准>>>

btn2

/*--按钮1--*/
.container1 {width:200px;display:block;margin:20px auto;position:relative;font-family:droid arabic kufi;
}
.con_down1 {display:block;cursor:pointer;background-color:#F6EB96;width:190px;height:50px;padding-left:10px;padding-top:5px;text-align:left;border-bottom:4px solid #D8B83C;border-radius:5px;position:relative;line-height:50px;
}
.con_down1 .fa-download{position:absolute;right:10px;top:15px;color:#895D0A;
}
.con_down1 h4 {color:#895D0A;text-transform:uppercase;margin:0;
}
.sizes1 h5 {margin:0;
}
.sizes1 {background-color:#E3E3E3;width:100px;height:30px;z-index:-9;padding-top:2px;border-bottom:4px solid #AAA9A9;position:absolute;top:13px;left:20px;transition:.5s all ease-in-out;
}
.size {line-height:30px;text-align:center;color:#4B4B4B;
}
.sizes_abs1 {background-color:#F6EB96;cursor:pointer;width:20px;border-bottom:4px solid #D8B83C;border-bottom-left-radius:5px;border-top-left-radius:5px;height:55px;position:absolute;top:-13px;left:-20px;z-index:2;
}
.container1:hover .sizes1 {left:-100px;
}
.container1:hover .con_down1 {background-color:#F1DD5E;border-bottom-left-radius:0;border-top-left-radius:0;
}
.container1:hover .sizes_abs1 {background-color:#F1DD5E;
}/*--按钮2--*/
.container2 {width:200px;display:block;margin:20px auto;position:relative;font-family:droid arabic kufi;
}
.con_down2 {display:block;cursor:pointer;background-color:#F6EB96;width:190px;height:50px;padding-left:10px;padding-top:5px;text-align:left;border-bottom:4px solid #D8B83C;border-radius:5px;position:relative;line-height:50px;transition:.5s all ease-in-out;
}
.con_down2 .fa-download {position:absolute;right:10px;top:15px;color:#895D0A;
}
.con_down2 h4 {color:#895D0A;text-transform:uppercase;margin:0;
}
.sizes2 h5 {margin:0;
}
.sizes2 {background-color:#E3E3E3;width:100px;height:30px;z-index:-9;position:absolute;bottom:22px;right:50%;margin-right:-50px;transition:.5s all ease-in-out;
}
.size {line-height:30px;text-align:center;color:#4B4B4B;
}
.sizes_abs2 {background-color:#F6EB96;cursor:pointer;width:200px;border-bottom:4px solid #D8B83C;border-bottom-left-radius:5px;border-bottom-right-radius:5px;height:20px;position:absolute;left:-50px;bottom:-22px;z-index:2;
}
.container2:hover .sizes2 {bottom:-30px;
}
.container2:hover .con_down2 {background-color:#F1DD5E;border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0;
}
.container2:hover .sizes_abs2 {background-color:#F1DD5E;
}

btn5

/* Custom Button */
.whitebutton {margin: 0 auto;width: 200px;
}
.whitebutton a {background: #dddddd;color: #666;display: block;font-size: 17px;font-weight: 700;font-family: 'Droid Arabic Kufi',Verdana,sans-serif;height: 50px;line-height: 50px;text-align: center;text-decoration: none;text-transform: uppercase;width: 200px;position: relative;z-index: 2;
}
.whitebutton a:before {content: '\f019';font-family: FontAwesome;font-weight: normal;padding: 8px;margin-left: 0px;margin-right: 30px;
}
.whitebutton span {background: #444;color: #fff;display: block;font-size: 12px;font-family: 'Droid Arabic Kufi', Verdana,sans-serif;height: 40px;line-height: 40px;text-align: center;width: 200px;z-index: 1;text-transform: uppercase;font-weight: bold;
}
.whitebutton .up {height: 40px;background: #e25734;margin: 0px auto;opacity: 0;border-radius: 0 0 5px 5px;transform: translate(0,-50px);transition: 350ms;
}
.whitebutton .down {height: 40px;margin: -40px auto;opacity: 0;border-radius: 5px 5px 0 0;transform: translate(0,-50px);transition: 350ms;
}
.whitebutton .down:before {content:'\f14a';font-family: FontAwesome;font-weight: normal;margin-left: -6px;color: #aaa;
}
.whitebutton:hover .up {opacity: 1;transform: translate(0,0);
}
.whitebutton:hover .down {opacity: 1;transform: translate(0,-90px);
}
.whitebuttondemo {margin: 20px auto;padding: 20px 0;width: 200px;
}
.whitebuttondemo a {background: #e25734;color: #fff;display: block;font-size: 17px;font-weight: 700;font-family:'Droid Arabic Kufi',Verdana,sans-serif;height: 50px;line-height: 50px;text-align: center;text-decoration: none;text-transform: uppercase;width: 200px;position: relative;z-index: 2;transition: 350ms;
}
.whitebuttondemo a:before {content:'\f002';font-family: FontAwesome;font-weight: normal;padding: 8px;margin-left: 0px;margin-right: 30px;
}
.whitebuttondemo a:hover {color: #fff;
}
.whitebuttondemo span {background: #444;color: #fff;display: block;font-size: 12px;font-family: 'Droid Arabic Kufi', Verdana,sans-serif;height: 40px;line-height: 40px;text-align: center;width: 200px;z-index: 1;text-transform: uppercase;font-weight: bold;
}
.whitebuttondemo .up {background: #444;margin: 0px auto;opacity: 0;border-radius: 0 0 5px 5px;transform: translate(0,-50px);transition: 350ms;
}
.whitebuttondemo:hover .up {opacity: 1;transform: translate(0,0);
}

focus

.zoomeffect img{
-webkit-transform:scale(0.8);
-moz-transform:scale(0.8);
-o-transform:scale(0.8);
-webkit-transition-duration: 0.5s;
-moz-transition-duration: 0.5s;
-o-transition-duration: 0.5s;
opacity: 0.7;
margin: 0 10px 5px 0;
}
.zoomeffect img:hover{
-webkit-transform:scale(1.1);
-moz-transform:scale(1.1);
-o-transform:scale(1.1);
opacity: 1;
}

转载于:https://my.oschina.net/u/1994482/blog/468385

基于css3的鼠标滑动按钮动画之CSS--续相关推荐

  1. 鼠标动效html,5种纯CSS3鼠标hover按钮动画效果

    这是一款鼠标hover按钮动画特效.该特效共有5种hover动画效果,它们在结构布局上使用flex来进行布局,并通过css transition来实现动画效果. 使用方法 HTML结构 该按钮特效使用 ...

  2. css3.0动画,CSS3.0实现霓虹灯按钮动画特效的示例代码

    今天给大家分享一个用CSS 3.0实现的霓虹灯按钮动画特效,效果如下: 以下是代码实现,欢迎大家复制粘贴和收藏. CSS 3.0实现霓虹灯按钮动画特效 * { font-family: '微软雅黑', ...

  3. 圆角按钮css,基于CSS3的一组圆角按钮 - YangJunwei

    CSS3作为对CSS的升级,将原有的一些大模块分解为更小更易于表达的小模块,取得了相当的好评,也使得开发周期变短.过程变得愉快! 今天分享一下自己使用的基于CSS3的一组圆角按钮,效果不错,但欢迎升级 ...

  4. html纯css页面滑动效果,纯css3滑动按钮动画效果

    android系统的滑动按钮相信大家都使用过.这款插件就是使用纯css3制作出类似android系统的滑动按钮效果. HTML html代码十分简单.使用一个大的div作为包裹容器,给它一个class ...

  5. html5 鼠标滑动页面动画效果,鼠标滑动到当前页面触发动画效果

    近年来,关于鼠标滑动到当前页面从而触发动画效果十分的火热,今天我们就来学习下这一效果. 一.首先,我们先来了解一下这一效果实现的原理 1.一个网页离不开基本的布局,所以首先就是要先用html将所需要的 ...

  6. css3制作鼠标悬浮图文动画效果

    个人名片:

  7. 做个高颜值的优秀按钮,用 CSS3 实现社交按钮动画

    在过去,产品只要把功能做到位就足够了,而现在,产品不仅要有好的颜值,还要有良好的交互和动效. 一个优秀的动效不仅可以吸引用户的眼球,还可以让产品更具交互性,吸引更多用户的使用.比如,按钮(button ...

  8. CSS实现霓虹灯按钮,CSS实现炫酷的霓虹灯按钮动画

    作者:AlbertYang,软件设计师,Java工程师,前端工程师,爱阅读,爱思考,爱编程,爱自由,信奉终生学习,每天学习一点点,就是领先的开始. 微信公众号:AlbertYang 今天教大家使用CS ...

  9. 鼠标滑动变色(discolor)

    鼠标滑动变色 示例 HTML CSS JS 更多有趣示例 尽在 知屋安砖社区 示例 HTML <div id="photo-container"> <div cl ...

最新文章

  1. hdu 4891 模拟
  2. ArcGIS Engine 项目10.1升级10.2
  3. sqliteman install parameter
  4. mybatis+spring mvc 完美整合方案 查询,保存,更新,删除自动生成
  5. 利用 OpenMP 实现埃拉托斯特尼(Eratosthenes)素数筛法并行化
  6. VC 获取Windows所有用户的用户名
  7. java发牌_Java实现洗牌发牌的方法
  8. 高等数学(第七版)同济大学 习题1-4 个人解答
  9. 易软门诊管理软件php,易软诊所管理软件
  10. 【竞赛篇-国创(大创)结题】国创(大创)立项后的基本流程、需要用什么结题、如何快速结题
  11. 公司邮件登录发邮件,在outlook邮件撤回怎么操作?
  12. Adobe illustrator安装
  13. 20190919CF训练
  14. conda安装GPU版pytorch,结果却是cpu版本[找到问题根源,从容解决]
  15. 历史最全、最细、近一年最新 知识图谱相关经典论文分享
  16. isEmpty()和isNotEmpty()区别
  17. AndroidManifest.xml详解(上)
  18. 某电商网站的数据库设计(2)——商品销售相关数据表的设计
  19. 通用文件清除脚本,可对多个指定目录按照磁盘空间、文件保存天数进行清理,并可设置目录扫描深度
  20. SpringBoot自动生成接口文档

热门文章

  1. Nodejs 文件上传
  2. Self Introduction
  3. 基于React和SpringBoot的快速开发模板QuickAdmin
  4. 上传文件的input问题以及FormData特性
  5. ElasticSearch实战-入门
  6. MVC Html.AntiForgeryToken() 防止CSRF***
  7. Android Studio导出jar包
  8. css案例学习之span边框实现的特殊效果
  9. 函数学习-abs()
  10. 动态路由协议(RIP)