<template><div class="btns"><button class="btn1">按钮一 <span class="mask mask1"></span></button><button class="btn2">按钮二 <span class="mask mask2"></span></button><button class="btn3">按钮三 <span class="mask mask3"></span></button><button class="btn4">按钮四 <span class="mask mask4"></span></button></div>
</template><script>
export default {};
</script><style scoped>
.btns {margin-top: 10%;text-align: center;
}
.btn1 {position: relative;border: 1px solid #2c6fad;padding: 10px 20px 10px 20px;border-radius: 10px;cursor: pointer;background-color: #2c6fad;color: #fff;
}
.btn2 {position: relative;border: 1px solid #2c6fad;padding: 10px 20px 10px 20px;border-radius: 10px;cursor: pointer;background-color: #2c6fad;color: #fff;
}
.btn3 {position: relative;border: 1px solid #2c6fad;padding: 10px 20px 10px 20px;border-radius: 10px;cursor: pointer;background-color: #2c6fad;color: #fff;
}
.btn4 {position: relative;border: 1px solid #2c6fad;padding: 10px 20px 10px 20px;border-radius: 10px;cursor: pointer;background-color: #2c6fad;color: #fff;
}
.mask {position: absolute;display: block; /* 可以设置span宽高 */height: 100%;background-color: #fff;opacity: 1;
}
.mask1 {top: 0;right: 0;
}
.mask2 {top: 0;left: 0;border-top-right-radius: 40px;
}
.mask3 {top: 50%;left: 50%;width: 0;height: 0;border-radius: 50%;
}
.mask4 {width: 100%;height: 0;left: 0;bottom: 0;
}
.btn1:hover .mask {animation-name: btn-animation-one;animation-duration: 0.5s;
}.btn2:hover .mask {animation-name: btn-animation-one;animation-duration: 0.5s;
}
.btn3:hover .mask {animation-name: btn-animation-two;animation-duration: 0.5s;
}
.btn4:hover .mask {animation-name: btn-animation-three;animation-duration: 0.5s;
}@keyframes btn-animation-one {from {width: 0;opacity: 1;}to {width: 100%;opacity: 0;}
}
@keyframes btn-animation-two {from {width: 1px;height: 1px;opacity: 1;transform: scale(0);}to {width: 1px;height: 1px;opacity: 0;transform: scale(100);}
}
@keyframes btn-animation-three {from {height: 0;opacity: 1;}to {height: 100%;opacity: 0;}
}
</style>

手写的几个鼠标移上按钮的特效相关推荐

  1. css划上去变长,Css3如何实现鼠标移上变长特效?(图文+视频)

    本篇文章主要给大家介绍用css3实现鼠标移入变长效果的方法. 在前端页面设计中,css的功能是异常强大的,只要运用好它,你能实现很多网站各种精彩的动态效果.那么在之前的文章中也给大家分享介绍了一些用c ...

  2. Vue 框架-02-事件:点击, 双击事件,鼠标移上事件

    Vue 框架-02-事件:点击, 双击事件,鼠标移上事件 1.单击事件:v-on:click 源码 app2.js : //实例化 vue 对象 new Vue({//注意代码格式//el:eleme ...

  3. CSS图片阴影+鼠标移上图片放大、变形

    在做图片卡片列表的时候我们经常用到图片的呼吸灯效果,实现图片的阴影效果.放大.动态展示 代码: li img { display: block; width: 140px; height: 140px ...

  4. 现在出纳记账手写还是用计算机,出纳会计记账(银行存款日记账,现金帐)必须是用手写的吗?能否电脑上有什么软体直接电脑输入呢?...

    出纳会计记账(银行存款日记账,现金帐)必须是用手写的吗?能否电脑上有什么软体直接电脑输入呢?以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶 ...

  5. 鼠标悬浮 鼠标移上 移出事件时 改变背景颜色

    效果 首先给一个 class="liStyle" <li class="liStyle" @mouseover="mouseover(index ...

  6. js 隔行变色+鼠标移上换色+鼠标离开颜色恢复+鼠标点击弹出点击的是第几行是什么颜色

    隔行变色: 先获取要操作的HTML标签 var oLis = document.querySelectorAll('li') 循环HTML标签 for (var i = 0; i < oLis. ...

  7. 手写数字识别之鼠标事件的利用

    鼠标事件 利用鼠标写出的数字也和手写数字有着粗细不匀的相同点,并且测试更简单,所以先试用鼠标事件对识别结果进行测试. static void on_Mouse(int event, int x, in ...

  8. word手写字体以假乱真_学会Word上下标,搞定公式输入

    点击"蓝字"关注我们 在Word文档输入时,你是否会遇到需要插入上下标的文本呢,像这样,这样,这样的.我们在Word文档中的数学公式.化学符号等经常需要为文本设置上标.下标符号.W ...

  9. lzma打包exe_【原创】手写PE文件,打造史上最小LZMA解压DLL

    因程序需求,需要在VB中调用LZMA解压数据,经过N天研究出此成果- 什么是LZMA:LZMA应该是目前世界上数一数二的压缩算法--压缩时相同的时间得到压缩比最高,解压时速度极快且几乎不占内存.如果你 ...

最新文章

  1. 怎么使用html及jsp开发,jsp怎么用css
  2. [perl]字符串转拼音首字母(支持多音字)
  3. Gambit中,interface和interior的区别
  4. 计算机论文物业管理系统,小区物业管理系统的设计与实现(计算机毕业设计)...
  5. 苍井空详细介绍(婚后生活)
  6. NOI2014 起床困难综合症
  7. 小甲鱼老师目前所有视频教程下载地址
  8. elasticsearch报错:bootstrap checks failed. You must address the points described in the following [1]
  9. iOS开发:上架的App生成二维码下载的方法
  10. 遇到【java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter】的解决方案
  11. 宝宝培养 IOS APP 上线
  12. 手机连接服务器数据库文件,手机连接服务器数据库文件在哪里
  13. android ui设计最新字体,2017年最新最直白的app界面设计字体规范
  14. 走近求伯君1 求伯君,1964年11月26日出生于浙江新昌县。
  15. phpstorm使用小技巧一
  16. 【学习笔记】【算法】【智能优化】粒子群优化(PSO)
  17. Infrared and Visible Image Fusion using a Deep Learning Framework解析
  18. (附源码)springboot音乐播放器小程序 毕业设计 170900
  19. mysql如何设置密码
  20. 高新技术企业的优惠政策

热门文章

  1. 大小写数字转换(大小写数字转换)
  2. expire_logs_days
  3. idea快速搭建springboot项目
  4. [答学员问】对于低学历的我,想找一个培训机构学习Linux网络运维,哪个培训机构教学稍微好一点呢?
  5. 信息安全从业人员认证证书一览表
  6. 哈工大操作系统课程实验记录
  7. 如何转换swf格式的文件?
  8. jsonObject.toBean
  9. 1^3+2^3+3^3+...+n^3通项公式
  10. TP5 未定义变量:XXX