1 .siderbarTitle{
 2         display: inline-block;
 3         width:100px;
 4         word-break: keep-all;
 5         overflow: hidden;
 6         text-overflow: ellipsis;
 7         &:hover{
 8             overflow: visible;
 9             animation: 3s siderbar linear infinite normal;
10             z-index: 0;
11         }
12         @keyframes siderbar {
13             0% {
14                 transform: translateX(0);
15                 -webkit-transform: translateX(0);
16             }
17             100% {
18                 transform: translateX(-45px);
19                 -webkit-transform: translateX(-45px);
20             }
21         }
22     }
<style lang="scss" scoped></style >
style中要加上lang="scss"

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2022-01-07
  • 2022-01-04
  • 2021-07-27
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-11-22
  • 2021-10-08
  • 2021-12-04
相关资源
相似解决方案