Skip to content

Instantly share code, notes, and snippets.

@vrtmrz
Created December 23, 2022 13:12
Show Gist options
  • Save vrtmrz/8b638347f56d1dad25414953bb95d7b6 to your computer and use it in GitHub Desktop.
Save vrtmrz/8b638347f56d1dad25414953bb95d7b6 to your computer and use it in GitHub Desktop.
/* iAWriter-ish style. */
.cursorWrapper .x-cursor {
opacity: 1;
background: #00bbff;
width: 3px;
left: -1px;
top: calc( -6px - var(--header-height));
height: calc(12px + var(--cursor-height));
transition: opacity;
}
/* Disable movement effect */
.cursorWrapper .x-cursor::after {
display: none;
}
/* Blinking */
.cursorWrapper .x-cursor0,
.cursorWrapper .x-cursor1 {
animation: blink1 1s 0s both infinite;
}
@keyframes blink1 {
0% {
opacity: 1;
}
45% {
opacity: 1;
}
50% {
opacity: 0.2;
}
95% {
opacity: 0;
}
100% {
opacity: 0.2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment