Rotate Background Image In Css Code Example


Example: rotate background image css


.theWholeElement{
transform: rotate(30deg);
}

.justTheBackground{
position: relative;
overflow: hidden;
}

.justTheBackground::before{
content: "";
position: absolute;
width: 200%;
height: 200%;
top: -50%;
left: -50%;
z-index: -1;
background: url(background.png) 0 0 repeat;
transform: rotate(30deg);
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable