#link a {
    transition: background-color 0.4s
}

#link a img {
    animation: b ease-in-out 0.4s 1;
}

@keyframes b {
    from {
        width: 0;
    }
    to {
        width: 1.25rem;
    }
}