Amelia_New_Hampshire
New Member
We have this sort of syntax for defining key frames in a css file:\[code\]@-webkit-keyframes fade { from {opacity: 1;} to {opacity: 0.25;}}\[/code\]and we reference it like:\[code\].foo { -webkit-animation: fade 1s linear infinite;}\[/code\]is there a way to just inline it, like:\[code\].foo { -webkit-animation: (from {opacity: 1;} to {opacity: 0.25;}) 1s linear infinite;}\[/code\]Is there a way to do that, or to inject a "@-webkit-keyframes" element into my stylesheet at runtime?Thanks