how to make a slide?
-
frame > container (flex row) > several images
-
give the frame and images certain but responsive width and height, for example, 60vw.
-
queryselect the frame and all pictures as an array of nodes.
-
get the frame's width in the js file.
-
modify the container's margin-left based on the index of the nodes array and frame's width.