js+svg实现星星字母变形动画效果代码
代码语言:html
所属分类:粒子
代码描述:js+svg实现星星字母变形动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
box-sizing: border-box;
}
body {
padding: 0;
margin: 0;
font-family: serif;
background-color: #010044;
}
.outer_wrapper{
position: fixed;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.wrapper {
width: 100%;
height: 100%;
}
.flex_box {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.sign {
position: absolute;
color: white;
bottom: 10px;
right: 10px;
font-size: 10px;
}
a {
color: white;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.grid {
height: 240px;
width: 240px;
display: flex;
flex-wrap: wrap;
}
.cell {
height: calc(100% / 16);
width: calc(100% / 16);
font-size: 10px;
}
.star {
position: absolute;
transition: 1s;
overflow: hidden;
opacity: 0.3;
height: 15px;
width: 15px;
border-radius: 50%;
}
.star svg {
height: 100%;
width: auto;
}
.star_inner {
height: 15px;
}
.instruction {
position: absolute;
top: 30px;
color: rgb(255, 255, 255);
font-style: italic;
text-align: center;
transition: 1s;
width: 300px;
opacity: 0;
}
.input_wrapper {
position: absolute;
bottom: 0px;
width: 100%;
height: 100px;
display: flex;
align-items: center;
justify-content: center;
}
input, button {
border-width: 0;
border-radius: 50px;
padding: 10px 16px;
margin: 5px;
}
button {
color: white;
background-color: steelblue;
transition: 0.3s;
}
button:hover {
color: steelblue;
background-color: white;
}
</style>
</head>
<body>
<div class="outer_wrapper">
<div class="wrapper flex_box&quo.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0