jxAnimationRules top-level constant
Animations : anim:spin, anim:fade-in… (ou anim:[…]), avec
adur:, adelay: et delay: (délai de transition).
Implementation
const List<JxRuleContract> jxAnimationRules = [
JxValueRule(
'animation',
properties: {
'anim': ['animation'],
},
keywords: {
'none': 'none',
'spin': 'jx-spin 1s linear infinite',
'ping': 'jx-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
'pulse': 'jx-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'bounce': 'jx-bounce 1s infinite',
'fade-in': 'jx-fade-in 0.3s ease-out both',
'fade-out': 'jx-fade-out 0.3s ease-in both',
'slide-up': 'jx-slide-up 0.4s $_enter both',
'slide-down': 'jx-slide-down 0.4s $_enter both',
'zoom-in': 'jx-zoom-in 0.3s $_enter both',
'slide-in-right': 'jx-slide-in-right 0.35s $_enter both',
'slide-in-left': 'jx-slide-in-left 0.35s $_enter both',
'indeterminate': 'jx-indeterminate 1.4s ease-in-out infinite',
},
),
JxValueRule(
'animation-timing',
properties: {
'adur': ['animation-duration'],
'adelay': ['animation-delay'],
},
fallback: _ms,
),
JxValueRule(
'transition-delay',
properties: {
'delay': ['transition-delay'],
},
fallback: _ms,
),
];