-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstyle.css
More file actions
82 lines (82 loc) · 6.46 KB
/
style.css
File metadata and controls
82 lines (82 loc) · 6.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg-color: #f0f2f5; --text-color: #333; --card-bg: rgba(255,255,255,0.8); --card-border: rgba(0,0,0,0.1);
--primary-color: #4a90e2; --secondary-color: #50e3c2; --shadow-color: rgba(0,0,0,0.1); }
body.dark { --bg-color: #1f1f1f; --text-color: #eee; --card-bg: rgba(30,30,30,0.9); --card-border:
rgba(255,255,255,0.1); --primary-color: #4a90e2; --secondary-color: #50e3c2; --shadow-color: rgba(0,0,0,0.5); }
body { background-color: var(--bg-color); color: var(--text-color); font-family: 'Helvetica Neue', Helvetica, Arial,
sans-serif; transition: background-color 0.3s, color 0.3s; overflow-x: hidden; }
html { scroll-behavior: smooth; }
header { padding: 20px; text-align: center; backdrop-filter: blur(10px); background: var(--card-bg); box-shadow: 0 2px
10px var(--shadow-color); position: sticky; top: 0; z-index: 1000; }
header h1 { margin-bottom: 10px; }
.controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.filters button, .theme-toggle button { padding: 8px 16px; border: none; background: var(--primary-color); color: #fff;
border-radius: 5px; cursor: pointer; transition: background 0.3s; }
.filters button:hover, .theme-toggle button:hover { background: var(--secondary-color); }
.filters button.active { background: var(--secondary-color); }
.animation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 20px;
}
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden;
box-shadow: 0 4px 15px var(--shadow-color); transition: transform 0.3s; cursor: pointer; }
.card:hover { transform: translateY(-5px); }
.preview { padding: 20px; text-align: center; border-bottom: 1px solid var(--card-border); }
.hover-box { padding: 20px; background: var(--primary-color); color: #fff; border-radius: 5px; transition: transform
0.3s ease; }
.hover-box:hover { transform: scale(1.1); }
.rotate-box { display: inline-block; padding: 20px; background: var(--secondary-color); color: #fff; border-radius: 50%;
animation: rotate 3s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ripple-btn { position: relative; overflow: hidden; padding: 10px 20px; border: none; background: var(--primary-color);
color: #fff; border-radius: 5px; cursor: pointer; }
.ripple-btn::after { content: ''; position: absolute; background: rgba(255,255,255,0.5); width: 100px; height: 100px;
opacity: 0; border-radius: 50%; transform: scale(0); transition: transform 0.5s, opacity 1s; }
.ripple-btn:active::after { transform: scale(2); opacity: 1; transition: 0s; }
.fade-text { font-size: 1.5em; animation: fade 2s ease-in-out infinite; }
@keyframes fade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.bg-box { padding: 20px; border-radius: 5px; background: linear-gradient(45deg, #ff6b6b, #f7d794); background-size: 200%
200%; animation: bgShift 5s ease infinite; color: #fff; }
@keyframes bgShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% {
background-position: 0% 50%; } }
.card-info { padding: 15px; }
.card-info h3 { margin-bottom: 10px; font-size: 1.2em; }
.card-info p { font-size: 0.9em; margin-bottom: 15px; }
.copy-btn { padding: 8px 12px; border: none; background: var(--primary-color); color: #fff; border-radius: 5px; cursor:
pointer; transition: background 0.3s; }
.copy-btn:hover { background: var(--secondary-color); }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: none;
align-items: center; justify-content: center; z-index: 2000; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { background: var(--card-bg); padding: 20px; border-radius: 10px; width: 90%; max-width: 600px; position:
relative; box-shadow: 0 4px 20px var(--shadow-color); }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 1.5em; cursor: pointer; }
.modal-preview { padding: 20px; text-align: center; border-bottom: 1px solid var(--card-border); }
.modal-info { padding: 15px; }
.modal-info h3 { margin-bottom: 10px; }
.modal-info p { margin-bottom: 15px; }
#modalCopyBtn { padding: 8px 12px; border: none; background: var(--primary-color); color: #fff; border-radius: 5px;
cursor: pointer; transition: background 0.3s; }
#modalCopyBtn:hover { background: var(--secondary-color); }
@media (max-width: 768px) { .controls { flex-direction: column; gap: 10px; } }
.bounce-box { background: var(--primary-color); color: #fff; padding: 20px; border-radius: 5px; }
.shadow-box { padding: 20px; background: var(--primary-color); color: #fff; border-radius: 5px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,144,226,0.7); } 70% { box-shadow: 0 0 0 10px rgba(74,144,226,0); }
100% { box-shadow: 0 0 0 0 rgba(74,144,226,0); } }
.neon-box { background: #000; color: #0f0; padding: 20px; border: 2px solid #0f0; text-align: center; animation: neon
1.5s ease-in-out infinite alternate; }
@keyframes neon { from { box-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0; } to { box-shadow: 0 0 20px #0f0, 0 0
30px #0f0, 0 0 40px #0f0; } }
.color-box { background: var(--primary-color); color: #fff; padding: 20px; transition: background 0.5s ease; }
.color-box:hover { background: var(--secondary-color); }
.skew-text { display: inline-block; animation: skewAnim 3s ease-in-out infinite; }
@keyframes skewAnim { 0% { transform: skewX(0deg); } 50% { transform: skewX(20deg); } 100% { transform: skewX(0deg); } }
.gradient-text { font-size: 2em; background: linear-gradient(45deg, #f06, #4a90e2); background-size: 200% 200%;
-webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 3s ease infinite; }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% {
background-position: 0% 50%; } }
.blur-box { padding: 20px; background: var(--secondary-color); color: #fff; border-radius: 5px; filter: blur(5px);
animation: blurIn 1s forwards; }
@keyframes blurIn { from { filter: blur(5px); opacity: 0; } to { filter: blur(0); opacity: 1; } }
.underline-hover { position: relative; display: inline-block; color: var(--text-color); }
.underline-hover::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px; background:
var(--primary-color); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; }
.underline-hover:hover::after { transform: scaleX(1); transform-origin: left; }