<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
</head>

<body>
  <div style="position: fixed; will-change: transform;">
    Foo
  </div>
  <div style="color: green;">
    Bar
  </div>
</body>

</html>