javascript - 添加关键帧时,Transform Rotate 在我的 CSS 上不起作用
问题描述
基本上这里的问题是当我添加关键帧时,常规图像样式不会旋转我的 ID 箭头。我添加它时它保持原样。有什么办法可以做到这一点?
<div class="front-container">
<img class="village11" src="Village11Logo3tight.png" alt="logo">
<h1 id="live-videos">Our Spotify</h1>
</div>
</div>
<img id="arrow" src="60640.png">
#arrow {
z-index: 1;
color: white;
position: absolute;
display: block;
border-radius: 50%;
max-width: 100px;
background-color: white;
padding: 15px;
border-style: solid;
border-color: gray;
border-width: 1px;
bottom: 0;
transform: rotate(180deg);
}
#arrow {
animation: arrow .8s ease-in-out infinite alternate;
-webkit-animation: arrow .8s ease-in-out infinite alternate;
}
@keyframes arrow {
0% {
transform: scale(.7);
-webkit-transform: scale(.7);
}
100% {
transform: scale(.8);
-webkit-transform: scale(.8);
}
}
解决方案
推荐阅读
- google-apps-script - 根据单元格值隐藏行,在大型电子表格中生成错误“超过最大执行时间”
- javascript - Nodejs:异步和 forEach 的问题 - 需要等待异步解决
- ruby-on-rails - Rails 使用 fields_for 提交数组
- java - logbak.fatal("foo") 的简单替代方案?
- jenkins - Jenkinsfile - 在步骤中找不到这样的 DSL 方法“属性”
- python - python imaplib 错过了一些电子邮件
- aws-lambda - AWS Lambda Python 3.6 - SSM 到 EC2 - 以 root 而非用户身份执行命令
- javascript - Ajax 在数组中显示 json 数据
- android - 离子构建错误:copyFileSync:无法写入目标文件
- jmeter - 如何仅在 results.jtl 中为 jmeter 运行启用错误日志?- 非图形用户界面