mirror of
https://github.com/anatolykopyl/vue-three-d-mockup.git
synced 2026-03-26 12:55:08 +00:00
d497bfca8da50e77753fc7b6b901aed2131c1cb2
vue-three-d-mockup
Check out the demo
Installation
$ npm install github:anatolykopyl/vue-three-d-mockup
Usage
<Mockup
screenImg="screen.png"
lightClr="hsl(0, 100%, 100%)"
/>
Use as an async component (the 3d model is quite large so this provides a significant performance boost):
<script>
import { defineAsyncComponent } from 'vue';
export default {
components: {
Mockup: defineAsyncComponent(() => import('vue-three-d-mockup')),
}
}
</script>
Or normally:
<script>
import Mockup from 'vue-three-d-mockup';
export default {
components: {
Mockup
}
}
</script>
props:
screenImg: path to image that will be displayed on the phones screenlightClr: color of the light in the environment
Languages
JavaScript
78.3%
Vue
21.7%