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 */










share|improve this question



















  • 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















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 */










share|improve this question



















  • 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













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 */










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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













  • 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













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






share|improve this answer





























    up vote
    3
    down vote













    Is this what you need:



    http://jsfiddle.net/vSUQP/16/






    share|improve this answer
















    • 1




      No actual text to answer.
      – jmathew
      Apr 20 at 14:43

















    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;






    share|improve this answer




















      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      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






























      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






      share|improve this answer


























        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






        share|improve this answer
























          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






          share|improve this answer














          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







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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






















              up vote
              3
              down vote













              Is this what you need:



              http://jsfiddle.net/vSUQP/16/






              share|improve this answer
















              • 1




                No actual text to answer.
                – jmathew
                Apr 20 at 14:43














              up vote
              3
              down vote













              Is this what you need:



              http://jsfiddle.net/vSUQP/16/






              share|improve this answer
















              • 1




                No actual text to answer.
                – jmathew
                Apr 20 at 14:43












              up vote
              3
              down vote










              up vote
              3
              down vote









              Is this what you need:



              http://jsfiddle.net/vSUQP/16/






              share|improve this answer












              Is this what you need:



              http://jsfiddle.net/vSUQP/16/







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Oct 28 '11 at 7:26







              user106197














              • 1




                No actual text to answer.
                – jmathew
                Apr 20 at 14:43












              • 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










              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;






              share|improve this answer
























                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;






                share|improve this answer






















                  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;






                  share|improve this answer












                  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;







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 days ago









                  Abdoosk

                  11




                  11



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      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














































































                      Popular posts from this blog

                      Top Tejano songwriter Luis Silva dead of heart attack at 64

                      ReactJS Fetched API data displays live - need Data displayed static

                      政党