forked from kitian616/jekyll-TeXt-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jamie Wu
committed
Aug 26, 2019
1 parent
ebd7a45
commit a81c7c0
Showing
5 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<!-- start custom article top snippet --> | ||
|
||
<!-- end custom article top snippet --> | ||
<!-- end custom article top snippet --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<!-- start custom head snippets --> | ||
{% if page.key == "home" %} | ||
<link href="/assets/css/home.css" rel="stylesheet"> | ||
{% endif %} | ||
<!-- end custom head snippets --> | ||
|
||
<!-- end custom head snippets --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
p.overlay__excerpt { | ||
overflow: hidden; /* Ensures the content is not revealed until the animation */ | ||
border-right: .1em solid white; /* The typwriter cursor */ | ||
white-space: nowrap; /* Keeps the content on a single line */ | ||
margin: 0 auto 0 0; /* Gives that scrolling effect as the typing happens */ | ||
letter-spacing: .16em; /* Adjust as needed */ | ||
box-sizing: border-box; | ||
animation: | ||
typing 3.5s steps(100, end), | ||
blink-caret 1s step-end infinite; | ||
} | ||
|
||
/* The typing effect */ | ||
@keyframes typing { | ||
from { width: 0 } | ||
to { width: 100% } | ||
} | ||
|
||
/* The typewriter cursor effect */ | ||
@keyframes blink-caret { | ||
from, to { border-color: transparent } | ||
50% { border-color: white; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters