Untitled
unknown
css
a year ago
3.2 kB
1
Indexable
Never
.main-container-paragraph-bannernarrativa { display: flex; flex-direction: row; color: white; font-family: system-ui; font-size: 2rem; overflow: hidden; margin: 0 auto; } .container1-paragraph-bannernarrativa, .container2-paragraph-bannernarrativa, .container3-paragraph-bannernarrativa { width: 33.33%; height: 400px; display: flex; flex-direction: column; position: relative; overflow: hidden; background-size: cover; background-position: center; transition: width 0.3s ease; } .container1-paragraph-bannernarrativa::before, .container2-paragraph-bannernarrativa::before, .container3-paragraph-bannernarrativa::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; transform: skewY(-35deg); z-index: 30; } .container1-paragraph-bannernarrativa:hover { width: 100%; } #content1-paragraph-bannernarrativa { opacity: 0%; position: absolute; width: 100%; transition: opacity 1s ease; /* Transition for the width property */ } #content1-paragraph-bannernarrativa p { width: 70%; transition: opacity 1s ease; } #title1-paragraph-bannernarrativa { opacity: 100%; position: absolute; left: 0; right: 0; top: 0; bottom: 0; width: 100%; z-index: 20; } .container1-paragraph-bannernarrativa:hover #content1-paragraph-bannernarrativa { display: block; opacity: 100%; z-index: 15; } .container1-paragraph-bannernarrativa:hover #title1-paragraph-bannernarrativa { display: block; opacity: 0%; z-index: 0; } .container2-paragraph-bannernarrativa:hover { width: 100%; } #content2-paragraph-bannernarrativa { opacity: 0%; position: absolute; width: 100%; transition: opacity 1s ease; /* Transition for the opacity property */ } #content2-paragraph-bannernarrativa p { width: 70%; transition: opacity 1s ease; /* Transition for the opacity property */ } #title2-paragraph-bannernarrativa { opacity: 100%; position: absolute; width: 100%; z-index: 20; } .container2-paragraph-bannernarrativa:hover #content2-paragraph-bannernarrativa { display: block; opacity: 100%; /* Make it visible */ z-index: 15; } .container2-paragraph-bannernarrativa:hover #title2-paragraph-bannernarrativa { display: block; opacity: 0%; /* Make it visible */ z-index: 0; } .container3-paragraph-bannernarrativa:hover { width: 100%; } #content3-paragraph-bannernarrativa { opacity: 0%; position: absolute; width: 100%; transition: opacity 0.5s ease; /* Faster opacity transition */ } #content3-paragraph-bannernarrativa p { width: 70%; transition: opacity 0.5s ease; /* Faster opacity transition */ } #title3-paragraph-bannernarrativa { opacity: 100%; position: absolute; width: 100%; z-index: 20; } .container3-paragraph-bannernarrativa:hover #content3-paragraph-bannernarrativa { display: block; opacity: 100%; z-index: 15; } .container3-paragraph-bannernarrativa:hover #title3-paragraph-bannernarrativa { display: block; opacity: 0%; z-index: 0; }