Hey there,
I’m currently working on the Tic-Tac-Toe challenge and wanted a bit of ‘cool’ animation to jazz it up a bit.
However I can’t get any of the @keyframes animations to work on Codepen, here is an example of what does not work -
@keyframes slidein {
from {
margin-left: 300%;
width: 300%;
}
to {
margin-left: 0%;
width: 100%;
}
}
.opening-title {
text-align: center;
margin-top: calc(5px + 2vw);
font-family: Just Me Again Down Here, cursive;
font-size: calc(45px + 5vw);
animation-name: slidein;
animation-duration: 4s;
animation-iteration-count: infinite;
animation-direction: alternate;
}
I thought it might be something to do with CSS settings, but I added the animate.css and fiddled with the other options but still couldn’t get any animations to play (I’ve tried colour change, resizing, etc.).
I’ve included my pen and a picture of my CSS settings, can anyone please let me know why they are not working? It’s driving me nuts!!
Thanks,
Stu