-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
67 lines (63 loc) · 2.06 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🪄 linear-gradient Background Animation Generator</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body style="background-image: linear-gradient(to right , #183048, #4c637a);" class="body body-2">
<header>
<div class="header-div">
<div class="left-header">
<h2>linear-gradient Background Animation</h2>
<p>Generator</p>
</div>
<div class="right-header">
<button class="github-btn">
<img src="image/icon-github.svg">
<span>View on GitHub</span>
</button>
</div>
</div>
</header>
<main>
<div class="main-div">
<div class="color-inputs">
<div class="color-left">
<input class="color-picker-1 picker" type="color" value="#183048">
</div>
<div class="color-right">
<input class="color-picker-2 picker" type="color" value="#4c637a">
</div>
</div>
<div class="generate-buttom">
<button id="generate">Generate</button>
</div>
<div class="output">
<button class="copy">Copy</button>
<textarea readonly class="code-output">
background: linear-gradient(to right , #183048 , #4c637a);
background-size: 400% 400%;
animation: changeBG 4s infinite;
@keyframes changeBG {
0% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
} </textarea>
</div>
</div>
</main>
<footer>
<p>Made with 🤍 by <a href="https://github.com/mhyar-nsi" target="_blank">Mahyar</a></p>
</footer>
<script src="js/script.js"></script>
</body>
</html>