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 :: background path css |
Css :: how mto change the label font style in css |
Css :: vertical sliders css |
Css :: css float placeholder |
Css :: animation-delay in css |
Css :: css animation not working |
Css :: How to write text in middle of straight line in css |
Css :: css outline shorthand |
Css :: text align in materialize css |
Css :: css add space right |
Css :: how to add bold in css |
Css :: place-content css property |
Css :: transparent blur effect css |
Css :: css background templates |
Css :: scrollbar style |
Css :: w3.css templates |
Css :: css position |
Css :: how to remove list style in css |
Css :: text cow |
Css :: button position translate on bottom edge bootstrap |
Css :: footer for front end developer |
Css :: target element id css |
Css :: how css is structured |
Css :: swipe animation css |
Css :: css chess pieces |
Css :: select all paragraph that contains image in css |
Css :: Creating Hashnode logo with CSS |
Css :: css loading spinner with text |
Css :: li color change css |
Css :: inexorably |