CSS3 Animation speeds up on browser resize - HTML CSS CSS Animation

HTML CSS examples for CSS Animation:Speed

Description

CSS3 Animation speeds up on browser resize

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
@-webkit-keyframes ticker {<!--  w w  w  .j  av a  2s.c  o m-->
   0% {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
      visibility: visible;
   }
   100% {
      -webkit-transform: translate3d(-100%, 0, 0);
      transform: translate3d(-100%, 0, 0);
   }
}

@keyframes ticker {
   0% {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
      visibility: visible;
   }
   100% {
      -webkit-transform: translate3d(-100%, 0, 0);
      transform: translate3d(-100%, 0, 0);
   }
}

.mobile-slide .my {
   width: 100%;
   position: fixed;
   padding: 0 !important;
   top: 0;
   height: 20px;
   display: block !important;
}

.mobile-slide .my .inside {
   width: auto !important;
   position: absolute;
   height: 20px !important;
   line-height: 20px;
   white-space: nowrap;
   padding: 0 0 0 100% !important;
   -webkit-animation-iteration-count: infinite;
   animation-iteration-count: infinite;
   -webkit-animation-timing-function: linear;
   animation-timing-function: linear;
   -webkit-animation-name: ticker;
   animation-name: ticker;
   -webkit-animation-duration: 20s;
   animation-duration: 20s;
}

.mobile-slide .my .inside a {
   display: inline-block;
   font-size: 10px;
}


      </style> 
 </head> 
 <body> 
  <div class="grid--full mobile-slide"> 
   <div class="my grid__item text-center"> 
    <div class="inside"> 
     <a href="#linksomewhere">this is a test this is a test</a> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials