js+css实现炫酷科幻密码输入框破解锁定ui动态界面代码

代码语言:html

所属分类:布局界面

代码描述:js+css实现炫酷科幻密码输入框破解锁定ui动态界面代码

代码标签: js css 炫酷 科幻 密码 输入框 破解 锁定 ui 动态 界面 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
 
<meta charset="UTF-8">
 

 
 
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&display=swap');

:root {
    --primary-color: #00ffd5;
    --secondary-color: #ff005b;
    --tertiary-color: #001eff;
    --background-dark: #0a0a14;
    --glass-bg: rgba(23, 25, 35, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neu-shadow-dark: rgba(0, 0, 0, 0.4);
    --neu-shadow-light: rgba(255, 255, 255, 0.05);
    --font-main: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--background-dark);
    color: var(--primary-color);
    font-family: var(--font-main);
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    perspective: 1000px;
    background: radial-gradient(circle at center, #1a1a2e, #0a0a14);
    overflow: hidden;
}

header {
    position: relative;
    padding: 20px 0;
    z-index: 10;
    width: 100%;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

.glitch-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    position: relative;
    animation: textShadow 1.6s infinite;
    text-shadow: 0 0 10px var(--primary-color),
                 0 0 20px var(--primary-color),
                 0 0 30px var(--primary-color);
}

.glitch-title::before, .glitch-title::after {
    content: "ERROR: ACCESS DENIED";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch-title::before {
    color: var(--secondary-color);
    animation: glitch 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
}

.glitch-title::after {
    color: var(--tertiary-color);
    animation: glitch 2s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

main {
    display: flex;
    flex: 1;
    padding: 0 20px 30px;
    perspective: 1000px;
    z-index: 5;
    position: relative;
    margin: -35px auto;
}

.keypad-section, .log-section {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.5s ease-out forwards;
}

.keypad-container {
    width: min(380px, 90%);
    padding: 30px;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px var(--neu-shadow-dark),
                inset 0 1px 1px var(--neu-shadow-light),
                0 0 20px rgba(0, 255, 213, 0.2);
    transform-style: preserve-3d;
    animation: floatKeypad 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.keypad-container::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 213, 0.1) 0%, transparent 70%);
    opacity: 0.5;
    animation: moveGlow 15s infinite alternate;
}

.pin-display {
    margin-bottom: 30px;
    height: 60px;
    background: rgba(10, 12, 18, 0.8);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5),
                0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.pin-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.pin-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color),
                0 0 20px var(--primary-color);
    animation: pulseDot 1.5s infinite;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
}

.key {
    height: clamp(50px, 10vh, 70px);
    border-radius: 15px;
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    background: linear-gradient(145deg, #15152a, #1a1a33);
    border: none;
    box-shadow: 5px 5px 10px var(--neu-shadow-dark),
                -5px -5px 10px var(--neu-shadow-light);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.85, 0.45, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 213, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.key:hover {
    transform: translateY(-2px);
}

.key:hover::before {
    opacity: 1;
}

.key:active {
    transform: translateY(2px);
    box-shadow: 3px 3px 6px var(--neu-shadow-dark),
                -3px -3px 6px var(--neu-shadow-light),
                0 0 15px rgba(0, 255, 213, 0.3);
    background: linear-gradient(145deg, #1414.........完整代码请登录后点击上方下载按钮下载查看

网友评论0