An Interest In:
Web News this Week
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
July 25, 2021 12:35 pm GMT
Original Link: https://dev.to/afozbek/how-to-rotate-background-image-35mi
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To