Skip to content
On this page

Video as screen ​

The screen prop also accepts a video.

Code example ​

html
<head>
  <script src="three-d-mockup"></script>
</head>

<body>
  <three-d-mockup 
    style="display: block;"
    screen="./assets/screen.mp4"
  ></three-d-mockup>
</body>
vue
<script setup>
import { ref } from 'vue';
import 'three-d-mockup';
import screenVideo from './assets/screen.mp4';
</script>

<three-d-mockup
  style="display: block;"
  :screen="screenVideo"
/>

Released under the GPL-3.0 license.