Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Css3 transitions working in chrome only, doesn't work in safari and mozilla

Css3 transitions working in chrome only, doesn't work in safari and mozilla

Problem

Css3 transitions working in chrome only, doesn't work in safari and mozilla.

Here is the code



    Simple Fade-in/Fade-out animation

Simple fade-in/fade-out example

Problem courtesy of: iJade

Solution

Include also transition: opacity 0.5s ease-in; in your #mainFrame.

CSS transition properties can be used without any prefix provider, but since the specification has only recently achieved stability, the vendor prefixes can still be necessary for browsers based on WebKit.

Source

and also

Change the below css

 #mainFrame.fade-out {
     opacity:0;
 }
 #mainFrame.fade-in {
     opacity:1;
 }

to this and check once:

 .fade-out {
     opacity:0;
 }
 .fade-in {
     opacity:1;
 }

UPDATE2: (source)

Add ?wmode=opaque to your youtube url. Working fine here :).

Working Fiddle

Solution courtesy of: Mr_Green - divami.com

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

Css3 transitions working in chrome only, doesn't work in safari and mozilla

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×