How to "frame" a few scenes on parallax.js?

Good afternoon.
Use the library 2.1.3 parallax.js
Please tell me how to "frame" a few scenes on parallax.js ?
Fulfills only the "scene" and I wish "scene from 1 to 8"
< ul id = "scene" >
 < li class = "layer" data - deep = "0.00" > < img src = " layer1.png " > </ li >
 < li class = "layer" data - deep = "0.20" > < img src = " layer2.png " > </ li >
 < li class = "layer" data - deep = "0.40" > < img src = " layer3.png " > </ li >
 < li class = "layer" data-depth = "0.60" > < img src = " layer4.png " > </ li >
 < li class = "layer" data-depth = "0.80" > < img src = " layer5.png " > </ li >
 < li class = "layer" data - deep = "1.00" > < img src = " layer6.png " > </ li >
</ ul >

var scene = document.getElementById('scene');
var parallax = new Parallax(scene);

Thank you!
April 7th 20 at 11:08
1 answer
April 7th 20 at 11:10
Solution
const scenes = document.querySelectorAll('.scene');
scenes.forEach(scene => new Parallax(scene));
@pierce.Kautzer, Good afternoon.
I'm a little late try)
Thanks for NOT indifference) - augustus8 commented on April 7th 20 at 11:13
@pierce.Kautzer, Works))
Thank you!!! - augustus8 commented on April 7th 20 at 11:16

Find more questions by tags JavaScript