|
@@ -105,30 +105,43 @@
|
|
|
.main .therapy .content {
|
|
|
margin-top: 80px;
|
|
|
height: 540px;
|
|
|
- display: flex;
|
|
|
- align-items: flex-start;
|
|
|
}
|
|
|
.main .therapy .content .item {
|
|
|
- flex-shrink: 0;
|
|
|
+ float: left;
|
|
|
+ width: 180px;
|
|
|
height: 100%;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ transition: width 0.4s;
|
|
|
+}
|
|
|
+.main .therapy .content .item.hover {
|
|
|
+ width: 480px;
|
|
|
}
|
|
|
.main .therapy .content .item.hover .cover {
|
|
|
- display: none;
|
|
|
+ opacity: 0;
|
|
|
}
|
|
|
.main .therapy .content .item.hover .active {
|
|
|
- display: block;
|
|
|
+ opacity: 1;
|
|
|
}
|
|
|
.main .therapy .content .item:first-child .cover {
|
|
|
border-left: 0;
|
|
|
}
|
|
|
+.main .therapy .content .item .cover,
|
|
|
+.main .therapy .content .item .active {
|
|
|
+ transition: opacity 0.4s;
|
|
|
+}
|
|
|
.main .therapy .content .item .cover {
|
|
|
- position: relative;
|
|
|
- width: 180px;
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ top: 0;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ width: 100%;
|
|
|
height: 100%;
|
|
|
box-sizing: border-box;
|
|
|
border-left: 1px solid rgba(243, 146, 13, 0.2);
|
|
|
background: linear-gradient(180deg, transparent 50%, rgba(243, 146, 13, 0.3) 100%);
|
|
|
overflow: hidden;
|
|
|
+ opacity: 1;
|
|
|
}
|
|
|
.main .therapy .content .item .cover .tip {
|
|
|
font-size: 16px;
|
|
@@ -152,8 +165,11 @@
|
|
|
transform: translateX(-50%);
|
|
|
}
|
|
|
.main .therapy .content .item .active {
|
|
|
- position: relative;
|
|
|
- display: none;
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ top: 0;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ opacity: 0;
|
|
|
width: 480px;
|
|
|
height: 100%;
|
|
|
text-align: center;
|