Interactive 3D Image Effect With WebGL – Fake3d

Description:

The Fake3d component helps you create an interactive, SSR-compatible 3D image effect on the Vue.js app.

How to use it:

1. Import & register the Fake3d.

import { Fake3dImageEffect } from '@luxdamore/vue-fake3d-image-effect';
import '@luxdamore/vue-fake3d-image-effect/dist/Fake3dImageEffect.css';

Vue.component(
  Fake3dImageEffect.name,
  Fake3dImageEffect
);

// Or
import Fake3dImageEffect from '@luxdamore/vue-fake3d-image-effect';
import '@luxdamore/vue-fake3d-image-effect/dist/Fake3dImageEffect.css';

// Install
Vue.use(
  Fake3dImageEffect
);

2. Insert the Fake3d component into your template as follows:

<fake3d-image-effect
  centered
  fill-height-content
  tag="div"
  image="1.jpg"
  image-map="1-map.jpg"
>
  <div class="container">
    Main Content Here
  </div>
</fake3d-image-effect>

3. Available props to config the image effect.

tag: {
  type: String,
  default: 'section',
},
image: {
  type: String,
  required: true,
},
imageMap: {
  type: String,
  required: true,
},
horizontal: {
  type: [
      Number,
      String,
  ],
  default: 18,
},
vertical: {
  type: [
      Number,
      String,
  ],
  default: 23,
},
maxTilt: {
  type: [
      Number,
      String,
  ],
  default: 15,
},
centered: {
  type: Boolean,
  default: false,
},
fillHeightContent: {
  type: Boolean,
  default: false,
},
width: {
  type: String,
  default: '100%',
},
height: {
  type: String,
  default: '100vh',
},
gyro: {
  type: Object,
  default: () => {},
},

Download Details:

Author: LuXDAmore

Live Demo: https://luxdamore.github.io/vue-fake3d-image-effect/

Download Link: https://github.com/LuXDAmore/vue-fake3d-image-effect/archive/master.zip

Official Website: https://github.com/LuXDAmore/vue-fake3d-image-effect

Install & Download:

# NPM
$ npm install @luxdamore/vue-fake3d-image-effect --save

You Might Be Interested In:

Add Comment