小编And*_*w C的帖子

滑动CSS动画不会在正确的区域中翻转

我正在尝试创建一个CSS动画,右侧有一个鸟滑动,翻转并向左滑动并再次翻转.并重复......就像鸟儿来回奔跑.

现在它翻转,滑动,并不喜欢它应该. 这是CodePen

这是我的HTML:

<div class="fifth">
 <div id="GoRight">
   <p>... Loading</p>
 </div>
 <div id="TurnGoLeft"></div>
Run Code Online (Sandbox Code Playgroud)

这是我的CSS:

    .fifth h2 {
    margin-top: 130px;
}
.fifth #GoRight{
  width: 200px;
  height: 5px;
  position: fixed;
  margin-left: 200px;
  margin-top: 14px;
}
.fifth #GoRight p{
    font-size: 20px;
    color: #1886c7;
    font-family: "Effra Regular", "Droid Sans", Arial, serif;
}
.fifth #TurnGoLeft {
  width: 110px; 
  height: 66px;
  background-image: url("http://goo.gl/BaIPWx");
  background-repeat: no-repeat;
  position: fixed;
  left: 60px;
  top: 10px;
  -webkit-animation: slideflip, flipslide 2s infinite alternate;
}
@-webkit-keyframes slideflip {
  0% {
    margin-left: 0%;
    width: …
Run Code Online (Sandbox Code Playgroud)

html css animation css3 css-animations

6
推荐指数
1
解决办法
151
查看次数

标签 统计

animation ×1

css ×1

css-animations ×1

css3 ×1

html ×1