CSS3鼠标hover按钮过渡动画效果

当前位置:主页 > CSS3库 > CSS3动画 > CSS3鼠标hover按钮过渡动画效果
CSS3鼠标hover按钮过渡动画效果
分享:

    插件介绍

    这是一款CSS3鼠标hover按钮过渡动画效果。该CSS3鼠标hover按钮过渡动画效果共有两组效果,一组是按钮背景过渡动画效果,一组是按钮边框过渡动画效果。

    浏览器兼容性

    浏览器兼容性
    时间:08-10
    阅读:
简要教程

这是一款CSS3鼠标hover按钮过渡动画效果。该CSS3鼠标hover按钮过渡动画效果共有两组效果,一组是按钮背景过渡动画效果,一组是按钮边框过渡动画效果。

使用方法

在页面顶部<head>中引入hoverbuttons.css文件。

<link rel="stylesheet" href="css/hoverbuttons.css">                  
                
HTML结构

为按钮或超链接元素添加相应的class类即可使用相应的hover过渡动画效果。

鼠标hover按钮背景过渡动画效果:

第一组:

<a href="#" class="hbtn hb-fill-on">Fade In</a>
<a href="#" class="hbtn hb-fill-top">Slide Up</a>
<a href="#" class="hbtn hb-fill-right">Slide Right</a>
<a href="#" class="hbtn hb-fill-bottom">Slide Down</a>
<a href="#" class="hbtn hb-fill-left">Slide Left</a>
<a href="#" class="hbtn hb-fill-middle">Slide Middle</a>
<a href="#" class="hbtn hb-fill-middle2">Slide Middle</a>
<a href="#" class="hbtn hb-fill-on-rev">Fade Out</a>
<a href="#" class="hbtn hb-fill-top-rev">Reveal Top</a>
<a href="#" class="hbtn hb-fill-right-rev">Reveal Right</a>
<a href="#" class="hbtn hb-fill-bottom-rev">Reveal Bottom</a>
<a href="#" class="hbtn hb-fill-left-rev">Reveal Left</a>
<a href="#" class="hbtn hb-fill-middle-rev">Reveal Middle</a>
<a href="#" class="hbtn hb-fill-middle2-rev">Reveal Middle</a>
                

第二组:

<a href="#" class="hbtn hb-fill-top-bg">Slide Up 2</a>
<a href="#" class="hbtn hb-fill-right-bg">Slide Right 2</a>
<a href="#" class="hbtn hb-fill-bottom-bg">Slide Down 2</a>
<a href="#" class="hbtn hb-fill-left-bg">Slide Left 2</a>
<a href="#" class="hbtn hb-fill-middle-bg">Slide Middle</a>
<a href="#" class="hbtn hb-fill-middle2-bg">Slide Middle</a>
<a href="#" class="hbtn hb-fill-top-rev-bg">Reveal Top 2</a>
<a href="#" class="hbtn hb-fill-right-rev-bg">Reveal Right 2</a>
<a href="#" class="hbtn hb-fill-bottom-rev-bg">Reveal Bottom 2</a>
<a href="#" class="hbtn hb-fill-left-rev-bg">Reveal Left 2</a>
<a href="#" class="hbtn hb-fill-middle-rev-bg">Reveal Middle</a>
<a href="#" class="hbtn hb-fill-middle2-rev-bg">Reveal Middle</a>
                

第三组:

<a href="#" class="hbtn hb-fill-top-br">Slide Up 3</a>
<a href="#" class="hbtn hb-fill-right-br">Slide Right 3</a>
<a href="#" class="hbtn hb-fill-bottom-br">Slide Down 3</a>
<a href="#" class="hbtn hb-fill-left-br">Slide Left 3</a>
<a href="#" class="hbtn hb-fill-middle-br">Slide Middle</a>
<a href="#" class="hbtn hb-fill-middle2-br">Slide Middle</a>
<a href="#" class="hbtn hb-fill-top-rev-br">Reveal Top 3</a>
<a href="#" class="hbtn hb-fill-right-rev-br">Reveal Right 3</a>
<a href="#" class="hbtn hb-fill-bottom-rev-br">Reveal Bottom 3</a>
<a href="#" class="hbtn hb-fill-left-rev-br">Reveal Left 3</a>
<a href="#" class="hbtn hb-fill-middle-rev-br">Reveal Middle</a>
<a href="#" class="hbtn hb-fill-middle2-rev-br">Reveal Middle</a>
                

第四组:

<a href="#" class="hbtn hb-fill-top-bg-br">Slide Up 4</a>
<a href="#" class="hbtn hb-fill-right-bg-br">Slide Right 4</a>
<a href="#" class="hbtn hb-fill-bottom-bg-br">Slide Down 4</a>
<a href="#" class="hbtn hb-fill-left-bg-br">Slide Left 4</a>
<a href="#" class="hbtn hb-fill-middle-bg-br">Slide Middle</a>
<a href="#" class="hbtn hb-fill-middle2-bg-br">Slide Middle</a>
<a href="#" class="hbtn hb-fill-top-rev-bg-br">Reveal Top 4</a>
<a href="#" class="hbtn hb-fill-right-rev-bg-br">Reveal Right 4</a>
<a href="#" class="hbtn hb-fill-bottom-rev-bg-br">Reveal Bottom 4</a>
<a href="#" class="hbtn hb-fill-left-rev-bg-br">Reveal Left 4</a>
<a href="#" class="hbtn hb-fill-middle-rev-bg-br">Reveal Middle</a>
<a href="#" class="hbtn hb-fill-middle2-rev-bg-br">Reveal Middle</a>
                

鼠标hover按钮边框过渡动画效果:

第一组:

<a href="#" class="hbtn hb-border-off">Border Fade</a>
<a href="#" class="hbtn hb-border-off2">Border Reverse</a>
<a href="#" class="hbtn hb-border-off3">Border Spin</a>
<a href="#" class="hbtn hb-border-top">Border Top</a>
<a href="#" class="hbtn hb-border-right">Border Right</a>
<a href="#" class="hbtn hb-border-bottom">Border Bottom</a>
<a href="#" class="hbtn hb-border-left">Border Left</a>
                

第二组:

<a href="#" class="hbtn hb-border-top2">Fade Top</a>
<a href="#" class="hbtn hb-border-right2">Fade Right</a>
<a href="#" class="hbtn hb-border-bottom2">Fade Bottom</a>
<a href="#" class="hbtn hb-border-left2">Fade Left</a>
                

第三组:

<a href="#" class="hbtn hb-border-top-br">Fade Top 2</a>
<a href="#" class="hbtn hb-border-right-br">Fade Right 2</a>
<a href="#" class="hbtn hb-border-bottom-br">Fade Bottom 2</a>
<a href="#" class="hbtn hb-border-left-br">Fade Left 2</a>
                

第四组:

<a href="#" class="hbtn hb-border-top-br2">Fade Top 3</a>
<a href="#" class="hbtn hb-border-right-br2">Fade Right 3</a>
<a href="#" class="hbtn hb-border-bottom-br2">Fade Bottom 3</a>
<a href="#" class="hbtn hb-border-left-br2">Fade Left 3</a>
                

第五组:

<a href="#" class="hbtn hb-border-top-br3">Detail Top</a>
<a href="#" class="hbtn hb-border-right-br3">Detail Right</a>
<a href="#" class="hbtn hb-border-bottom-br3">Detail Bottom</a>
<a href="#" class="hbtn hb-border-left-br3">Detail Left</a>
                

第六组:

<a href="#" class="hbtn hb-border-top-br4">Detail Top 2</a>
<a href="#" class="hbtn hb-border-right-br4">Detail Right 2</a>
<a href="#" class="hbtn hb-border-bottom-br4">Detail Bottom 2</a>
<a href="#" class="hbtn hb-border-left-br4">Detail Left 2</a>
                

该CSS3鼠标hover按钮过渡动画效果的github地址为:https://github.com/Varin6/Hover-Buttons