Skip to content

Commit

Permalink
Merge branch 'fix-291'
Browse files Browse the repository at this point in the history
  • Loading branch information
anteprimorac committed Sep 24, 2017
2 parents 2d05c54 + 0dc32b7 commit 99d12e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions lib/typed.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ return /******/ (function(modules) { // webpackBootstrap
if (this.cursorBlinking === isBlinking) return;
this.cursorBlinking = isBlinking;
if (isBlinking) {
this.cursor.classList.add('blink');
this.cursor.classList.add('typed-cursor--blink');
} else {
this.cursor.classList.remove('blink');
this.cursor.classList.remove('typed-cursor--blink');
}
}

Expand Down Expand Up @@ -752,10 +752,10 @@ return /******/ (function(modules) { // webpackBootstrap
css.type = 'text/css';
var innerCss = '';
if (self.showCursor) {
innerCss += '\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ';
innerCss += '\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ';
}
if (self.fadeOut) {
innerCss += '\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ';
innerCss += '\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ';
}
if (css.length === 0) {
return;
Expand Down
Loading

0 comments on commit 99d12e0

Please sign in to comment.