Jump to content

Problem With CSS3 Transitions In Firefox (codepen provided)


pleek

Recommended Posts

I'm having a problem using opacity transitions on anything that is rotated using CSS3. I have a div rotated -20 degrees and three paragraphs that transform from

margin-left:50px;
opacity:0;

to

margin-left:0px;
opacity:1;

 

This works fine on its own but when I put it inside the div that is rotated -20 degrees it produces a weird focusing effect when the transition is triggered. This only happens when I try to transition the opacity level.

 

CodePen - http://codepen.io/anon/full/uhCLn

 

In Chrome the transitions work great, but in firefox its like the text goes out of focus then refocus when the transition is complete. Is there anyway to fix this or is this another CSS compatibility issue?

Link to comment
Share on other sites

transitions require vendor prefixes (-webkit, -moz, -o, etc). this is because there is no standardized engine rendering method for the CSS property - which means there will be discrepancies on how it will be displayed.  For this reason, it is advised that you do not use these properties for anything outside of "play".

Link to comment
Share on other sites

Okay thats what I figured. Okay second question, can you steer me in the right direction on how to change the css attributes of an object responsively (currently the effects are triggered by :hover) and achieve the same animation i'm currently using CSS3 transitions for?

 

Thanks for your help Mahngiel

Link to comment
Share on other sites

Okay I tried to do the same technique using jQuery to animate the opacity.

 

$('div.four').hover(function(){
$(this).find('p').animate({opacity:'1'},{queue:false,duration:500});
}, function(){
        $(this).find('p').animate({opacity:'0'},{queue:false,duration:500});
});

 

The animation is nice and smooth but I still get the same unfocused bug with all the text. Any other suggestions? It seems that any animation of the opacity while content is rotated produces this problem.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.