ITPub博客

首页 > IT职业 > IT图书 > css a标签追加移入动画

css a标签追加移入动画

IT图书 作者:nonocast 时间:2021-09-09 08:54:17 0 删除 编辑

a标签代码

a target="_blank" href="#" class="bottom-href">点击咨询课程a> 

图片描述

.bottom-href {
    width: 299px;
    height: 64px;
    background-color: #fde17d;
    border-radius: 32px;
    font-family: SourceHanSansSC-Bold;
    font-size: 24px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 64px;
    letter-spacing: 0px;
    color: #382f13;
    overflow: hidden;
    position: relative;
    display: block;
    text-align: center;
}
.bottom-href:after {
    content: "";
    position: absolute;
    background: none repeat scroll 0 0 #ff7233;
    width: 0%;
    height: 0%;
    left: 50%;
    top: 50%;
    z-index: -1;
    border-radius: 50%;
    opacity: .5;
    transform: translateX(-50%) translateY(-50%);
    transition: all .3s ease;
}
.bottom-href:link, .bottom-href:visited {
    z-index:3;
}
.bottom-href:hover:after {
    height: 450%;
    width: 110%;
    opacity: 1;
}

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4618/viewspace-2797916/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-13

  • 博文量
    82
  • 访问量
    844