子比给页脚第三板块二维码增加科技跑马灯
作者: | 发布时间: 2025年4月22日 | 本文共有: 596个字
南尧派社区 - 共享全球资源创造无限价值

子比给页脚第三板块二维码增加科技跑马灯

原作者:初一大神

将代码放置于自定义CSS内,由于是SCSS代码,看不懂请不要轻易修改,也不要在控制台修改

/*底部板块三图片border*/
.footer-miniimg {
  p{
    position: relative;
    &:hover {
        filter: contrast(1.1);
    }
    
    &:active {
        filter: contrast(0.9);
    }
    &::before,
    &::after{
        content: "";
        border: 2px solid;
        border-image: linear-gradient(45deg, gold, deeppink) 1;
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        animation: clippath 3s infinite ;
    }
    &::before{
        animation: clippath 3s infinite -1.5s linear;
    }
  }
}

@keyframes clippath {
  0%,
  100% {
      clip-path: inset(0 0 96% 0);
      filter: hue-rotate(0deg);
  }
  25% {
      clip-path: inset(0 96% 0 0);
  }
  50% {
      clip-path: inset(96% 0 0 0);
      filter: hue-rotate(360deg);
  }
  75% {
      clip-path: inset(0 0 0 96%);
  }
}
© 免责声明
请登录后发表评论

    没有回复内容