.ci { } .ci-background { position: absolute; background: gray; width:60px; height:51px; border: solid 1px white; } .ci-highlight { position: absolute; width: 60px; height: 51px; outline: solid 3px yellow; outline-offset: 3px; visibility: hidden; } .ci-highlight:hover { visibility: visible; animation: blinker 1s linear infinite; } @keyframes blinker { 50% { opacity: 0; } }