Skip to content

Commit

Permalink
speed up fade-in animation, shorten resolve delay, #19917
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Apr 3, 2019
1 parent 94c6f97 commit 10d5f63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/codelens/codelensController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class CodeLensContribution implements editorCommon.IEditorContribution {

this._detectVisibleLenses = new RunOnceScheduler(() => {
this._onViewportChanged();
}, 500);
}, 250);

const scheduler = new RunOnceScheduler(() => {
const counterValue = ++this._modelChangeCounter;
Expand Down
13 changes: 5 additions & 8 deletions src/vs/editor/contrib/codelens/codelensWidget.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@
opacity: 0;
}

@keyframes fadein { 0% { opacity:0; visibility:visible;} 100% { opacity:1; } }
@-moz-keyframes fadein { 0% { opacity:0; visibility:visible;} 100% { opacity:1; } }
@-o-keyframes fadein { 0% { opacity:0; visibility:visible;} 100% { opacity:1; } }
@-webkit-keyframes fadein { 0% { opacity:0; visibility:visible;} 100% { opacity:1; } }
@keyframes fadein {
0% { opacity: 0; visibility: visible;}
100% { opacity: 1; }
}

.monaco-editor .codelens-decoration.fadein {
-webkit-animation: fadein 0.5s linear;
-moz-animation: fadein 0.5s linear;
-o-animation: fadein 0.5s linear;
animation: fadein 0.5s linear;
animation: fadein 0.1s linear;
}

0 comments on commit 10d5f63

Please sign in to comment.