Jquery
JAVASCRIPT
$(function() { $('body, html').click(function() { $('body').append('<div class="bug_pointer" style="left: '+event.pageX+'px; top: '+event.pageY+'px;">'); setTimeout(function() { $('.bug_pointer').remove() } ,300) } ) } )
CSS
CSS
.bug_pointer{ z-index: 1000; height: 40px; width: 40px; display: block; content: ""; background: #1e88e5; margin: -20px; border-radius: 100%; -webkit-animation: bugMenu 0.5s ease-out; opacity: 0; transform: scale(0); position: absolute; } @-webkit-keyframes bugMenu { 0% {opacity: 1; transform: scale(1);} 100% {opacity: 0; transform: scale(0);} }
Thêm thư viện jquery nó sẽ chạy;
Hoạt động khi click chuột sẽ để lại điểm xanh đánh dấu và ẩn sau vài giây ngắn,
rảnh viết chơi ... ko thích cũng ko sao