File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 flex-shrink : 0 ; /* Prevents shrinking */
4646 width : 290px ; /* Fixed width */
4747 height : 160px ; /* Fixed height */
48- overflow : hidden ; /* Prevents overflow */
48+ overflow : hidden ; /* Prevents content overflow */
4949 margin : 0 ;
5050}
5151
5252.image-container img {
53- display : block ; /* Removes inline spacing */
54- width : 100% ; /* Ensures the image fills its container width */
53+ display : block ; /* Removes inline spacing issues */
54+ width : 100% ; /* Ensures the image fills the container width */
5555 height : 100% ; /* Ensures the image height matches the container */
56- object-fit : cover ; /* Makes the image fit neatly */
57- mask-image : linear-gradient (to right , black , transparent ); /* Left-to-right fade */
58- -webkit-mask-image : linear-gradient (to right , black , transparent ); /* WebKit compatibility */
56+ object-fit : cover ; /* Ensures the image fits neatly */
57+ mask-image : linear-gradient (to left , transparent , black ); /* Fixes the fade direction */
58+ -webkit-mask-image : linear-gradient (to left , transparent , black ); /* WebKit compatibility */
5959 mask-size : cover ; /* Ensures the mask spans the entire image */
60- -webkit-mask-size : cover ; /* Ensures compatibility with WebKit */
60+ -webkit-mask-size : cover ; /* Ensures WebKit compatibility */
6161}
6262
6363/* Left-to-right fade effect */
You can’t perform that action at this time.
0 commit comments