css - Is there a way to have a smooth animation always happening on hover with translate3d? -


  • i have css layout right-side menu (in green).
  • the main part of menu default hidden outside viewport.
  • on mouse on over right side menu: after short delay, menu translates viewport (after little delay).
  • on mouse out on right side menu: menu should translate initial position (no delay).

see green menu on jsfiddle: try hover green menu

here relevant css code:

section#base-layer section#base-layer-contact-bar {     position: absolute;     box-sizing: border-box;     top: 60px;     right: -90px;     width: 150px;     height: calc(100% -  60px);     transform: translate3d(0, 0, 0);     transition: transform 0.6s ease-in;     background-color: green; } section#base-layer section#base-layer-contact-bar:hover {     transform: translate3d(-90px, 0, 0);     transition-delay: 1s; } 

to reproduce: move mouse out of green colored section while animation in initial state, meaning before reaches full extension.

  • is there way have smooth animation happening?
  • is there problem css?
  • is possible?
  • if there css solution it, or must take different path?

note i'm using chrome v45 on ubuntu.

at first couldn't reproduce problem.

the reliable way when applied changes fiddle , hit run jump started happen.

when come fiddle on "fresh" load (reload page), jump not happening. or very occasionally, if move mouse around fast time (which not normal user behaviour).

so guess while developing problem can occur while apply changes css, otherwise should not happen.

i hope helps :)


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -