'@keyframes slideAnimationBackLarge': {
'0%': { transform: 'translateX(15px)', opacity: 0 },
'100%': { transform: 'translateX(0)', opacity: 1 },
},
'& .iconTwo': {
position: 'absolute',
animation: '$slideAnimationBackLarge 0.4s ',
transition: ' all .4s ease',
opacity: 1,}
我希望它像页面/组件加载时不应该猛烈,默认情况下应该位于translateX(0)位置
缺少您是否想要动画的信息。
@keyframes slideAnimationBackLarge {
0% { transform: translateX(15px); opacity: 0; }
100% { transform: translateX(0); opacity: 1; }
}
.iconTwo {
position: absolute;
transform: translateX(0);
opacity: 1;
animation: slideAnimationBackLarge 0.4s;
transition: all .4s ease;
}
<div>
<div class="iconTwo">Krushna</div>
</div>
如果您有任何其他要求,请告诉我