From ff91902c827e8ed633664710cf3e6703e7a420d8 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sat, 1 Nov 2025 20:09:02 +0800 Subject: Typing animation. --- _site/assets/css/main.css | 32 ++++++++++++++++++++++++++++---- _site/feed.xml | 2 +- _site/index.html | 11 ++++++----- _site/posts.xml | 2 +- assets/css/main.css | 32 ++++++++++++++++++++++++++++---- index.html | 11 ++++++----- 6 files changed, 70 insertions(+), 20 deletions(-) diff --git a/_site/assets/css/main.css b/_site/assets/css/main.css index e5c3187..c0ab191 100644 --- a/_site/assets/css/main.css +++ b/_site/assets/css/main.css @@ -197,7 +197,30 @@ pre::-webkit-scrollbar { display: none; } -.cursor::after { +.typewriter-1 { + overflow: hidden; + white-space: nowrap; + margin: 0 auto; + animation: typing 3s steps(40, end); + animation-delay: 0s; +} + +.typewriter-2 { + overflow: hidden; + visibility: hidden; + white-space: nowrap; + margin: 0 auto; + animation: typing 3s steps(40, end); + animation-delay: 3s; + animation-fill-mode: forwards; +} + +@keyframes typing { + 0% { width: 0; visibility: visible; } + 100% { width: 100%; visibility: visible; } +} + +.typewriter-2::after { filter: brightness(0.9); background-color: var(--main-fg-color); box-shadow: 0 0 1px var(--main-fg-color), 0 0 6px var(--main-fg-color); @@ -207,11 +230,12 @@ pre::-webkit-scrollbar { height: 1.9rem; margin-left: -8px; animation: cursor-blink 1s steps(1, start) infinite; + animation-delay: 3.5s; } @keyframes cursor-blink { - 50% { - visibility: hidden; - } + 0% { visibility: visible; } + 50% { visibility: hidden; } + 100% { visibility: visible; } } diff --git a/_site/feed.xml b/_site/feed.xml index c0750e7..67566a9 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -1 +1 @@ -Jekyll2025-11-01T19:38:53+08:00/feed.xmlASCIIMX | ArchiveWickramage Don Sadeep MadurangeNeo4J A* search2025-09-14T00:00:00+08:002025-09-14T00:00:00+08:00/archive/neo4j-a-star-searchWickramage Don Sadeep MadurangeMy first PCB2025-07-14T00:00:00+08:002025-07-14T00:00:00+08:00/archive/my-first-pcbWickramage Don Sadeep MadurangeMOSFETs2025-06-22T00:00:00+08:002025-06-22T00:00:00+08:00/archive/mosfet-switchesWickramage Don Sadeep MadurangeAwesome books2025-04-20T00:00:00+08:002025-04-20T00:00:00+08:00/archive/awesome-booksWickramage Don Sadeep MadurangeProgramming ATmega328P chips2025-04-10T00:00:00+08:002025-04-10T00:00:00+08:00/archive/arduino-unoWickramage Don Sadeep MadurangeBare-metal ARM Cortex M3 chips2024-10-05T00:00:00+08:002024-10-05T00:00:00+08:00/archive/arduino-dueWickramage Don Sadeep Madurange \ No newline at end of file +Jekyll2025-11-02T09:51:22+08:00/feed.xmlASCIIMX | ArchiveWickramage Don Sadeep MadurangeNeo4J A* search2025-09-14T00:00:00+08:002025-09-14T00:00:00+08:00/archive/neo4j-a-star-searchWickramage Don Sadeep MadurangeMy first PCB2025-07-14T00:00:00+08:002025-07-14T00:00:00+08:00/archive/my-first-pcbWickramage Don Sadeep MadurangeMOSFETs2025-06-22T00:00:00+08:002025-06-22T00:00:00+08:00/archive/mosfet-switchesWickramage Don Sadeep MadurangeAwesome books2025-04-20T00:00:00+08:002025-04-20T00:00:00+08:00/archive/awesome-booksWickramage Don Sadeep MadurangeProgramming ATmega328P chips2025-04-10T00:00:00+08:002025-04-10T00:00:00+08:00/archive/arduino-unoWickramage Don Sadeep MadurangeBare-metal ARM Cortex M3 chips2024-10-05T00:00:00+08:002024-10-05T00:00:00+08:00/archive/arduino-dueWickramage Don Sadeep Madurange \ No newline at end of file diff --git a/_site/index.html b/_site/index.html index 9b12cd7..1294f7d 100644 --- a/_site/index.html +++ b/_site/index.html @@ -37,13 +37,14 @@

ASCIIMX

-
- $ cu -l /dev/asciimx -s 9600 -
- wake up... +
+ $ cu -l /dev/asciimx +
+
+ wake up...
- +

diff --git a/_site/posts.xml b/_site/posts.xml index 9212e26..8a09b2c 100644 --- a/_site/posts.xml +++ b/_site/posts.xml @@ -1 +1 @@ -Jekyll2025-11-01T19:38:53+08:00/posts.xmlASCIIMXWickramage Don Sadeep Madurange \ No newline at end of file +Jekyll2025-11-02T09:51:22+08:00/posts.xmlASCIIMXWickramage Don Sadeep Madurange \ No newline at end of file diff --git a/assets/css/main.css b/assets/css/main.css index e5c3187..c0ab191 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -197,7 +197,30 @@ pre::-webkit-scrollbar { display: none; } -.cursor::after { +.typewriter-1 { + overflow: hidden; + white-space: nowrap; + margin: 0 auto; + animation: typing 3s steps(40, end); + animation-delay: 0s; +} + +.typewriter-2 { + overflow: hidden; + visibility: hidden; + white-space: nowrap; + margin: 0 auto; + animation: typing 3s steps(40, end); + animation-delay: 3s; + animation-fill-mode: forwards; +} + +@keyframes typing { + 0% { width: 0; visibility: visible; } + 100% { width: 100%; visibility: visible; } +} + +.typewriter-2::after { filter: brightness(0.9); background-color: var(--main-fg-color); box-shadow: 0 0 1px var(--main-fg-color), 0 0 6px var(--main-fg-color); @@ -207,11 +230,12 @@ pre::-webkit-scrollbar { height: 1.9rem; margin-left: -8px; animation: cursor-blink 1s steps(1, start) infinite; + animation-delay: 3.5s; } @keyframes cursor-blink { - 50% { - visibility: hidden; - } + 0% { visibility: visible; } + 50% { visibility: hidden; } + 100% { visibility: visible; } } diff --git a/index.html b/index.html index eeead92..f6c8a95 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,14 @@ title: ASCIIMX

{{ site.title | uppercase }}

-
- $ cu -l /dev/asciimx -s 9600 -
- wake up... +
+ $ cu -l /dev/asciimx +
+
+ wake up...
- +

-- cgit v1.2.3