CSS effect followed by: circle after another circle

Link: http://tympanus.net/Development/IconHoverEffects/#set-7

When you flip any circle icon in the link above, it disappears in CURVE (which, I believe, is another WHITE circle after the circle that appears). I don't need this rollover effect, but I want to have a simple curve next to the circle.

I believe that we can do this with the class css after. I tried to create a class .circleand placed it afterwith a 10px field increase, but it does not work.

Can anyone check my code or suggest how to do this?

jsfiddle: http://jsfiddle.net/dBQ5s/

CSS

.circle {
    background:#000;
    color:#FFF !important;
    text-align:center;
    -moz-border-radius:75px;
    -webkit-border-radius:75px;
    border-radius:75px;
    width:100px;
    height:100px;
    border:5px SOLID RED;
}

.circle:after {
    background:green;
    -moz-border-radius:75px;
    -webkit-border-radius:75px;
    border-radius:75px;
    width:120px;
    height:120px;
    margin-left:20px;
    margin-top:20px;
}
+4
source share
1 answer

box-shadow .:]

!

content: ""; , , display: block; css.

css, ,

.circle {
    background:#000;
    color:#FFF !important;
    text-align:center;
    -moz-border-radius:75px;
    -webkit-border-radius:75px;
    border-radius:75px;
    width:100px;
    height:100px;
    border:5px SOLID #fff;
}

.circle:hover {
    box-shadow: 2px 3px 0 black;
}

: DEMO


,

.circle {
    background:#000;
    color:#FFF !important;
    text-align:center;
    -moz-border-radius:75px;
    -webkit-border-radius:75px;
    border-radius:75px;
    width:100px;
    height:100px;
    position: relative;
}

.circle:before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -55px;
    margin-top: -55px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    z-index: -1;
    box-shadow: 3px 5px 0 black;
    opacity: 0;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);

}

.circle:hover:before {
    opacity: 1;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
}

Fiddle: DEMO

+6

All Articles