Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
July 25, 2021 12:35 pm GMT

How to Rotate Background Image

It is as simple as adding a before or after element inside a container

.container {  position: relative;  overflow: hidden;}.container::before {  content: "";  position: absolute;  width: 100%;  height: 100%;  z-index: 10;  background: url(background.jpg) 0 0 repeat;  transform: rotate(30deg);}

Original Link: https://dev.to/afozbek/how-to-rotate-background-image-35mi

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To