javascript - How to open and close square box animation using css -
i trying animate square div open top. try close box. working. how opposite of that.now want open top bottom.i used showbox function opening div top bottom.i thing going wrong somewhre.
i new in this.i want animation.you check box in link.i facing while opening it. https://dribbble.com/shots/1375652-gif-animation-abracadabra-app. can guide me please.
here code
function showbox() { settimeout(function() { $("#slide1").show(); //$("#slide1").addclass("transitionin"); settimeout(function() { // $("#slide1").removeclass("transitionin"); $("#slide1").addclass("transitionin"); }, 300) `enter code here` }, 500); } showbox();
.transitionin { -webkit-transform: translate3d(0, 0, 0) rotate3d(1, 0, 0, 90deg); -moz-transform: translate3d(0, 0, 0) rotate3d(1, 0, 0, 90deg); -o-transform: translate3d(0, 0, 0) rotate3d(1, 0, 0, 90deg); -ms-transform: translate3d(0, 0, 0) rotate3d(1, 0, 0, 90deg); transform: translate3d(0, 0, 0) rotate3d(1, 0, 0, 90deg); }
<div class="view" id="slide1">message</div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
Comments
Post a Comment