Answers for "cursor change to hand"

CSS
0

how to change mouse pointer into cursor icon when you hover

<style type="text/css">
	button.btn1:hover{
cursor: pointer;
	}
</style>
<button class="btn1" >hover me</button>
Posted by: Guest on June-23-2021
3

how to change what your cursor looks like

#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;
}
Posted by: Guest on August-13-2021

Browse Popular Code Answers by Language