【发布时间】:2021-09-10 23:33:39
【问题描述】:
如果我们使用 css,我们可以归档弹跳按钮
.order {
position: absolute;
top: 50px;
left: 50px;
width: 75px;
line-height: 75px;
text-align:center;
opacity: 1;
background: green;
color:#fff;
border-radius:50%;
-webkit-animation: bounce .3s infinite alternate;
-moz-animation: bounce .3s infinite alternate;
animation: bounce .3s infinite alternate;
}
@-webkit-keyframes bounce {
to { -webkit-transform: scale(1.2); }
}
@-moz-keyframes bounce {
to { -moz-transform: scale(1.2); }
}
@keyframes bounce {
to { transform: scale(1.2); }
但问题是,react-native,我们不能使用像web-kit 这样的库,所以我想知道如何为按钮或更大的视图制作弹跳动画,如何在 react-native 应用程序中制作动画?
【问题讨论】:
标签: javascript css reactjs react-native