html - Sliding up content is not working properly -
i newbie in html , css. trying make portion in webpage, want image , text slide side side. used html , css that.
here link code in jsfiddle:
/* chrome, safari, opera */ @-webkit-keyframes mymove { 0% { top: 0%; } 20% { top: -0%; } 25% { top: -20%; } 45% { top: -25%; } 50% { top: -45%; } 70% { top: -50%; } 75% { top: -70%; } 95% { top: -75%; } 100% { top: -100%; } } /* standard syntax */ @keyframes mymove { 0% { top: 0%; } 20% { top: -0%; } 25% { top: -20%; } 45% { top: -25%; } 50% { top: -45%; } 70% { top: -50%; } 75% { top: -70%; } 95% { top: -75%; } 100% { top: -100%; } }
actually sliding images not showing text. need both.
please check updated code. works fine.
#image_slider_right { background-color: #ccff00; width: 50%; float: left; height: 250px; margin: 50px 0 0 50px; } /* chrome, safari, opera */ @-webkit-keyframes mymove { 0% { top: 0%; } 20% { top: -0%; } 25% { top: -20%; } 45% { top: -25%; } 50% { top: -45%; } 70% { top: -50%; } 75% { top: -70%; } 95% { top: -75%; } 100% { top: -100%; } } /* standard syntax */ @keyframes mymove { 0% { top: 0%; } 20% { top: -0%; } 25% { top: -20%; } 45% { top: -25%; } 50% { top: -45%; } 70% { top: -50%; } 75% { top: -70%; } 95% { top: -75%; } 100% { top: -100%; } } div#sliderup { overflow: hidden; position: relative; height: 100%; margin-left: 10px; width: 98%; } div#sliderup figure .img_up { width: 98%; height: 100%; float: left; margin-bottom: 10px; position: relative; } div#sliderup figure { position: relative; width: 98%; margin: 0; text-align: left; animation: 20s mymove infinite; } .divimgslideup { float: left; width: 50%; } .divimgslideup_txt { float: left; width: 50%; }
<div id="image_slider_right"> <div id="sliderup"> <figure> <div class="img_up"> <div class="divimgslideup"> <img src="http://php.quicoto.com/wp-content/uploads/2013/06/css3.jpg" alt="" height="100px" width="100px"> </div> <div class="divimgslideup_txt"> <strong>make best choice</strong> <p>with 17 unique 1, 2 & 3 bedroom floor plans available, tap find the</p> </div> </div> <div class="img_up"> <div class="divimgslideup"> <img src="http://php.quicoto.com/wp-content/uploads/2013/06/css3.jpg" alt="" height="100px" width="100px"> </div> <div class="divimgslideup_txt"> <strong>get comfortable</strong> <p>quality , exceptional value foundations of our philosophy. satisfaction home our</p> </div> </div> <figure> </div> </div> </div>
check working code on jsfiddle
Comments
Post a Comment