troubleshooting Question

Help me make this CSS work on Firefox please

Avatar of Tim Brocklehurst
Tim BrocklehurstFlag for United Kingdom of Great Britain and Northern Ireland asked on
CSSHTMLFirefox* compatibility
7 Comments1 Solution163 ViewsLast Modified:
Have a look here (pw: paris)
Each of the boxes in the grid has a nifty little card-flip on hover which displays a description of that benefit.

... unless you're using Firefox.

My version of Firefox (52) displays the boxes OK but when you hover on them it flips the SVG icons around (and the text), displays the backside only momentarily and then goes white.

Can anyone explain what I should do to make this grid compatible with Firefox.
As far as I know, all other browsers can see it fine.

Following is the html and code for each individual box.
Many thanks
Tim

HTML
<div class="flip-cards card-shadow rMargin">
  <div class="front-card">
    <div class="frow column-center">
        <div class="aSVGIcon">
              <svg class="[types field='svgscale' output='raw'][/types]" fill="#58595B" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve">[types field='svg-paths' output='raw'][/types]
              </svg>
        </div>
        <div class="cbenTitle">
                [wpv-post-title]
        </div>
    </div>
  </div>
  <div class="reverse-card" id="[wpv-post-id]">
    <p class="cbenText">[wpv-post-body view_template="None"]</p>
  </div>
</div>

CSS
.centerIt{
  margin: 0 auto; 
}
.rMargin{
  margin-right:5px; 
}
.flip-cards
{
    width:200px;
    height:200px;
    position:relative;
    /*background:#BBBDC0;*/
    /*margin-left:5px;*/
    /*margin-right:auto;*/
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
    -moz-transition: all 1s ease;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
}


.flip-cards:hover
{
    transform: rotateY( 181deg );
    -webkit-transform: rotateY(181deg);
    -moz-transform: rotateY(181deg);
    background:transparent;
}


.flip-cards div
{
    width:200px;
    height:200px;
    position:absolute;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
}

.front-card
{
    z-index: 2;
    background:#BBBDC0;
    position:relative;
    padding:0;
}

.reverse-card
{
    -webkit-transform: rotateY(181deg);
    transform: rotateY( 181deg );
    -moz-transform: rotateY( 181deg );
    background:#C64A4F;
    color:white;
    padding:10px;
}
.aSVGIcon{
}
.cbenTitle{
  margin-top:75%;
  color:#58595B;
  text-align:center;
  font-size:0.7em;
  text-transform:uppercase;
}
.asvgScale{
    transform: scale(0.5);
}
.lgScale{transform:scale(0.5);}
.mdScale{transform:scale(0.4);}
.smScale{transform:scale(0.3);}
.reverse-card p {
  font-size:0.8em; 
}
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros