js+css模拟黑客入侵文字动画效果代码
代码语言:html
所属分类:动画
代码描述:js+css模拟黑客入侵文字动画效果代码,支持配置参数形成不同的风格。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Medula+One" rel="stylesheet">
<style>
body {
background-color: #111;
color: #0f0;
font-family: 'Courier New', monospace;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.text-container {
font-size: 2.5rem;
font-weight: bold;
min-height: 150px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
text-shadow: 0 0 8px currentColor;
}
.scrambling {
text-shadow: 0 0 12px currentColor;
}
.controls {
position: absolute;
top: 20px;
left: 20px;
display: flex;
flex-direction: column;
gap: 10px;
background-color: rgba(0,0,0,0.7);
padding: 15px;
border: 1px solid #0f0;
max-width: 300px;
box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}
.control-group {
display: flex;
flex-direction: column;
margin-bottom: 10px;
}
.control-group label {
margin-bottom: 5px;
font-size: 0.8rem;
}
.btn, select, input[type="text"] {
padding: 8px 12px;
background-color: #333;
color: #0f0;
border: 1px solid #0f0;
cursor: pointer;
font-family: 'Courier New', monospace;
}
.btn:hover {
box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}
.custom-text {
width: 100%;
resize: none;
height: 60px;
background-color: #333;
color: #0f0;
border: 1px solid #0f0;
font-family: 'Courier New', monospace;
margin-bottom: 10px;
}
.color-picker {
display: flex;
gap: 5px;
}
.color-input {
width: 50%;
}
.control-group:last-child {
margin-bottom: 0;
}
.control-group label span {
opacity: 0.8;
}
</style>
</head>
<body translate="no">
<div class="controls">
<div class="control-group">
<label for="charSet">Character Set:</label>
<select id="charSet" onchange="updateSettings()">
<option value="tech1">Tech/Code Symbols 1</option>
<option value="tech2">Tech/Code Symbols 2</option>
<option value="math">Math & Binary</option>
<option value="cryptic">Cryptic/Alien</option>
<option value="mixed">Mixed Languages</option>
<option value="matrix1">Matrix 1</option>
<option value="matrix2">Matrix 2</option>
<option value="matrix3">Chinese Characters</option>
<option value="matrix4">Japanese Kanji</option>
<option value="emoji1">Emoji 1</option>
<option value="emoji2">Emoji 2</option>
<option value="emoji3">Emoji 3</option>
</select>
</div>
<div class="control-group">
<label for="customText">Custom Text:</label>
<textarea id="customText" class="custom-text" placeholder="Enter custom text..."></textarea>
</div>
<div class="control-group">
<label for="revealSpeed">Reveal Speed:</label>
<input type="range" id="revealSpeed" min="1" max="10" value="10" onchange="updateSettings()">
</div>
<div cla.........完整代码请登录后点击上方下载按钮下载查看
网友评论0