Skip to content

Commit 14615ea

Browse files
authored
Merge pull request #6 from ac-mmi/main
Glitch, FlipBounce, and FadeSmoke animate-css#1805
2 parents 0b23973 + 880b983 commit 14615ea

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed

source/fading_exits/fadeSmoke.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.animate__fadeSmoke
2+
{
3+
-webkit-animation-name: fadeSmoke;
4+
animation-name: fadeSmoke;
5+
-webkit-animation-duration: 1s;
6+
animation-duration: 1s;
7+
}
8+
9+
@keyframes fadeSmoke
10+
{
11+
0%
12+
{
13+
filter: blur(0px);
14+
transform: scaleY(1)translateY(0px);
15+
opacity: 1;
16+
}
17+
90%
18+
{
19+
filter: blur(10px);
20+
transform: scaleY(1.2)translateY(-20px);
21+
22+
23+
}
24+
100%
25+
{
26+
opacity: 0;
27+
}
28+
}

source/flippers/flipBounce.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.animate__flipBounce
2+
{
3+
display: flex;
4+
align-items: center;
5+
transform-style: preserve-3d;
6+
perspective-origin: 30% 50%;
7+
perspective: 1000px !important;
8+
position: relative;
9+
}
10+
11+
.animate__flipBounce::after
12+
{
13+
content:attr(data-content);
14+
transform-origin: 50% 100%;
15+
display: block;
16+
-webkit-animation-name: flipBounce;
17+
animation-name: flipBounce;
18+
-webkit-animation-duration: 1s;
19+
animation-duration: 1s;
20+
top: 0;
21+
left: 0;
22+
23+
}
24+
@keyframes flipBounce
25+
{
26+
30%
27+
{
28+
transform: rotateX(96deg);
29+
}
30+
60%
31+
{
32+
transform: rotateX(-20deg);
33+
}
34+
100%
35+
{
36+
transform: rotateX(0deg);
37+
}
38+
}

source/specials/glitch.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
.animate__glitch
2+
{
3+
position: relative;
4+
background: inherit; !important;
5+
text-shadow: -3px 0 #F40102,-5px 0 #FBF700,2px 0 #0002FC,5px 0 #00F8FB;
6+
}
7+
8+
.animate__glitch::after,.animate__glitch::before
9+
{
10+
content:attr(data-glitch);
11+
position: absolute;
12+
top: 0;
13+
left: 0;
14+
color: inherit !important;
15+
text-shadow:none;
16+
}
17+
18+
.animate__glitch::after
19+
{
20+
transform: translateX(2px);
21+
background: inherit !important;
22+
clip-path: polygon(0 0,100% 0,100% 30%,0 100%);
23+
animation: glitch 0.2s 0.5s infinite;
24+
-webkit-animation:glitch 0.2s 0.5s infinite;
25+
}
26+
27+
.animate__glitch::before
28+
{
29+
transform: translateX(-3px);
30+
background: inherit !important;
31+
clip-path: polygon(0 60%,100% 0%,100% 100%,0 100%);
32+
animation: glitch 0.2s infinite linear alternate;
33+
-webkit-animation: glitch 0.2s infinite linear alternate;
34+
}
35+
36+
@keyframes glitch
37+
{
38+
from
39+
{
40+
opacity: 0;
41+
}
42+
to
43+
{
44+
opacity: 1;
45+
46+
}
47+
}

0 commit comments

Comments
 (0)