1
I’ve tried several ways to adjust the simple animation of a css @keyframes I’m doing. I’ve seen several syntaxes and I still have error,
.borda {
padding: .5em;
border: 20px solid transparent;
border-image: 20 repeating-linear-gradient(-45deg, red 0, red 1em, transparent 0, transparent 2em, #660000 0, #660000 3em, transparent 0, transparent 4em);
font: 100%/1.6 Baskerville, Palatino, serif;
box-shadow: 0 0 0 3px #990000;
box-shadow: 0 0 5px rgba(0,0,0,1) inset 0 0 5px rgba(0,0,0,1), 0 0 0 2px #990000;
animation: animated 2s linear infinite;
}
@keyframes animated
{
0%
{
background-position: 0;
}
100%
{
background-position: 40px;
}
}
<div id="subscribebox" class="subscribebox borda">
... conteudo ....
</div>
where I’m going wrong ?
The element has no background
– Sam
What do you mean by error? What appears to you?
– Vitória Moraes
Include html in your question.
– Leandro Angelo
@dvd the element eh an edge of type "airmail", because I want to give movement to it and I can’t move it.
– user33011
<div id="subscribebox" class="subscribebox edge"> ... content .... </div>
– user33011
I noticed, but he’s not a background
– Sam
Your code will never work because you’re animating the background not the edge...
– hugocsl
@hugocsl any suggestions ? I can turn a border-image into a background ?
– user33011
Yes I’m coming up with an answer
– hugocsl
Really that the answer from Ugo got better? It’s not for nothing no, just wanted to know, even for me to learn too.
– Sam
@dvd, no, I’m using your model, so much so that it looks really cool on my model here to which I’m applying.
– user33011
@dvd, I am now working on how a div to which I have (Hover) can stay over that edge. If you have any suggestions, thank you.
– user33011