sass - Issue with CSS3 transition flow -


i have setup background transition on this page.

the first area of page "il blog - leggi tutti gli articoli" , "gli eventi - leggi tutti gli eventi" shows list of different post types in tiles. when hovering on 1 of them, transition start. when moving out mouse, other transition start. until there everything's fine.

the problem shows when move mouse out of tile before transition completed.

i trying figure out what's missing in css can't find it.

i know solve problem moving transition jquery script, prefer using css approach.

here scss excerpt of involved elements:

article {      @include box-shadow(0 0 2px $primary-color);     @include transition(all 1s ease-in-out);     @include border-radius(2px);      background-image: url('../images/concrete_wall.png');      &:hover {       @include box-shadow(0 0 4px $primary-color);       background-image: url('../images/concrete_wall_2.png');      } } 

here's produced css, in case prefers see way:

body.home #posts-area #posts-area-columns #home-posts-list article, body.home #posts-area #posts-area-columns #featured-events-list article {   -webkit-box-shadow: 0 0 2px #222222;   -moz-box-shadow: 0 0 2px #222222;   box-shadow: 0 0 2px #222222;   -webkit-transition: 1s ease-in-out;   -moz-transition: 1s ease-in-out;   -o-transition: 1s ease-in-out;   transition: 1s ease-in-out;   -webkit-border-radius: 2px;   -moz-border-radius: 2px;   -ms-border-radius: 2px;   -o-border-radius: 2px;   border-radius: 2px;   background-image: url("../images/concrete_wall.png"); } /* line 60, ../sass/_home.scss */ body.home #posts-area #posts-area-columns #home-posts-list article:hover, body.home #posts-area #posts-area-columns #featured-events-list article:hover {   -webkit-box-shadow: 0 0 4px #222222;   -moz-box-shadow: 0 0 4px #222222;   box-shadow: 0 0 4px #222222;   background-image: url("../images/concrete_wall_2.png"); } 

the second transition include in hover useless. ease-in-out makes come fade in , fade out.

article {      @include box-shadow(0 0 2px $primary-color);     @include transition(all 1s ease-in-out); //note changed eas-in-out     @include border-radius(2px);      background-image: url('../images/concrete_wall.png');      &:hover {       @include box-shadow(0 0 4px $primary-color);       background-image: url('../images/concrete_wall_2.png');       //note removed unnecessary transition     } } 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -