Fixed transition with song height, and upped the speed of the transition

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-25 17:33:35 +02:00
parent 5ac07f6dd0
commit 8db9663827
3 changed files with 7 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -478,10 +478,10 @@ ul #chat-log{
background-color: rgba(255, 255, 255, 0.04);
color:white;
font:12px Arial,sans-serif;
-webkit-transition:height .5s;
-moz-transition:height .5s;
-o-transition:height .5s;
transition:height .5s;
-webkit-transition:height .3s;
-moz-transition:height .3s;
-o-transition:height .3s;
transition:height .3s;
height:66px;
}
.list-song .card-content{padding:0;}

View File

@@ -30,11 +30,10 @@ var List = {
}, 'added'));
List.insertAtIndex(List.getIndexOfSong(msg[1].id), msg[1], true);
var test = $("#wrapper").children()[List.getIndexOfSong(msg[1].id)];
setTimeout(function(){
var test = $("#wrapper").children()[List.getIndexOfSong(msg[1].id)];
$(test).css("height", 66);
},0);
},5);
}else if(msg[0] == "deleted")
{