美文网首页
css3按钮线条动画

css3按钮线条动画

作者: 干炸里脊不如你 | 来源:发表于2019-06-19 10:20 被阅读0次
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
body{background:#000;}
div{
    height:80px;
    width:80px;
    color:#fff;
    position:relative;
}
div::before {
    border-bottom: 1px solid #fff;
    border-top: 1px solid #fff;
    transform: scale3d(0, 1, 1);    
}
div::before {
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform-origin: center center 0;
    transition: transform 0.5s ease 0s;
    width: 100%;
}

div:hover::before {
    transform: scale3d(1, 1, 1);
}
div::before {
    border-bottom: 1px solid #fff;
    border-top: 1px solid #fff;
    transform: scale3d(0, 1, 1);
    width:80px;
    height:80px;
}
</style>
</head>

<body>
  <div>
      活动
  </div>
</body>
</html>

相关文章

  • css3按钮线条动画

  • 前端特效收集器

    前端特效收集器 近20个绚丽实用的jQuery/CSS3侧边栏菜单 9种css3圆形按钮hover鼠标经过动画效果...

  • css3线条进程动画

    代码 效果展示

  • 网页高级知识点(三)

    CSS3 transition动画 CSS3 transform变换 CSS3 animation动画

  • css

    图像倒影 鼠标滑过按钮 css3图片动画效果 背景色 多类选择器(.className1.className2)不...

  • 07day

    CSS3动画 CSS3 @keyframes 规则如需在 CSS3 中创建动画,您需要学习 @keyframes ...

  • 08_dayCSS动画

    CSS3新增的功能有:过渡和动画,阴影和圆角 css3过渡动画: css3都有哪些新增的东西 : 过度,动画,阴影...

  • CSS3 动画

    CSS3 动画CSS3,我们可以创建动画,它可以取代许多网页动画图像,Flash动画,和JAVAScripts。 ...

  • CSS3 动画

    动画属性 动画(animation)是CSS3新增的属性,动画属性可以为元素创建动画,CSS3以前在网页上实现动画...

  • css3动画

    css3动画 CSS3 可以创建动画,它可以取代许多网页动画图像、Flash 动画和 JavaScript 实现的...

网友评论

      本文标题:css3按钮线条动画

      本文链接:https://www.haomeiwen.com/subject/oxrhqctx.html