javascript - element css animation - one element push other element higher -


i want make animation this: when hover on div contains image , text visible beginning, other div below text , image "fadeinup", (this animation taken animate.css https://daneden.github.io/animate.css/). when animate div fadeinup, text , image above jump up. want make text , image move smoothly div fadeinup. here code, hope more understandable:

    <div class="service_box_first" onmouseover="service();" onmouseleave="serviceout();">          <div class="text-vcenter">               <div class="index_service_heading" id="naslov">                    <img src="images/brandingikona.png"/>                     <div>branding</div>               </div>               <div class="index_service_description animated" id="text">                    text               </div>          </div>     </div>  .service_box_first {         display: table;         position: relative;     }  .text-vcenter {     display: table-cell;     text-align: center;     vertical-align: middle; }  .index_service_description {     line-height: 18px;     text-align: justify;     overflow: hidden;     padding: 20px;     font-size: 16px;     width: 80%;     max-width: 300px;      margin-left: auto;     margin-right: auto; } 

classes .service_box_first , .text-vcenter used vertically center content inside div .text-vcenter class. functions service() , serviceout() used animate div text. animation here:

    @-webkit-keyframes fadeinup {           0% {             opacity: 0;             -webkit-transform: translate3d(0, 100%, 0);             transform: translate3d(0, 100%, 0);             height: 0px;           }            100% {             opacity: 1;             -webkit-transform: none;             transform: none;               height: 150px;           }         }          @keyframes fadeinup {      0% {         opacity: 0;         -webkit-transform: translate3d(0, 100%, 0);         transform: translate3d(0, 100%, 0);       }        100% {         opacity: 1;         -webkit-transform: none;         transform: none;       }     }      .fadeinup {       -webkit-animation-name: fadeinup;       animation-name: fadeinup;     } 


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -