mirror of
https://github.com/anatolykopyl/vue-three-d-mockup.git
synced 2026-03-26 04:45:09 +00:00
3dccc62f9ca6922fe77c837e85f85eceafdf0dab
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 environmentphoneClr: color of the phone
Languages
JavaScript
78.3%
Vue
21.7%