Newer
Older
minerva / Tests / LibWeb / Text / input / WebAnimations / misc / animating-all.html
@minerva minerva on 13 Jul 374 bytes Initial commit
<!DOCTYPE html>
<script src="../../include.js"></script>
<div id="foo"></div>
<script>
    test(() => {
        const div = document.getElementById("foo");
        div.style.opacity = '0';

        const animation = div.animate({ all: 'initial' }, 100);
        animation.currentTime = 50
        println(`opacity value: ${getComputedStyle(div).opacity}`);
    })
</script>