S
S
sutkin main2015-05-01 07:59:53
css
sutkin main, 2015-05-01 07:59:53

Creation of an interactive map of the building. What would be the most flexible option?

Hi all!
It is necessary to lay it out c2d1209ead48455d8e5e1c1108db56c3.png
- in pure css
- without pseudo -elements
- so that when changing classes to html, you could change the color of the blocks
- and what is most interesting and terrible - the layout must be adaptive!
can someone help solve this problem, despite the fact that the picture was given not psd in jpeg

Answer the question

In order to leave comments, you need to log in

8 answer(s)
A
Andrey Khokhlov, 2015-05-01
@andrhohlov

svg + Raphael.js
Colors will change not through changing classes, but with the help of js
But adaptability here, of course, is bypassed.
At 320px, you can’t really get into these squares with your finger.
There was a situation when tables created in vizivig were present on the adaptive site, and the available methods for adapting the tables were not suitable.
In the end, I made the minimum width for the table block something around 720, and wrapped it in a block with horizontal scrolling.
It turned out that the site is adaptive, everything is as it should be, and the table can be viewed with an easy swipe.

A
Alexander Taratin, 2015-05-01
@Taraflex

For such things there is svg.
You can trace jpeg to svg via https://inkscape.org/en/

I
Ilya Erofeev, 2015-05-02
@imerofeev

Here are articles to help you get the job done:
HTML and SVG: Creating an Interactive Map
Building an Interactive Map with Raphaël
Dynamic Geo Maps with SVG and jQuery

A
Alexander Zim, 2015-05-01
@3um

A good and modern option is SVG, which is what I advise you. It would be possible to make images and activate the ones you need when hovering over area , if you had the opportunity to cut it into images, but you don't seem to have a PSD file.
But I would choose SVG solution. SVGs can be manipulated with CSS (responsiveness is needed), and elements within SVGs can respond to :hover with CSS just as easily as html elements.

N
Nazar Mokrinsky, 2015-05-01
@nazarpc

on pure css, without pseudo-elements, so that when changing classes on html, you could change the color of the blocks

Are pseudo-elements no longer pure CSS, or will it be impossible to change the color with a class?
If I were you, I would refuse if your stupid conditions stand. If you just need such a page - I somehow use fabric.js for one project, it draws on canvas

T
tef, 2015-05-01
@tef

The task is tedious but not impossible. Use transforms, border-radius and layout like a regular layout. Here you can immediately see two blocks, upper and lower. The upper one is divided into left and right, and so on ...
It's not entirely clear what "adaptive" means in this case. I think you should check with whoever you're doing it to.

C
cybervito21, 2015-05-07
@cybervito21

babylon.js - and in general in 3d you can stir up

D
Dvoeglazov, 2019-02-08
@Dvoeglazov

Here is an example of how it can be done https://www.youtube.com/watch?time_continue=1131&v...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question