Skip to content

Commit 34cb8f3

Browse files
stevennovaryoservo-wpt-sync
authored andcommitted
Apply suggestion
Signed-off-by: Jo Steven Novaryo <steven.novaryo@gmail.com>
1 parent 11e47db commit 34cb8f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

intersection-observer/animating.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
}
1919
@keyframes slideup {
2020
0% { transform: translateY(0) }
21-
30% { transform: translateY(0) }
22-
31% { transform: translateY(-2000px) }
21+
50% { transform: translateY(0) }
22+
51% { transform: translateY(-2000px) }
2323
100% { transform: translateY(-2000px) }
2424
}
2525
</style>
@@ -40,10 +40,10 @@
4040
}
4141
});
4242
});
43-
target.style.animation = "3s linear slideup";
43+
target.style.animation = "4s linear slideup";
4444
setTimeout(() => {
45-
reject("Did not get a not-intersecting notification within 2 seconds.");
46-
}, 2000);
45+
reject("Did not get a not-intersecting notification within 3 seconds.");
46+
}, 3000);
4747
target.addEventListener("animationend", evt => {
4848
reject("animationend event fired before not-intersecting notification.");
4949
});

0 commit comments

Comments
 (0)