cursor: pointer;
/* Mouse image is a hand */
input{
caret-color: red;
}
/* Keyword value */
cursor: auto;
cursor: pointer;
/* more at: https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#keyword
/* … */
cursor: zoom-out;
/* URL with mandatory keyword fallback */
cursor: url(hand.cur), pointer;
/* URL and coordinates, with mandatory keyword fallback */
cursor: url(cursor_1.png) 4 12, auto;
cursor: url(cursor_2.png) 2 2, pointer;
/* URLs and fallback URLs (some with coordinates), with mandatory keyword fallback */
cursor: url(cursor_1.svg) 4 5, url(cursor_2.svg), /* … ,*/ url(cursor_n.cur) 5 5,
progress;
/* Global values */
cursor: inherit;
cursor: initial;
cursor: revert;
cursor: revert-layer;
cursor: unset;
body {
/*(Cursor image must be 32*32 pixles)*/
cursor: url(CURSOR_URL), auto;
}
div{
cursor: pointer;
}
#custom-cursor {
display: none;
position: fixed;
width: 20px;
height: 20px;
top: -10px;
left: -10px;
border: 2px solid black;
border-radius: 50%;
opacity: 1;
background-color: #fb4d98;
pointer-events: none;
z-index: 99999999;
transition: transform ease-out 0.15s, border 0.5s, opacity 0.5s, background-color 0.5s;
}
#custom-cursor.active {
opacity: 0.5;
background-color: #000;
border: 2px solid #fb4d98;
}
Code Example |
---|
Css :: max character css |
Css :: css clip |
Css :: align centre |
Css :: grid-column css |
Css :: calc css float to procent |
Css :: grid-template-columns |
Css :: vertical divider between my flexbox |
Css :: hide navbar css |
Css :: text background image css |
Css :: responsive gradient background css |
Css :: html css profile page template |
Css :: bootstrap z-index |
Css :: background css |
Css :: css animation box shadow |
Css :: text size to fit button |
Css :: vertical align text inside div |
Css :: how to override material ui css |
Css :: set css on parent element css |
Css :: css vertical align with flexbox |
Css :: css negative padding |
Css :: transition for css |
Css :: css color when clicked |
Css :: JavaScript find common characters between the strings |
Css :: flexbox elements |
Css :: variable in scss |
Css :: what is flex 1 in css |
Css :: css box sizing |
Css :: insert on positions CSS |
Css :: css font-family |
Css :: css apply style to direct children |