Skip to content

Commit d74dcce

Browse files
author
linyisonger
committed
跟着剪辑老师学前端
1 parent c7876f6 commit d74dcce

File tree

2 files changed

+4
-26
lines changed

2 files changed

+4
-26
lines changed

100.曲面八分屏.html

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
justify-content: center;
2424
overflow: hidden;
2525
flex-direction: row-reverse;
26-
box-shadow: 2px 0 30px #333;
26+
box-shadow: 2px 0 30px #000;
2727
transform: translateX(-100%);
2828
transition: transform 5s ease-out;
29-
/* filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6)); */
3029
}
3130

3231
.eighth-box img {
@@ -72,21 +71,6 @@
7271
font-weight: normal;
7372
opacity: .6;
7473
}
75-
76-
/* .header::before {
77-
position: absolute;
78-
height: 100%;
79-
background-color: #000;
80-
content: '';
81-
left: 0;
82-
width: 100%;
83-
transition: left 5s ease-out;
84-
z-index: 10;
85-
} */
86-
87-
/* .header.show::before {
88-
left: 100%;
89-
} */
9074
</style>
9175
</head>
9276

@@ -123,20 +107,12 @@
123107

124108
<script type="module">
125109
let ebSegmentDoms = document.querySelectorAll('.eb-segment')
126-
let headerDom = document.querySelector('.header')
127-
128110
let width = document.body.clientWidth;
129-
130111
ebSegmentDoms.forEach((item, index) => {
131112
item.style.width = `${width / ebSegmentDoms.length}px`;
132113
item.style.zIndex = ebSegmentDoms.length - index + 1
133114
item.style.transform = `translateX(${~~(index * item.clientWidth)}px)`
134-
})
135-
136-
headerDom.classList.add('show')
137-
138-
139-
115+
})
140116
</script>
141117
</body>
142118

examples.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,5 @@
9898
098.全屏滚动.html
9999
099.数据对比.html
100100
100.曲面八分屏.html
101+
blog.html
102+
index.html

0 commit comments

Comments
 (0)