motion-hover-effects icon indicating copy to clipboard operation
motion-hover-effects copied to clipboard

Nuxt integration

Open cristianalonso opened this issue 6 years ago • 1 comments

Hello!! does anyone have any idea how to integrate the effect into a nuxt js project

Thanks!

cristianalonso avatar Dec 20 '19 10:12 cristianalonso

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 */

cristianalonso avatar Dec 23 '19 10:12 cristianalonso