I am trying to build a simple animation with clouds moving over a city clipart image.
The clouds start at opacity 0 on the left, are set to 0.9 in the middle and finishes at 0 at the far right.
In cornerstone preview everything looks perfect but in any browser showing the actual page, the clouds stick to the value in the effects module opacity setting.
If I change the setting of each cloud in effects, they do not have any visible effect regarding the keyframe animation and it play perfect in Cornerstone, but on an actual browser they show the effect module setting.
My question is, is there a way to override the effects module opacity setting? or a workaround to make it play correctly in the actual browsers?
Cornerstone preview:
Actual browser:
The CSS:
.cloud_1 {
/* Chrome, Safari, Opera */
-webkit-animation: repeatit 20s linear 0s infinite;
/* Mozilla */
-moz-animation: repeatit 20s linear 0s infinite;
/* Standard syntax */
animation: repeatit 20s linear 0s infinite;
}
.cloud_2 {
/* Chrome, Safari, Opera */
-webkit-animation: repeatit 30s linear 0s infinite;
/* Mozilla */
-moz-animation: repeatit 30s linear 0s infinite;
/* Standard syntax */
animation: repeatit 30s linear 0s infinite;
}
.cloud_3 {
/* Chrome, Safari, Opera */
-webkit-animation: repeatit 50s linear 0s infinite;
/* Mozilla */
-moz-animation: repeatit 50s linear 0s infinite;
/* Standard syntax */
animation: repeatit 50s linear 0s infinite;
}
.cloud_4 {
/* Chrome, Safari, Opera */
-webkit-animation: repeatit 80s linear 0s infinite;
/* Mozilla */
-moz-animation: repeatit 80s linear 0s infinite;
/* Standard syntax */
animation: repeatit 80s linear 0s infinite;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes repeatit {
0% {left: 0%; opacity: 0;}
20% {opacity: 0.9;}
80% {opacity: 0.9;}
90% {opacity: 0;}
100% {left: 100%; opacity: 0;}
}
/* Mozilla */
@-moz-keyframes repeatit {
0% {left: 0%; opacity: 0;}
20% {opacity: 0.9;}
80% {opacity: 0.9;}
90% {opacity: 0;}
100% {left: 100%; opacity: 0;}
}
/* Standard syntax */
@keyframes repeatit {
0% {left: 0%; opacity: 0;}
20% {opacity: 0.9;}
80% {opacity: 0.9;}
90% {opacity: 0;}
100% {left: 100%; opacity: 0;}
}
Cheers…