File tree Expand file tree Collapse file tree
Block Chain Collage Code 2/15 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * {
2+ margin : 0 ;
3+ padding : 0 ;
4+ box-sizing : border-box;
5+ list-style : none;
6+ }
7+
8+ .container {
9+ height : 90vh ;
10+ position : relative;
11+ overflow : hidden;
12+ }
13+
14+ .container img {
15+ position : absolute;
16+ z-index : 100 ;
17+ width : 100% ;
18+ height : 100% ;
19+ object-fit : cover;
20+ opacity : 0 ;
21+ transition : all 0.5s ;
22+ }
23+
24+ .container i {
25+ position : absolute;
26+ padding : 10px ;
27+ background-color : rgba (0 , 0 , 0 , 0.4 );
28+ border-radius : 50% ;
29+ color : white;
30+ font-size : 35px ;
31+ z-index : 101 ;
32+ cursor : pointer;
33+ top : 50% ;
34+ transform : translateY (-50% );
35+ }
36+
37+ .container .bx-arrow-left {
38+ left : 5% ;
39+ }
40+
41+ .container .bx-arrow-right {
42+ right : 5% ;
43+ }
44+
45+ .show {
46+ opacity : 1 !important ;
47+ }
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < link href ='https://cdn.boxicons.com/fonts/basic/boxicons.min.css ' rel ='stylesheet '>
7+ < link rel ="stylesheet " href ="css/style.css ">
8+ < title > Document</ title >
9+ </ head >
10+ < body >
11+ < div class ="container ">
12+ < i class ='bx bx-arrow-left ' id ="prev "> </ i >
13+
14+ < i class ='bx bx-arrow-right ' id ="next "> </ i >
15+ </ div >
16+ < script src ="js/script.js "> </ script >
17+ </ body >
18+ </ html >
You can’t perform that action at this time.
0 commit comments