CSS3 Transition not working
up vote
8
down vote
favorite
I couldn't get transitions to work on this page, anybody has any idea why?
div.sicon a
transition: background 0.5s linear;
-moz-transition: background 0.5s linear; /* Firefox 4 */
-webkit-transition: background 0.5s linear; /* Safari and Chrome */
-o-transition: background 0.5s linear; /* Opera */
-ms-transition: background 0.5s linear; /* Explorer 10 */
css css3 css-transitions
add a comment |
up vote
8
down vote
favorite
I couldn't get transitions to work on this page, anybody has any idea why?
div.sicon a
transition: background 0.5s linear;
-moz-transition: background 0.5s linear; /* Firefox 4 */
-webkit-transition: background 0.5s linear; /* Safari and Chrome */
-o-transition: background 0.5s linear; /* Opera */
-ms-transition: background 0.5s linear; /* Explorer 10 */
css css3 css-transitions
1
What exactly is the issue?
– Steve Adams
Oct 28 '11 at 0:47
What actually are you trying to do with background?
– Rajat Saxena
Nov 2 '11 at 14:16
looks great to me anyway on the page so can't see what the issue is.
– Michael Durrant
Nov 18 '11 at 14:02
add a comment |
up vote
8
down vote
favorite
up vote
8
down vote
favorite
I couldn't get transitions to work on this page, anybody has any idea why?
div.sicon a
transition: background 0.5s linear;
-moz-transition: background 0.5s linear; /* Firefox 4 */
-webkit-transition: background 0.5s linear; /* Safari and Chrome */
-o-transition: background 0.5s linear; /* Opera */
-ms-transition: background 0.5s linear; /* Explorer 10 */
css css3 css-transitions
I couldn't get transitions to work on this page, anybody has any idea why?
div.sicon a
transition: background 0.5s linear;
-moz-transition: background 0.5s linear; /* Firefox 4 */
-webkit-transition: background 0.5s linear; /* Safari and Chrome */
-o-transition: background 0.5s linear; /* Opera */
-ms-transition: background 0.5s linear; /* Explorer 10 */
css css3 css-transitions
css css3 css-transitions
edited Jan 11 '12 at 19:48
BoltClock♦
508k12511431190
508k12511431190
asked Oct 28 '11 at 0:44
Extelliqent
29921128
29921128
1
What exactly is the issue?
– Steve Adams
Oct 28 '11 at 0:47
What actually are you trying to do with background?
– Rajat Saxena
Nov 2 '11 at 14:16
looks great to me anyway on the page so can't see what the issue is.
– Michael Durrant
Nov 18 '11 at 14:02
add a comment |
1
What exactly is the issue?
– Steve Adams
Oct 28 '11 at 0:47
What actually are you trying to do with background?
– Rajat Saxena
Nov 2 '11 at 14:16
looks great to me anyway on the page so can't see what the issue is.
– Michael Durrant
Nov 18 '11 at 14:02
1
1
What exactly is the issue?
– Steve Adams
Oct 28 '11 at 0:47
What exactly is the issue?
– Steve Adams
Oct 28 '11 at 0:47
What actually are you trying to do with background?
– Rajat Saxena
Nov 2 '11 at 14:16
What actually are you trying to do with background?
– Rajat Saxena
Nov 2 '11 at 14:16
looks great to me anyway on the page so can't see what the issue is.
– Michael Durrant
Nov 18 '11 at 14:02
looks great to me anyway on the page so can't see what the issue is.
– Michael Durrant
Nov 18 '11 at 14:02
add a comment |
3 Answers
3
active
oldest
votes
up vote
12
down vote
accepted
Transition is more like an animation.
div.sicon a
background:-moz-radial-gradient(left, #ffffff 24%, #cba334 88%);
transition: background 0.5s linear;
-moz-transition: background 0.5s linear; /* Firefox 4 */
-webkit-transition: background 0.5s linear; /* Safari and Chrome */
-o-transition: background 0.5s linear; /* Opera */
-ms-transition: background 0.5s linear; /* Explorer 10 */
So you need to invoke that animation with an action.
div.sicon a:hover
background:-moz-radial-gradient(left, #cba334 24%, #ffffff 88%);
Also check for browser support and if you still have some problem with whatever you're trying to do! Check css-overrides in your stylesheet and also check out for behavior: ***.htc
css hacks.. there may be something overriding your transition!
You should check this out: http://www.w3schools.com/css/css3_transitions.asp
add a comment |
up vote
3
down vote
Is this what you need:
http://jsfiddle.net/vSUQP/16/
1
No actual text to answer.
– jmathew
Apr 20 at 14:43
add a comment |
up vote
0
down vote
For me, it was having display: none;
#spinner-success-text
display: none;
transition: all 1s ease-in;
#spinner-success-text.show
display: block;
Removing it, and using opacity
instead, fixed the issue.
#spinner-success-text
opacity: 0;
transition: all 1s ease-in;
#spinner-success-text.show
opacity: 1;
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
12
down vote
accepted
Transition is more like an animation.
div.sicon a
background:-moz-radial-gradient(left, #ffffff 24%, #cba334 88%);
transition: background 0.5s linear;
-moz-transition: background 0.5s linear; /* Firefox 4 */
-webkit-transition: background 0.5s linear; /* Safari and Chrome */
-o-transition: background 0.5s linear; /* Opera */
-ms-transition: background 0.5s linear; /* Explorer 10 */
So you need to invoke that animation with an action.
div.sicon a:hover
background:-moz-radial-gradient(left, #cba334 24%, #ffffff 88%);
Also check for browser support and if you still have some problem with whatever you're trying to do! Check css-overrides in your stylesheet and also check out for behavior: ***.htc
css hacks.. there may be something overriding your transition!
You should check this out: http://www.w3schools.com/css/css3_transitions.asp
add a comment |
up vote
12
down vote
accepted
Transition is more like an animation.
div.sicon a
background:-moz-radial-gradient(left, #ffffff 24%, #cba334 88%);
transition: background 0.5s linear;
-moz-transition: background 0.5s linear; /* Firefox 4 */
-webkit-transition: background 0.5s linear; /* Safari and Chrome */
-o-transition: background 0.5s linear; /* Opera */
-ms-transition: background 0.5s linear; /* Explorer 10 */
So you need to invoke that animation with an action.
div.sicon a:hover
background:-moz-radial-gradient(left, #cba334 24%, #ffffff 88%);
Also check for browser support and if you still have some problem with whatever you're trying to do! Check css-overrides in your stylesheet and also check out for behavior: ***.htc
css hacks.. there may be something overriding your transition!
You should check this out: http://www.w3schools.com/css/css3_transitions.asp
add a comment |
up vote
12
down vote
accepted
up vote
12
down vote
accepted
Transition is more like an animation.
div.sicon a
background:-moz-radial-gradient(left, #ffffff 24%, #cba334 88%);
transition: background 0.5s linear;
-moz-transition: background 0.5s linear; /* Firefox 4 */
-webkit-transition: background 0.5s linear; /* Safari and Chrome */
-o-transition: background 0.5s linear; /* Opera */
-ms-transition: background 0.5s linear; /* Explorer 10 */
So you need to invoke that animation with an action.
div.sicon a:hover
background:-moz-radial-gradient(left, #cba334 24%, #ffffff 88%);
Also check for browser support and if you still have some problem with whatever you're trying to do! Check css-overrides in your stylesheet and also check out for behavior: ***.htc
css hacks.. there may be something overriding your transition!
You should check this out: http://www.w3schools.com/css/css3_transitions.asp
Transition is more like an animation.
div.sicon a
background:-moz-radial-gradient(left, #ffffff 24%, #cba334 88%);
transition: background 0.5s linear;
-moz-transition: background 0.5s linear; /* Firefox 4 */
-webkit-transition: background 0.5s linear; /* Safari and Chrome */
-o-transition: background 0.5s linear; /* Opera */
-ms-transition: background 0.5s linear; /* Explorer 10 */
So you need to invoke that animation with an action.
div.sicon a:hover
background:-moz-radial-gradient(left, #cba334 24%, #ffffff 88%);
Also check for browser support and if you still have some problem with whatever you're trying to do! Check css-overrides in your stylesheet and also check out for behavior: ***.htc
css hacks.. there may be something overriding your transition!
You should check this out: http://www.w3schools.com/css/css3_transitions.asp
edited Apr 11 '15 at 13:27
SZenC
2,83831926
2,83831926
answered Nov 18 '11 at 13:38
Berker Yüceer
2,921164786
2,921164786
add a comment |
add a comment |
up vote
3
down vote
Is this what you need:
http://jsfiddle.net/vSUQP/16/
1
No actual text to answer.
– jmathew
Apr 20 at 14:43
add a comment |
up vote
3
down vote
Is this what you need:
http://jsfiddle.net/vSUQP/16/
1
No actual text to answer.
– jmathew
Apr 20 at 14:43
add a comment |
up vote
3
down vote
up vote
3
down vote
Is this what you need:
http://jsfiddle.net/vSUQP/16/
Is this what you need:
http://jsfiddle.net/vSUQP/16/
answered Oct 28 '11 at 7:26
user106197
1
No actual text to answer.
– jmathew
Apr 20 at 14:43
add a comment |
1
No actual text to answer.
– jmathew
Apr 20 at 14:43
1
1
No actual text to answer.
– jmathew
Apr 20 at 14:43
No actual text to answer.
– jmathew
Apr 20 at 14:43
add a comment |
up vote
0
down vote
For me, it was having display: none;
#spinner-success-text
display: none;
transition: all 1s ease-in;
#spinner-success-text.show
display: block;
Removing it, and using opacity
instead, fixed the issue.
#spinner-success-text
opacity: 0;
transition: all 1s ease-in;
#spinner-success-text.show
opacity: 1;
add a comment |
up vote
0
down vote
For me, it was having display: none;
#spinner-success-text
display: none;
transition: all 1s ease-in;
#spinner-success-text.show
display: block;
Removing it, and using opacity
instead, fixed the issue.
#spinner-success-text
opacity: 0;
transition: all 1s ease-in;
#spinner-success-text.show
opacity: 1;
add a comment |
up vote
0
down vote
up vote
0
down vote
For me, it was having display: none;
#spinner-success-text
display: none;
transition: all 1s ease-in;
#spinner-success-text.show
display: block;
Removing it, and using opacity
instead, fixed the issue.
#spinner-success-text
opacity: 0;
transition: all 1s ease-in;
#spinner-success-text.show
opacity: 1;
For me, it was having display: none;
#spinner-success-text
display: none;
transition: all 1s ease-in;
#spinner-success-text.show
display: block;
Removing it, and using opacity
instead, fixed the issue.
#spinner-success-text
opacity: 0;
transition: all 1s ease-in;
#spinner-success-text.show
opacity: 1;
answered 2 days ago
Abdoosk
11
11
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f7924038%2fcss3-transition-not-working%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
What exactly is the issue?
– Steve Adams
Oct 28 '11 at 0:47
What actually are you trying to do with background?
– Rajat Saxena
Nov 2 '11 at 14:16
looks great to me anyway on the page so can't see what the issue is.
– Michael Durrant
Nov 18 '11 at 14:02