十大html鼠标特效,10种炫酷鼠标hover按钮CSS3动画特效

这是一款炫酷的鼠标hover按钮CSS3动画特效。该按钮CSS3动画特效包括10种鼠标hover效果。按钮动画的制作通过CSS3 transition和keyframes帧动画完成。

使用方法

在页面中引入style.css文件。

HTML结构

每一种按钮动画都有它们各自的HTML结构,第一种鼠标hover按钮线条动画中,按钮的HTML结构如下:

Button

CSS样式

按钮的通用样式如下:

button{

width:200px;

height:80px;

position:relative;

background:rgba(255, 255, 255, .27);

text-transform:uppercase;

color:white;

font-weight:700;

letter-spacing:1px;

border:none;

font-size:15px;

outline:none;

font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;

}

在第一种鼠标hover按钮线条动画中,按钮的线条动画通过:nth-of-type选择器来选择用于制作线条的div元素,并在鼠标hover时修改它们的宽度和高度,形成线条动画的效果。

.border{

position:absolute;

background:none;

transition:all .5s ease-in-out;

}

#first>.border:nth-of-type(1){

top:0;

left:0;

border-left:1px solid white;

border-top:1px solid white;

width:30px;

height:30px;

}

#first>.border:nth-of-type(2){

bottom:0;

right:0;

border-right:1px solid white;

border-bottom:1px solid white;

width:30px;

height:30px;

}

#first:hover .border{

width:205px;

height:85px;

}

其它鼠标hover按钮动画特效请参考源代码。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值