unocss 自定义动画关键帧配置,官方的文档更新是取消了对象方法keyframes得用字符串
留着备用下
<div class="-translate-y-1/2 animate-blink-input bg-[#F02F2F] absolute left-3 top-1/2 w-0.5 h-5 "></div>
theme: {
animation: {
keyframes: {
'blink-input':
'{50% {opacity: 0}}',
},
durations: {
'blink-input': '1s',
},
timingFns: {
'blink-input': 'step-start',
},
properties: {
// transform-origin and backface-visibility here
},
counts: {
'blink-input': 'infinite',
},
},
},