123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- /* 首页页面 */
- @media (min-width: 768px) {
- .work-row {
- height: 800px;
- box-sizing: border-box;
- }
- }
- @media (min-width: 768px) {
- .row-two-col {
- height: 50%;
- overflow: hidden;
- }
- }
- @media (min-width: 768px) {
- .work-row-col {
- height: 100%;
- overflow: hidden;
- }
- }
- @media (min-width: 768px) {
- .col-two-row {
- height: 100%;
- }
- }
- .col-one-img {
- overflow: hidden;
- height: 100%;
- position: relative;
- }
- .col-one-img img {
- height: 100%;
- width: 100%;
- object-fit: cover;
- }
- @media (max-width: 767px) {
- .row-two-col {
- height: 300px;
- overflow: hidden;
- position: relative;
- }
- }
- .col-title {
- transition: all ease 1s;
- position: absolute;
- top: 0;
- left: 0;
- z-index: 999;
- opacity: 0;
- display: inline-block;
- width: 100%;
- height: 100%;
- background-color: rgba(4, 4, 4, 0);
- }
- .col-title a {
- transition: all ease 1s;
- position: absolute;
- top: 60%;
- display: inline-block;
- text-align: center;
- width: 100%;
- transform: translateY(-50%);
- color: var(--bs-body-bg);
- text-decoration: none;
- font-weight: bold;
- }
- .col-one-img img {
- transform: scale(1);
- transition: all ease 0.5s;
- }
- .col-img {
- height: 100%;
- }
- .col-one-img:hover .col-img img {
- transform: scale(1.1);
- transition: all ease 0.5s;
- }
- .col-one-img:hover .col-title {
- opacity: 100;
- transition: all ease 1s;
- background-color: rgba(4, 4, 4, 0.5);
- }
- .col-one-img:hover .col-title a {
- top: 50%;
- transition: all ease 1s;
- }
- /* 案例页面 */
- .work-img-box {
- overflow: hidden;
- }
-
- .work-col-box {
- height: 300px;
- overflow: hidden;
- }
-
- .work-img-box img {
- object-fit: cover;
- left: 50%;
- transform: translateX(-50%) scale(1);
- transition: all ease 0.5s;
- }
-
- .work-col-title {
- top: 55%;
- transform: translateY(-50%);
- transition: all ease 1s;
- }
-
- .work-col-title-box {
- background-color: rgba(4, 4, 4, 0.5);
- z-index: 9999;
- transition: all ease 1s;
- opacity: 0;
- }
-
- .work-col-box:hover .work-img-box img {
- left: 50%;
- transform: translateX(-50%) scale(1.1);
- transition: all ease .5s;
- }
-
- .work-col-box:hover .work-col-title {
- top: 50%;
- transition: all ease 1s;
- }
-
- .work-col-box:hover .work-col-title-box {
- opacity: 1;
- transition: all ease 1s;
- }
-
- @media (max-width: 767px) {
- .work-img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- }
-
- @media (min-width: 768px) {
- .work-img {
- height: 100%;
- width: auto;
- object-fit: cover;
- }
- }
- @media (min-width: 768px) {
- .work-row {
- height: 800px;
- box-sizing: border-box;
- }
- .work-one-col {
- height: 100%;
- width: 50%;
- }
-
- .work-two-col {
- height: 50%;
- width: 50%;
- }
- }
-
- .col-one-img {
- overflow: hidden;
- height: 100%;
- position: relative;
- }
|