V
V
Vyacheslav Yashnikov2017-04-30 12:30:44
css
Vyacheslav Yashnikov, 2017-04-30 12:30:44

How to build an adaptive site, where in the PC version the block is displayed as a static one, and in the mobile version the same block is made as a slider?

Tell me how best to make up such a block:
PC version:
c6b9a5ada72e47f2adc973de5c5996b4.PNG

Mobile version
dbe5fb941cc043d0ab8a9de273d374f2.PNG

I think to make it as a slider for both the PC and the mobile version, but using js to initialize the slider only on mobile. Who came across such layouts, share the case, how they made it up, thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2017-04-30
@VyacheslavY

You just need to lay out 2 completely different blocks, no need to try to turn one into the other, it's too complicated in this case.
And then change their visibility. + js should only run if the required block is visible on the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question