Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
html -
HTML
<div class="col-md-3 col-xs-6">
                      <div class="cube">
                        <div class="flippety">
                            <img src="img/cube5.png" width="98%">
                        </div>
                        <div class="flop">
                            <img src="img/cube6.jpg" width="98%">
                            
                        </div>
                    </div>
                    <br><br>
                  </div>


and css -
CSS
.cube:hover {
    
	-webkit-transform: rotateX(89deg);
	transform: rotateX(89deg);
     
}
.cube {
	text-align: center;
	margin: auto auto;
	height: 110px;

	-webkit-transition: -webkit-transform .33s;
	transition: transform .33s; /* Animate the transform properties */
    
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d; /* <-NB */
}
.flop {
    -ms-transform: rotateX(-90deg) translateZ(-50px);
	-webkit-transform: rotateX(-90deg) translateZ(-50px);
	transform: rotateX(-90deg) translateZ(-50px);
}


What I have tried:

I'm tring to build a cube with CSS3 3D Transform..
Posted
Updated 26-Jul-16 23:25pm

1 solution

Css3 transitions are supported only in ie 10 & 11. Check this link -
Can i use

CSS3 Transitions
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900