Choppy animation using html & css Only rotate: Y axis -
i'm trying replicate cool aspect saw on youtube video have 2 divs seperate content on each side , use rotate y axis spin them around , show reverse. far using html , css.
i have set "reverse side visibility hidden shown on youtube video" actual animation works great , looks great theres slight bug when hover on content , go on before has done full rotation previous side jumps through , sort of ruins effect.
i have tried adding animation blur cover while looks , adds effect of flip still doesn't problem, i've tried lots of ideas still hasn't helped. i've tried adding overflow hidden 4 aspects helped little still ruins whole aesthetics of having animation if looks weird...
does know fix problem.... html code is:
.front { background: -webkit-linear-gradient(left,#91043c,teal); background: -moz-linear-gradient(right,#91043c,teal); background: -o-linear-gradient(right,#91043c,teal); background: linear-gradient(left,#91043c,teal); margin:0.2% 0.2% 0.2% 0.2%; border-radius:10px; height:132px; width:22.2%; transform: perspective(600px) rotatey(0deg); transition: transform 0.87s linear 0s; backface-visibility:hidden; position: absolute; } .bx:hover > .front { transform: perspective(600px) rotatey( -180deg); overflow: hidden; -webkit-animation: cardsanime 0.88s infinite 0s; -moz-animation: cardsanime 0.88s infinite 0s; -o-animation: cardsanime 0.88s infinite 0s; animation: cardsanime 0.88s infinite 0s; } @keyframes cardsanime { 20%{z-index: 1; box-shadow:2px 0px 2px 1px rgba(0,149,255,2)} 40%{z-index: 1; box-shadow:8px 0px 2px 2px rgba(0,149,255,4)} 60%{z-index: 1; box-shadow:4px 0px 2px 2px rgba(0,149,255,6)} 80%{z-index: 1; box-shadow:8px 0px 4px 2px rgba(8,255,245,4)} 100%{z-index: 1; box-shadow:2px 0px 4px 1px rgba(12,235,222,2)} } .back { background: -webkit-linear-gradient(left,teal,#91043c); background: -moz-linear-gradient(right,teal,#91043c); background: -o-linear-gradient(right,teal,#91043c); background: linear-gradient(left,teal,#91043c); transform: perspective(600px) rotatey(180deg); transition: transform 0.87s linear 0s; backface-visibility:hidden; position: absolute;overflow:hidden; margin:0.2% 0.2% 0.2% 0.2%; border-radius:12px; width:21.2%; height:132px; } .bx:hover > .back { transform: perspective(600px) rotatey( 0deg); overflow: hidden; float:left; -webkit-animation: cardsanime2 0.88s linear 0.12s; -moz-animation: cardsanime2 0.88s linear 0.12s; -o-animation: cardsanime2 0.88s linear 0.12s; animation: cardsanime2 0.88s linear 0.12s; } @keyframes cardsanime2 { 20%{filter:blur(4px);} 40%{filter:blur(8px);} 80%{filter:blur(4px);} } <wrapper id="cards"> <div id="box1" class="s3d"> <div class="bx"> <div class="box1 flip3d front">content1</div> <div class="box1 flip3d back">info back</div> </div> </div> </wrapper> i'm still new coding (3 weeks in) , have searched, long question put in google , find vague answers on threads find on here. or closest i've found totally different question using jquery , javascript. , other code there must css answer? maybe.. amazing.
Comments
Post a Comment