It is necessary to make a collage of pictures of about this type:
I know that the layers can be arranged using z-index
, but I do not know how to give these pictures a circle shape, as in the picture, tell me how it can be done
Obviously, no one will do it for you. Here they help, but do not. Learn in more detail the properties of transformation, perspective, movement and positioning, for example, here or in other sources, of which hundreds http://html5book.ru/css3-transform/
<!DOCTYPE html> <html> <head> <title>titile</title> <meta charset="utf-8"> <style> div { background-image: url("http://ibiza-rent-a-car-today.com/images/prepaid-creditcard.jpg"); height: 154px; width: 250px; position: absolute; } .div1 { transform: perspective(600px) rotateY(0deg) rotateX(45deg); } .div2 { transform: translateY(75px) translateX(45px) perspective(600px) rotateX(45deg) rotate(25deg); } .div3 { transform: translateY(150px) translateX(45px) perspective(600px) rotateX(45deg) rotate(50deg); } .div4 { transform: translateY(225px) translateX(-45px) translateX(45px) perspective(600px) rotateX(45deg) rotate(75deg); } </style> </head> <body> <div class="div1"></div> <div class="div2"></div> <div class="div3"></div> <div class="div4"></div> </body> </html>
Source: https://ru.stackoverflow.com/questions/547257/
All Articles
translate3d
andz-index
? - user207618