motion-hover-effects
motion-hover-effects copied to clipboard
Nuxt integration
Hello!! does anyone have any idea how to integrate the effect into a nuxt js project
Thanks!
If anyone is interested, Nuxt Integration solved!
/* Controller.js */ import * as THREE from 'three' import { TweenLite, Power4 } from 'gsap'
Number.prototype.map = function(in_min, in_max, out_min, out_max) { return ((this - in_min) * (out_max - out_min)) / (in_max - in_min) + out_min }
class EffectShell { ... } export class StretchEffect extends EffectShell { ... }
/* Index.vue */