Solution 1 :

You’ve got a double bracket which breaks the CSS. Just remove it

}
} <== this one
.makethelinknice {

Solution 2 :

It works for me, you were just missing a final curly brace at the end of your keyframes animations style declaration.

I would also like to add that it was really difficult to notice the actual animation running due to the animation durations you set at 120s ( 2 minutes! )

@keyframes lnktscolor {
    0% {
        color: #368588
    }

    50% {
        color: #593688
    }
    100% {
        color: #368588
    }
} /* <====== you missed this curly brace here */

Solution 3 :

It could be a bug with your browser, I tried it on codepen and it worked too. It may only work in frames, which would be weird, but it is working for me on everything I try. I also tried doing the same with plain HTML, on Google Chrome. It is most likely that your browser is more picky with your unclosed bracket:

@keyframes lnktscolor {

0% {

   color: #368588

}

50% {

   color: #593688

}
100% {

   color: #368588

}

here

Solution 4 :

It works for me:

HTML:

<div class="TextBodyTW">
    <a class="maket" href="C:UsershomeScaled404Index.html">Projects</a>
    <span>,</span>
    <a class="maket" href="C:UsershomeScaled404Index.html">Art</a>
    <span>,</span>
    <a class="maket" onclick="openabout()">About</a>
</div>

CSS:

.maket {
    animation: lnktscolor 3s infinite;
}

a.maket {
  text-decoration: none;
  cursor: none;
}

a.maket:hover,
a.maket:hover {
  text-decoration: underline;
    cursor: crosshair;
}

@keyframes lnktscolor {
    0% {
        color: #368588
    }

    50% {
        color: #593688
    }
    100% {
        color: #368588
    }
}  /* <====== CHECK THIS BRACKET */

Problem :

It will Apply to other elements, but not the first one, no matter what I try It will not work, suspect its a missing tag somewhere

.makethelinknice {
  animation: lnktscolor 120s infinite;
  text-decoration: none;
  cursor: crosshair;
}
.makethelinknice:hover {
  text-decoration: underline;
}
.makethenextlinknice {
  animation: lnktscolor 60s infinite;
  text-decoration: none;
  cursor: crosshair;
}
.makethenextlinknice:hover {
  text-decoration: underline;
}
.makethelastlinknice {
  animation: lnktscolor 30s infinite;
  text-decoration: none;
}
.makethelastlinknice:hover {
  text-decoration: underline;
  cursor: crosshair;
}
@keyframes lnktscolor {
    0% {
        color: #368588
    }

    50% {
        color: #593688
    }
    100% {
        color: #368588
    }
}
<div class="TextBodyTW">
            <a class="makethelinknice" href="C:UsershomeScaled404Index.html">Projects</a>
            <span>,</span>
            <a class="makethenextlinknice" href="C:UsershomeScaled404Index.html">Art</a>
            <span>,</span>
            <a class="makethelastlinknice" onclick="openabout()">About</a>
          </div>

The weirdest thing is its working in the StackOverflow code editor, even though it is copy and paste. I feel like its something funky with divs, thoughts?

Comments

Comment posted by ceejayoz

Right-click, “Inspect element”. Take a look at the CSS and look for issues; greyed-out or struck-through rules, etc.

Comment posted by Sahan Dissanayaka

Your Question is not that clear But i think you have a problem with the css

Comment posted by Buszmen

You’re missing the closing bracket for

Comment posted by Alex Hawking

What browser are you testing it on

Comment posted by codepen.io/ItsEvanB/pen/MWwYWoQ

Here it is in codepen

Comment posted by Evan

Fixed it! Unfortunately It did not fix the code

Comment posted by codepen.io/ItsEvanB/pen/MWwYWoQ

here it is in codepen

Comment posted by Evan

Its meant to be long, solved the issue, thanks for the help

Comment posted by Evan

odd, its not browser specific

Comment posted by JB Programming

are you using google chrome?

Comment posted by codepen.io/ItsEvanB/pen/MWwYWoQ

a fork of it. here is the code in code pen

Comment posted by JB Programming

it is working when I look at it on the second and third one, is it working for you?

By