CSS转换无法按预期工作

时间:2015-10-14 12:05:55

标签: html css css-transitions

如果您在此处看到代码https://jsfiddle.net/ojagwxc0/,则以下内容无效:

.parallax > div .txparallax a {
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -49px;
  display: inline-block;
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  background: #3498db;
  width: 126px;
  height: 126px;
  line-height: 126px;
  text-align: center;
  overflow: hidden;
  -moz-transition: 0.5s all ease;
  -o-transition: 0.5s all ease;
  -webkit-transition: 0.5s all ease;
  transition: 0.5s all ease;
}

我想看到的是任何一种"运动"对于单词" Select"," Fishing Tackle You Need" &安培; " Mes cuml diadd inenias ingerto lot aliiqt dolore ipsum commete"。

我做错了什么?请指教。

2 个答案:

答案 0 :(得分:3)

尝试这样的事情。为了过渡到工作,你需要以某种方式移动它,例如在这里,我从左边移动它:0px;离开:悬停时400px:

https://jsfiddle.net/ojagwxc0/2/

NullPointerException

答案 1 :(得分:0)

你应该为h ::

添加悬停动作
 a:hover{
    background-color:red;
}

工作小提琴:https://jsfiddle.net/ojagwxc0/1/

相关问题