css3 - create an inverse instance of my css @-webkit-keyframes animation -


so, have below. vertically marquees 3 selected images css image carousel (from background images). i'm trying create second instance of this, marquees different set of 3 images in opposite direction. reversing numbers -600 600 example not work. suggestions?


update visual clarification: trying create 2 instances of within same parent div. 1 have functions fiddle. alteration can see using background images. second instances of i want scroll in opposite direction, that's - albeit tweaks aren't getting effect.


so, this works sliding upward. how can achieve opposite effect?

   @-webkit-keyframes scroll {         0%   { margin-top: 0; }         30%  { margin-top: 0 }         60% { margin-top: -600px; }         100% { margin-top: -1200px; }     } 

full css.

   .left {        float:left;        border-right: 4px solid white;        overflow-x:hidden;         .items {             -webkit-animation: scroll 3s infinite;             -moz-animation: scroll 3s infinite;             -ms-animation: scroll 3s infinite;         }         @-webkit-keyframes scroll {             0%   { margin-top: 0; }             30%  { margin-top: 0 }             60% { margin-top: -600px; }             100% { margin-top: -1200px; }         }         @-moz-keyframes scroll {             0%   { margin-top: 0; }             30%  { margin-top: 0 }             60% { margin-top: -600px; }             100% { margin-top: -1200px; }         }         @-ms-keyframes scroll {             0%   { margin-top: 0; }             30%  { margin-top: 0 }             60% { margin-top: -600px; }             100% { margin-top: -1200px; }          }      #bg1 {          width: 670px;         height: 600px;         background: url(/../../../../wp-content/uploads/2016/11/left_hpslide2.jpg);         background-size: 100%;         background-repeat:no-repeat;         display: block;      }      #bg2 {          width: 670px;         height: 600px;         background: url(/../../../../wp-content/uploads/2016/11/left_hpslide3.jpg);         background-size: 100%;         background-repeat:no-repeat;         display: block;      }      #bg3 {          width: 670px;         height: 600px;         background: url(/../../../../wp-content/uploads/2016/11/left_hpslide1.jpg);         background-size: 100%;         background-repeat:no-repeat;         display: block;         }      } 

so, here i'm @ within attempt @ second instance.

  .right {           float:right;          overflow-x:hidden;          .items {                 -webkit-animation: upscroll 3s infinite;                 -moz-animation: upscroll 3s infinite;                 -ms-animation: upscroll 3s infinite;                 overflow-x:hidden;             }             @-webkit-keyframes upscroll {                 0%   { margin-top: 0; }                 30%  { margin-top: 600 }                 60% { margin-top: 1200px; }                 100% { margin-top: 1800px; }             }             @-moz-keyframes upscroll {                 0%   { margin-top: 0; }                 30%  { margin-top: 600 }                 60% { margin-top: 1200px; }                 100% { margin-top: 1800px; }             }             @-ms-keyframes upscroll {                 0%   { margin-top: 0; }                 30%  { margin-top: 600 }                 60% { margin-top: 1200px; }                 100% { margin-top: 1800px; }              } 

here mark-up.

<div class="verticalbgslide">  <div class="left">  <div class="scrollable items">  <div id="bg1"></div> <div id="bg2"></div> <div id="bg3"></div>  </div> </div>  <div class="right">  <div class="scrollable items">  <div id="bg1"></div> <div id="bg2"></div> <div id="bg3"></div>  </div> </div> </div> 

just reverse actual frames. key thing here think frames need same show images according html provided, need change order change animation:

@-webkit-keyframes scroll {   0%   { margin-top: -1000px; } 27.33%  { margin-top: -1000px; }   33.33%  { margin-top: -500px; } 60.66% { margin-top: -500px; } 66.66% { margin-top: 0px; } 94.99% { margin-top: 0px; }   100%  { margin-top: -1000px; } } 

here's fiddle:

http://jsfiddle.net/c8u0h0o0/


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -