Animation not working in CSS -


i using codepen , 1 of elements fade in , out. can't find errors in code still not working. help!

the item little logo box press open new window text. changes on mouseover make fade in , out people know need click it.

thanks danko, got working now! can't believe issue simple haha :)

.mainlink a:link, a:visited {     display: block;     background: url(http://i.imgur.com/e3eqrwv.jpg?2);     background-size:cover;      width: 50px;     height: 50px;     border-radius: 50%;       position: relative;     margin-left: auto;     margin-right: auto;     border: 2px solid black;     animation: fadin 3s infinite alternate;     -webkit-animation: fadin 3s infinite alternate;     -moz-animation: fadin 3s infinite alternate;     -o-animation: fadin 3s infinite alternate;}  @keyframes fadin {   0% {opacity: 100%;}   50% {opacity: 50%;}   100% {opacity: 0%;}}  @-webkit-keyframes fadin{    0% {opacity: 100%;}   50% {opacity: 50%;}   100% {opacity: 0%;}}  @-moz-keyframes fadin{    0% {opacity: 100%;}   50% {opacity: 50%;}   100% {opacity: 0%;}}  @-o-keyframes fadin{    0% {opacity: 100%;}   50% {opacity: 50%;}   100% {opacity: 0%;}} 

the problem here opacity doesn't accept % unit value. change value between

1 , 0 1 = 100% , 0 = 0%

try this:

@keyframes fadin {   0% {opacity: 1;}   100% {opacity: 0;} } 

.mainlink {    display: block;    background: url(http://i.imgur.com/e3eqrwv.jpg?2);    background-size: cover;    width: 50px;    height: 50px;    border-radius: 50%;    position: relative;    margin-left: auto;    margin-right: auto;    border: 2px solid black;    animation: fadin 3s infinite alternate;    -webkit-animation: fadin 3s infinite alternate;    -moz-animation: fadin 3s infinite alternate;    -o-animation: fadin 3s infinite alternate;  }  @keyframes fadin {    0% {      opacity: 1;    }    100% {      opacity: 0;    }  }  @-webkit-keyframes fadin {    0% {      opacity: 1;    }    100% {      opacity: 0;    }  }  @-moz-keyframes fadin {    0% {      opacity: 1;    }    100% {      opacity: 0;    }  }  @-o-keyframes fadin {    0% {      opacity: 1;    }    100% {      opacity: 0;    }  }
<div class="mainlink">    <a href="#"></a>  </div>


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -