I approach code, myself and life the way a brutalist builder would approach their creation: looking at implementing creative solutions using the best combination the materials at hand will allow me.
Hi,
thanks!
Locomotive Scroll is already injected into the plugin.
You can initialize Locomotive Scroll instances
where you want as many times as you want using: const myLocomotive = new this.LocomotiveScroll({ el, ...options }) where el is your DOM element and options the instance options.
Is this what you were asking!?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Cool! I've worked with Locomotive/Gsap/Nuxt for the last 2 months.. And sometimes it's not easy to get into the way they work! So, Good Job!! :)
JTK, if this is related to NuxtJs only, you should inject the LocomotiveScroll library in the plugin: nuxtjs.org/docs/2.x/directory-stru...
Hi,
thanks!
Locomotive Scroll is already injected into the plugin.
You can initialize Locomotive Scroll instances
where you want as many times as you want using:
const myLocomotive = new this.LocomotiveScroll({ el, ...options })
whereel
is your DOM element andoptions
the instance options.Is this what you were asking!?