We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b290a2 commit 12b0fe3Copy full SHA for 12b0fe3
index.html
@@ -6,6 +6,7 @@
6
position: relative;
7
}
8
.row {
9
+ position: absolute;
10
margin: auto;
11
text-align: left;
12
@@ -76,6 +77,7 @@
76
77
this.addRow = function (rowElement, isEven) {
78
79
$timeout(function () {
80
+
81
// calculate top
82
var selector = isEven ? 'left' : 'right';
83
var top = Math.max(topOffsets[selector], topOffsets.middle);
@@ -85,8 +87,7 @@
85
87
topOffsets.middle = top + BOX_HEIGHT;
86
88
89
// change position
- rowElement.css({
- position: 'absolute',
90
+ rowElement.animate({
91
top: top+'px'
92
});
93
0 commit comments