Skip to content

Commit 0c9ad66

Browse files
Adjusting animation for the poem generating
1 parent d535ce4 commit 0c9ad66

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

.DS_Store

6 KB
Binary file not shown.

src/.DS_Store

6 KB
Binary file not shown.

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ function generatePoem(response){
44
new Typewriter('#poem', {
55
strings: response.data.answer,
66
autoStart: true,
7-
delay: 20,
8-
cursor: ""
7+
delay: 25,
8+
cursor: "🖋️"
99
});
1010
}
1111

src/styles.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ form{
7373
box-shadow: 0 0 12px 2px rgba(136, 176, 75, 0.4);
7474
}
7575

76-
.submit-button:hover::after{
77-
content: ' ✨';
78-
font-size: 16px;
79-
transition: opacity 0.3s ease;
80-
}
81-
8276
.input-example{
8377
opacity: 0.4;
8478
margin-left: 20px;
@@ -149,8 +143,8 @@ a:hover{
149143

150144
/* Animations */
151145
.blink {
152-
animation: blink-animation 1.5s steps(5, start) infinite;
153-
-webkit-animation: blink-animation 1.5s steps(5, start) infinite;
146+
animation: blink-animation 1s steps(5, start) infinite;
147+
-webkit-animation: blink-animation 1s steps(5, start) infinite;
154148
}
155149
@keyframes blink-animation {
156150
to {

0 commit comments

Comments
 (0)