mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-29 21:41:00 +00:00
Fixed transition with song height, and upped the speed of the transition
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -478,10 +478,10 @@ ul #chat-log{
|
|||||||
background-color: rgba(255, 255, 255, 0.04);
|
background-color: rgba(255, 255, 255, 0.04);
|
||||||
color:white;
|
color:white;
|
||||||
font:12px Arial,sans-serif;
|
font:12px Arial,sans-serif;
|
||||||
-webkit-transition:height .5s;
|
-webkit-transition:height .3s;
|
||||||
-moz-transition:height .5s;
|
-moz-transition:height .3s;
|
||||||
-o-transition:height .5s;
|
-o-transition:height .3s;
|
||||||
transition:height .5s;
|
transition:height .3s;
|
||||||
height:66px;
|
height:66px;
|
||||||
}
|
}
|
||||||
.list-song .card-content{padding:0;}
|
.list-song .card-content{padding:0;}
|
||||||
|
|||||||
@@ -30,11 +30,10 @@ var List = {
|
|||||||
}, 'added'));
|
}, 'added'));
|
||||||
|
|
||||||
List.insertAtIndex(List.getIndexOfSong(msg[1].id), msg[1], true);
|
List.insertAtIndex(List.getIndexOfSong(msg[1].id), msg[1], true);
|
||||||
|
|
||||||
setTimeout(function(){
|
|
||||||
var test = $("#wrapper").children()[List.getIndexOfSong(msg[1].id)];
|
var test = $("#wrapper").children()[List.getIndexOfSong(msg[1].id)];
|
||||||
|
setTimeout(function(){
|
||||||
$(test).css("height", 66);
|
$(test).css("height", 66);
|
||||||
},0);
|
},5);
|
||||||
|
|
||||||
}else if(msg[0] == "deleted")
|
}else if(msg[0] == "deleted")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user