clementroche / motion-hover-effects

71 stars 20 forks source link

Nuxt integration #1

Open cristianalonso opened 4 years ago

cristianalonso commented 4 years ago

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

Thanks!

cristianalonso commented 4 years ago

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 /