html - Make div appear intermittently using Animation css property not working -


my goal have 4 colorful squares opacity goes 0 1 intermittently show loading.

i used css animation property (see below) achieve - doesn't work!

css

 animation: opacity 1.5s infinite 200ms 

i have implemented on codepen. can tell me how fix it?

this because have no keyframe animation assigned "opacity" animation. need create keyframe animation work:

(i changed animation name "fade" instead of "opacity")

css

.loader-block:nth-child(1) {     background: red;     animation: fade 1.5s infinite 100ms; } ...  @-webkit-keyframes fade {     {opacity: 1;}     {opacity: 0;} }   @keyframes fade {     {opacity: 1;}     {opacity: 0;} } 

codepen

ps: should close out of css properties semicolon (;). noticed there few missing.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -