CSS Animated Circles - Stop center content from rotating

后端 未结 1 571
粉色の甜心
粉色の甜心 2020-12-22 09:55

I\'ve been trying to alter this example of CSS3 animated circles (original by Rishabh) so that the arrow in the centre does not rotate. However, the only way I can get it be

1条回答
  •  粉色の甜心
    2020-12-22 10:19

    one method would be to break the nesting apart and stack the elements, and then position them accordingly.

    I positioned each of the items as needed within the position:absolute; settings adn then broke out the divs from the nesting:

    HTML

    RELEVANT CSS:

    #content {
      position:absolute;
        top: 220px;
        left: 350px;
    }
    
    #center-circle {
      position:absolute;
        top:190px;
        left: 320px;
    }
    
    #inner-circle {
      position:absolute;
        left: 300px;
        top: 170px;
    }
    

    DEMO

    0 讨论(0)
提交回复
热议问题