Skip to content

Commit 18bfe37

Browse files
committed
Improved animations
1 parent bff7706 commit 18bfe37

20 files changed

+71
-2
lines changed

index.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ <h1></h1>
6363
<div class="col primary">
6464
<div class="neck">
6565
<div id="head" class="head">
66-
<div class="visor">
66+
<div class="ear left"></div>
67+
<div class="ear right"></div>
68+
<div class="visor"></div>
69+
<div class="hair"></div>
70+
<div class="visor-mask">
71+
<div class="visor-shine"></div>
6772
<img src="/style/images/protogen/eyes_open.png" id="eyes" class="visor-sprite">
6873
<img src="/style/images/protogen/mouth_closed.png" id="mouth" class="visor-sprite">
6974
<img src="/style/images/protogen/nose.png" id="nose" class="visor-sprite">
@@ -73,12 +78,16 @@ <h1></h1>
7378
</div>
7479
<div class="col secondary">
7580
<h1>MortCodesWeb</h1>
81+
<p>Protogen Furry Wolf</p>
82+
<p>Owner &amp; Lead Design and Development of Orchid Org.</p>
7683
<p>Age: 18</p>
7784
<p>Gender: Male</p>
7885
<p>Web Developer</p>
7986
<p>Software Developer</p>
8087
<p>UI Designer</p>
8188
<p>UI Animator</p>
89+
<br>
90+
<p>I bet you like this 2D proto animation i made</p>
8291
</div>
8392
</div>
8493
</div>

style/images/protogen/ear_left.png

4.75 KB
Loading

style/images/protogen/ear_right.png

8.4 KB
Loading

style/images/protogen/eyes_angry.png

71 Bytes
Loading

style/images/protogen/eyes_closed.png

140 Bytes
Loading

style/images/protogen/eyes_open.png

148 Bytes
Loading
139 Bytes
Loading

style/images/protogen/eyes_tired.png

75 Bytes
Loading

style/images/protogen/hair.png

4.59 KB
Loading

style/images/protogen/head.png

-16.1 KB
Loading

style/images/protogen/head_mask.png

37 Bytes
Loading
480 Bytes
Loading

style/images/protogen/mouth_frown.png

195 Bytes
Loading

style/images/protogen/mouth_open.png

423 Bytes
Loading

style/images/protogen/mouth_smile.png

269 Bytes
Loading

style/images/protogen/neck.png

-46 Bytes
Loading

style/images/protogen/nose.png

96 Bytes
Loading

style/images/protogen/visor.png

10.9 KB
Loading

style/images/protogen/visor_shine.png

3.77 KB
Loading

style/protogen.css

+61-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
width: 150px;
66
height: 150px;
77
transform: scaleX(-1);
8-
translate: -50% 0;
8+
translate: -50% 10%;
99
background: url(images/protogen/neck.png) no-repeat center top / contain;
10+
pointer-events: none;
11+
user-select: none;
1012
}
1113

1214
.head {
@@ -21,14 +23,61 @@
2123
transition: transform 0.3s cubic-bezier(0.5, 0.8, 0, 1.3);
2224
}
2325

26+
.ear {
27+
position: absolute;
28+
top: 11px;
29+
right: 33px;
30+
width: 124px;
31+
height: 113px;
32+
transition: transform 0.3s cubic-bezier(0.5, 0.8, 0, 2);
33+
}
34+
35+
.ear.left {
36+
transform: rotate(calc(-25deg * var(--mouse-progress-y))) scaleX(calc(0.975 - (0.025 * var(--mouse-progress-x))));
37+
transform-origin: 25% 75%;
38+
background: url(images/protogen/ear_left.png) no-repeat center top / contain;
39+
}
40+
41+
.ear.right {
42+
z-index: 2;
43+
transform: rotate(calc(-5deg * var(--mouse-progress-y))) scaleX(calc(0.975 - (0.025 * var(--mouse-progress-x))));
44+
transform-origin: 75% 75%;
45+
background: url(images/protogen/ear_right.png) no-repeat center top / contain;
46+
}
47+
48+
.hair {
49+
z-index: 1;
50+
position: absolute;
51+
top: 61px;
52+
right: 83px;
53+
width: 93px;
54+
height: 80px;
55+
transform: translateX(calc(-2px * var(--mouse-progress-x))) scaleX(calc(0.975 - (0.025 * var(--mouse-progress-x))));
56+
background: url(images/protogen/hair.png) no-repeat center top / contain;
57+
transition: transform 0.3s cubic-bezier(0.5, 0.8, 0, 2);
58+
}
59+
2460
.visor {
61+
position: absolute;
62+
bottom: 0;
63+
left: 0;
64+
width: 206px;
65+
height: 206px;
66+
transform: translateX(calc(-5px * var(--mouse-progress-x))) scaleX(calc(0.975 + (0.025 * var(--mouse-progress-x))));
67+
background: url(images/protogen/visor.png) no-repeat center top / contain;
68+
transition: transform 0.3s cubic-bezier(0.5, 0.8, 0, 2);
69+
}
70+
71+
.visor-mask {
2572
-webkit-mask: url(images/protogen/head_mask.svg) no-repeat center top / contain;
2673
position: absolute;
2774
bottom: 3px;
2875
left: 3px;
2976
width: 136px;
3077
height: 94px;
78+
transform: translateX(calc(-5px * var(--mouse-progress-x))) scaleX(calc(0.975 + (0.025 * var(--mouse-progress-x))));
3179
mask: url(images/protogen/head_mask.svg) no-repeat center top / contain;
80+
transition: transform 0.3s cubic-bezier(0.5, 0.8, 0, 2);
3281
}
3382

3483
#eyes {
@@ -62,3 +111,14 @@
62111
transform-origin: top center;
63112
transition: transform 0.3s cubic-bezier(0.5, 0.8, 0, 2);
64113
}
114+
115+
.visor-shine {
116+
position: absolute;
117+
top: -35%;
118+
right: 0;
119+
width: 282px;
120+
height: 117px;
121+
transform: translateX(calc(-30px * var(--mouse-progress-x))) scaleX(calc(0.975 + (0.025 * var(--mouse-progress-x))));
122+
background: url(images/protogen/visor_shine.png) no-repeat center top / contain;
123+
transition: transform 0.3s cubic-bezier(0.5, 0.8, 0, 2);
124+
}

0 commit comments

Comments
 (0)