File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,6 +96,44 @@ no solid fill with multiple gradient fill
9696}
9797```
9898
99+ multiple images with different transforms
100+
101+ Using array syntax
102+
103+ ``` css
104+ ._1 {
105+ background-image : url (" image1.jpg" ), url (" image2.jpg" );
106+ background-position : right bottom , left top ;
107+ background-size : 50% 50% , auto ;
108+ }
109+ ```
110+
111+ Using pseudo elements - This is useful when there are less than 3 images - main, overlay, background
112+
113+ ``` css
114+ ._1 ::before ,
115+ div ::after {
116+ content : " " ;
117+ position : absolute ;
118+ top : 0 ;
119+ left : 0 ;
120+ width : 100% ;
121+ height : 100% ;
122+ }
123+ ._1 ::before {
124+ background : url (" image1.jpg" ) no-repeat ;
125+ background-size : cover ;
126+ transform : rotate (45deg );
127+ clip-path : circle (50% at 50% 50% );
128+ }
129+
130+ ._1 ::after {
131+ background : url (" image2.jpg" ) no-repeat ;
132+ background-size : cover ;
133+ transform : scale (0.5 );
134+ }
135+ ```
136+
99137## Image resources management on SSG frameworks
100138
101139- Next.js (Docs not ready)
You can’t perform that action at this time.
0 commit comments