Skip to content

Commit 5235a2d

Browse files
Merge pull request #6 from DevCANS/add-effects
Adds effects
2 parents 158aa35 + 1771dc9 commit 5235a2d

3 files changed

Lines changed: 26 additions & 9 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ Thumbs.db
2424
.vscode
2525
.vs
2626
.idea
27+
28+
# Extras
29+
.log
30+
temp.*
31+
tmp.*

assets/css/style.css

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ li.tab {
8181
}
8282

8383
.tabs .tab a {
84-
color: #b71c1c;
84+
color: #B71C1C;
8585
}
8686

8787
.tab a.active {
@@ -90,11 +90,11 @@ li.tab {
9090

9191
.tabs .tab a:focus.active {
9292
font-weight: bold;
93-
background-color: #f3e5f5;
93+
background-color: #F3E5F5;
9494
}
9595

9696
.tabs .indicator {
97-
background-color: #b71c1c;
97+
background-color: #B71C1C;
9898
padding: 2px;
9999
border-radius: 2px;
100100
}
@@ -104,7 +104,7 @@ ul.collapsible {
104104
}
105105

106106
ul.collapsible .collapsible-body {
107-
background: #eeeeee;
107+
background: #EEE;
108108
}
109109

110110
.scale-card {
@@ -170,15 +170,27 @@ h1, h2 {
170170

171171
h1 {
172172
font-size: 3.5rem;
173-
color: #eee;
173+
color: #EEE;
174174
}
175175

176176
h2 {
177177
font-size: 2rem;
178-
color: #ccc;
178+
color: #CCC;
179+
}
180+
181+
.txt-type {
182+
color: #FF5722;
179183
}
180184

181185
/* Cursor */
182-
.txt-type > .txt {
183-
border-right: 0.1rem solid #ccc;
186+
.txt-type::after {
187+
color: #FF5722;
188+
content: "_";
189+
animation: animate-cursor 1s infinite;
190+
}
191+
192+
@keyframes animate-cursor {
193+
75% {
194+
content: "";
195+
}
184196
}

assets/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class TypeWriter {
215215
}
216216

217217
// Insert text into element
218-
this.textElement.innerHTML = `<span class="txt">${this.text}</span`;
218+
this.textElement.innerHTML = this.text;
219219

220220
// Initial type Speed
221221
let typeSpeed = 250;

0 commit comments

Comments
 (0)