1
0
Fork 0
firefox/testing/web-platform/tests/scroll-animations/animation-trigger/animation-trigger-fill-mode-none.tentative.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

40 lines
944 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="help" href="https://drafts.csswg.org/web-animations-2#animation-trigger">
<link rel="match" href="animation-trigger-fill-mode-none-ref.html">
</head>
<body>
<style>
.scroller {
overflow-y: scroll;
border: solid 1px;
place-self: center;
height: 300px;
width: 200px;
}
@keyframes slide-in {
from {
transform: translateX(-50px);
}
}
.target {
height: 100px;
width: 100%;
background-color: blue;
animation: slide-in 3s none;
animation-trigger: view() alternate contain 0% contain 100%;
}
.space {
height: 250px;
width: 50%;
}
</style>
<div id="scroller" class="scroller">
<div class="space"></div>
<div id="target" class="target"></div>
<div class="space"></div>
</div>
</body>
</html>