Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
450 views
in Technique[技术] by (71.8m points)

webkit - I have this css animation that works fine when I test it locally but when I launch it to github pages it doesn't work

I have this animation that works fine locally but when I launch the site to github pages it stops working

   .Vbtn-1 {
      background:transparent;
      text-align: center;
      float:left;
      color:white;
   }
   .Vbtn-1 svg {
      height: 50px;
      width: 165px;
      left: 0%;
      position: absolute;
      top: -5px;
   }
  .Vbtn-1 rect {
   fill: none;
   stroke: white;
   stroke-width: 4;
   stroke-dasharray: 422, 0;
   transition: all 450ms linear 0s;
}
.Vbtn-1:hover {
   background: rgba(225, 51, 45, 0);
   color: white;
   font-weight: 900;
   letter-spacing: 1px;
   transition: all 150ms linear 0s;
}
.Vbtn-1:hover rect {
   stroke-width: 5;
   stroke-dasharray: 15, 310;
   stroke-dashoffset: 48;
   -webkit-transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
   transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
}

Is it because I'm launching it on pages? I'm confused as to why it wouldn't look and work exactly the same if it's running on the same browser in the end

question from:https://stackoverflow.com/questions/65626689/i-have-this-css-animation-that-works-fine-when-i-test-it-locally-but-when-i-laun

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...