Skip to content

Commit

Permalink
Improved popup animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pierluigizagaria committed Sep 7, 2020
1 parent 52b9704 commit 7422a82
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
19 changes: 11 additions & 8 deletions css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,16 @@ input:checked+.slider:before {
border-radius: 50%;
}

.text-cursor {
border-right: .05em solid;
animation: caret 1s steps(1) infinite;
.wavy {
display: inline-block;
position: relative;
}

@keyframes caret {
50% {
border-color: transparent;
}

.wavy:before {
content: "~";
color: red;
width: 100%;
position: absolute;
top: 12px;
overflow: hidden;
}
2 changes: 1 addition & 1 deletion js/popup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let texts = ["what's up?","What's up?"]
let texts = ["<span class='wavy'>w</span>hat's up?","What's up?"]

var typewriter = new Typewriter(document.getElementById('text'));

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WhatsUpper?",
"version": "1.1.1",
"version": "1.1.2",
"description": "Auto-capitalize the first letter in WhatsApp's chats.",
"manifest_version": 2,
"applications": {
Expand Down

0 comments on commit 7422a82

Please sign in to comment.