wagerfield / parallax

Parallax Engine that reacts to the orientation of a smart device
http://wagerfield.github.io/parallax/
Other
16.5k stars 2.14k forks source link

How to use in nuxt js ? #299

Closed uzzal-ht closed 7 months ago

uzzal-ht commented 4 years ago

How to use in nuxt js ? Can you share any live example ?

YanisVMed commented 1 year ago

Hi, in your nuxtjs script put your parallax code after Mounted cycle hook like :

mounted() { let scene = document.getElementById('scene'); let parallaxInstance = new Parallax(scene, { relativeInput: true }); }