mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
18 lines
351 B
HTML
18 lines
351 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<style>
|
||
|
|
#foo {
|
||
|
|
--bar: 10px;
|
||
|
|
transition: --bar 1s linear;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<div id="foo"></div>
|
||
|
|
<script>
|
||
|
|
requestAnimationFrame(() => {
|
||
|
|
requestAnimationFrame(() => {
|
||
|
|
foo.style = "--bar: 100px";
|
||
|
|
});
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</html>
|