I am actually able to create a set-up that looks like this. But my mentors(@coothead and @PaulOB ) have told me that structure is not so good.
So I am looking for an advice that what could be the best approach to create such things. Keeping in mind that in low width that vertical scroll in the right needs to be changed to horizontal scroll.
Should we create three flex columns where the leftmost should be given a fixed width and the rightmost should be given a fix-width and the remaining width should be given to the Iframe i.e. Youtube/Vimeo videos.
Or Maybe some different approach like block model etc.
This is just a quick 10 minute mock up and needs refinement but I would be looking at something like this:
(View on codepen to see full effect)
It assumes that the video height is the controlling factor in the height of all 3 blocks and that the video should scale and maintain its intrinsic aspect ratio also.
Its not meant to be the one and only solution but a starting point for discussion and refinement
Obviously @coothead 's concerns with wordpress etc need to be taken into account as I have ignored any extraneous code from the demo.
The videos will be different for every list item. On clicking on the image the video on the left should change.
How should we accomplish this? Will we need Ajax for this? or some alternate better arrangements are possible w/o the need to refresh or update the page.
I’m assuming you want to click the thumbnail videos on the right and change the video in the middle. You could do that with JS by changing the source of the video/ or iframe on click.
I’ve just quickly added that function to the first 2 images on the right and updated the codepen.
Again this is just a rough example and you would need to ensure that you use videos of the same aspect ratio size. If your videos are not all the same aspect ratio size then you will need to examine them to find the aspect ratio and adjust the padding-top on .video to be the correct percentage for that aspect ratio.