K
K
Kusmich2015-10-15 07:54:21
css
Kusmich, 2015-10-15 07:54:21

How to implement background rotation?

I made rhombuses (I just turned the squares), but you need to insert a picture into each rhombus, the current problem is that it turns upside down. Please tell me who has already done this:

How to rotate the picture back?

And how to make the hover paint over the rhombus (current half) when in vision?

Here is my code : https://jsfiddle.net/Valeriy1996/5mjz4rf0/2/

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Zuev, 2015-10-15
@Kusmich

Certainly a very terrible code. And why do you have different rotation angles for different browsers. So intended?
Took a turn for webkit. Here are your diamonds

K
kapuletti, 2015-10-15
@kapuletti

The example is very large and it takes a long time to understand it.
The meaning is this: to make a wrapper. Rotate the wrapper by +45 degrees and the content by -45.

A
Alex K, 2015-10-15
@alexk111

Make a diamond block with SVG. Use CSS to put the background image on the diamonds. On top of each diamond in SVG is another diamond half that is transparent by default and opaque on hover.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question