Проверить Matter.js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
746B

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <title>mjs</title>
  6. <script src="https://cdn.jsdelivr.net/npm/matter-js@0.17.1/build/matter.min.js"></script>
  7. <style>
  8. html, body {
  9. margin: 0;
  10. padding: 0;
  11. overflow: hidden;
  12. }
  13. body {
  14. height: 100vh;
  15. width: 100vw;
  16. }
  17. box {
  18. margin: 0px;
  19. padding: 0px;
  20. box-sizing: border-box;
  21. position: absolute;
  22. display: block;
  23. background-color: rgba(45, 188, 232, 0.687);
  24. transform-origin: 20px 20px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <script src="01.js"></script>
  30. </body>
  31. </html>