css实现类似歌词渐变滚动显示代码
代码语言:html
所属分类:加载滚动
代码描述:css实现类似歌词渐变滚动显示代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
body {
font-family: 'Inter', sans-serif;
color: #ffffff;
overflow: hidden;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-image: url('//repo.bfw.wiki/bfwrepo/image/5d65ea7d8bc8b.png');
}
.lyric-container {
position: relative;
width: 80%;
max-width: 600px;
height: 100vh;
overflow-y: scroll;
scrollbar-width: none;
-ms-overflow-style: none;
}
.lyric-container::-webkit-scrollbar {
display: none;
}
.lyric-line {
text-align: center;
font-size: 1.5rem;
line-height: 2.5rem;
transition: opacity 0.2s ease-out;
will-change: opacity;
padding: 0.5rem 0;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0