File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 .panels {
2525 min-height : 100vh ;
2626 overflow : hidden;
27+ display : flex;
2728 }
2829
2930 .panel {
4142 font-size : 20px ;
4243 background-size : cover;
4344 background-position : center;
45+ flex : 1 ;
46+ justify-content : center;
47+ align-items : center;
48+ display : flex;
49+ flex-direction : column;
4450 }
4551
4652
5056 .panel4 { background-image : url (https://source.unsplash.com/ITjiVXcwVng/1500x1500); }
5157 .panel5 { background-image : url (https://source.unsplash.com/3MNzGlQM7qs/1500x1500); }
5258
59+ /* Flex Items*/
5360 .panel > * {
5461 margin : 0 ;
5562 width : 100% ;
5663 transition : transform 0.5s ;
64+ border : 1px solid red;
65+ flex : 1 0 auto;
66+ display : flex;
67+ justify-content : center;
68+ align-items : center;
5769 }
5870
71+ .panel > * : first-child { transform : translateY (-100% ); }
72+ .panel > * : last-child { transform : translateY (100% ); }
73+
5974 .panel p {
6075 text-transform : uppercase;
6176 font-family : 'Amatic SC' , cursive;
You can’t perform that action at this time.
0 commit comments