From: Jason Woofenden Date: Wed, 24 Feb 2016 18:37:12 +0000 (-0500) Subject: fix cursor blink in firefox, tweak X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=commitdiff_plain;h=ae38e0db8cb6eba45ffb6c1a3e76c1b20efba696 fix cursor blink in firefox, tweak --- diff --git a/editor.coffee b/editor.coffee index e3b922e..df8ad8a 100644 --- a/editor.coffee +++ b/editor.coffee @@ -174,17 +174,15 @@ css += 'height: 1em;' css += 'width: 2px;' css += 'margin-left: -1px;' css += 'margin-right: -1px;' -css += 'background: #000;' -css += '-webkit-animation: 1s blink step-end infinite;' -css += 'animation: 1s blink step-end infinite;' +css += 'background: #444;' +css += '-webkit-animation: blink 1s steps(2, start) infinite;' +css += 'animation: blink 1s steps(2, start) infinite;' css += '}' -css += '@-webkit-keyframes "blink" {' -css += 'from, to { background: #000; }' -css += '50% { background: transparent; }' +css += '@-webkit-keyframes blink {' +css += 'to { visibility: hidden; }' css += '}' -css += '@keyframes "blink" {' -css += 'from, to { background: #000; }' -css += '50% { background: transparent; }' +css += '@keyframes blink {' +css += 'to { visibility: hidden; }' css += '}' # key codes: