Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.addEventListener("mousemove", e => {
- cursorLink.forEach(item => {
- item.addEventListener("mouseenter", function(i) {
- });
- item.addEventListener("mouseleave", function() {
- });
- });
- }
- });
- item.addEventListener("mouseenter", function(i) {
- const block = i.currentTarget;
- const cursorTarget = block.querySelector('.ct');
- const targetBounds = cursorTarget.getBoundingClientRect();
- targetX = targetBounds.left - 28;
- targetY = targetBounds.top - 28;
- isStuck = true;
- });
- if (!isStuck) {
- if (isStuck) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement