Skip to content

Commit a98f2ec

Browse files
committed
Make error animation slower
1 parent 08f0fea commit a98f2ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
}
146146

147147
.error {
148-
animation: shake 0.2s cubic-bezier(.36,.07,.19,.97) both;
148+
animation: shake 0.3s cubic-bezier(.36,.07,.19,.97);
149149
transform: translate3d(0, 0, 0);
150150
backface-visibility: hidden;
151151
perspective: 1000px;

sketch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ function linebreak() {
650650
function renderSourceCode() {
651651
function indicateSourceError() {
652652
srcContainer.classList.add('error');
653-
window.setTimeout(() => srcContainer.classList.remove('error'), 200);
653+
window.setTimeout(() => srcContainer.classList.remove('error'), 300);
654654
}
655655

656656
// Keep it within tha limit

0 commit comments

Comments
 (0)