用jquery动画时改变位置(跳跃?)

时间:2017-07-21 02:09:11

标签: jquery jquery-animate

请有人帮我解决这个问题。我看了一遍,大部分答案都说将溢出更改为隐藏,似乎无法正常工作。

当鼠标悬停在.nav-active个元素上时,出于某种原因,sudo docker run -v /usr1/V3R002C10_BP/.m2/settings.xml:/usr/share/apache-maven-3.3.9/conf/settings.xml:rw -v /usr1/V3R002C10_BP/.sbt/repositories:/root/.sbt/repositories:rw -v /usr1/V3R002C10_BP:/usr1/V3R002C10_BP:rw --workdir=/usr1/V3R002C10_BP/task1935/ac_bp_all --net host --name ubuntu_bash5 -i -t hub.witcloud.huawei.com/r00230944/suse11sp3:1.0.2 /bin/bash docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/usr1/V3R002C10_BP/.sbt/repositories\\\" to rootfs \\\"/var/lib/docker/aufs/mnt/34872c92bc91fe920b846d5abff3d43ec0042fe8a1df8a1d20d03b6f24c7ff51\\\" at \\\"/var/lib/docker/aufs/mnt/34872c92bc91fe920b846d5abff3d43ec0042fe8a1df8a1d20d03b6f24c7ff51/root/.sbt/repositories\\\" caused \\\"not a directory\\\"\"" : Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type. 和下面的div都会被推下或似乎以某种方式跳跃。

干杯,感谢任何帮助。

JS Fiddle

1 个答案:

答案 0 :(得分:1)

我改变了小提琴中的以下内容,它摆脱了跳跃:

  • height: 40px;添加到navbar-wrapper
  • overflow: hidden添加到css本身而不是js
  • 完全从javascript中移除.css内容并仅保留动画

updated fiddle