I am trying to animate a simple image's opacity but I can't seem to get it working.
Relevant code: css
.ggmedia[id^="pijl_"] {
opacity: 0.66;
-webkit-animation-name: footsteps;
animation-name: footsteps;
-webkit-animation-duration: 2s;
animation-duration: 2s;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: ease;
animation-timing-function: ease;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-delay: 0.001s;
animation-delay: 0.001s;
}
@-webkit-keyframes footsteps {
0% {
opacity: 0.66 !important;
}
33.3% {
opacity: 0.66 !important;
}
50% {
opacity: 0.25 !important;
}
66.6% {
opacity: 0.66 !important;
}
100% {
opacity: 0.66 !important;
}
}
@keyframes footsteps {
0% {
opacity: 0.66 !important;
}
33.3% {
opacity: 0.66 !important;
}
50% {
opacity: 0.25 !important;
}
66.6% {
opacity: 0.66 !important;
}
100% {
opacity: 0.66 !important;
}
}
the image itself:
<img class="ggmedia pointer" id="pijl_33_to_38" src="images/footsteps.png" width="500" height="500">
I literally have no clue, I have used animations over and over again in my project, but can't seem to figure out what is wrong.
To see it live in action: Check out the project here look for the red footprints on the floor
Thanks!