forked from iamsonukushwaha/happyHoli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
108 lines (101 loc) · 2.12 KB
/
style.css
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}
body{
height: 100vh;
width: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background-image: url(./images/holi_1.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
transition: 5s;
animation: animate 30s linear infinite;
animation-fill-mode: forwards;
animation-play-state: running;
animation-timing-function: ease-in-out;
}
@keyframes animate{
0%{
background-image:url(./images/holi_1.jpg)
}
15%{
background-image:url(./images/holi_1.jpg)
}
16%{
background-image:url(./images/holi_2.jpg)
}
32%{
background-image:url(./images/holi_2.jpg)
}
33%{
background-image:url(./images/holi_3.jpg)
}
49%{
background-image:url(./images/holi_3.jpg)
}
50%{
background-image:url(./images/holi_4.jpg)
}
66%{
background-image:url(./images/holi_4.jpg)
}
67%{
background-image:url(./images/holi_5.jpg)
}
83%{
background-image:url(./images/holi_5.jpg)
}
84%{
background-image:url(./images/holi_6.jpg)
}
99%{
background-image:url(./images/holi_6.jpg)
}
100%{
background-image:url(./images/holi_1.jpg)
}
}
.container{
display: flex;
padding: 10px auto;
justify-content: center;
text-align: center;
border-radius: 20px;
width: 60vw;
}
.container:hover{
transition-duration: 2s;
background: rgba(255, 255, 255, 0.6);
animation: animate1 4s linear infinite;
}
@keyframes animate1{
0%,50%,100%{
transform: translateY(0px);
}
25%{
transform: translateY(-20px);
}
75%{
transform: translateY(20px);
}
}
.wish{
margin: auto;
padding: 10px auto;
text-align: center;
font-size: 1.5em;
filter: brightness(200%);
filter: contrast(150%);
}
@media only screen and (max-width: 400px) {
.wish {
font-size: 24px;
}
}