Jprood Posted October 29, 2020 Posted October 29, 2020 Site URL: http://minimist.ca howdy all, I wanted to replicate this inverted dot cursor. my site is white and not black background. I've tried copy and paste all of this into code injection with no avail. and I've changed the colors from #fffff to #00000 and still nope. anyone have any input they can spare for me please <style> @media (hover: none) { .cursor {display:none !important; } } * { cursor: none; } .cursor { --size: 30px; height: var(--size); width: var(--size); border-radius: 50%; position: absolute; z-index: 99999999999; transform: translate(-50%, -50%); pointer-events: none; } .cursor.cursor-dot { background: #ffffff; /* This defines the color of the cursor */ mix-blend-mode: difference; /* Delete this line if you dont want the circle to invert */ transition: width .3s, height .3s, background-color .3s; transition-timing-function: ease-out; } .cursor-dot.active { --size: 50px; background-color: #ffffff; } </style> <script> $(window).mousemove(function(e) { $(".cursor").css({ left: e.pageX, top: e.pageY }) }); $(window).mousemove(function(e) { $("a") .on("mouseenter", function() { $('.cursor').addClass("active") }) }); $(window).mousemove(function(e) { $("a") .on("mouseleave", function() { $('.cursor').removeClass("active") }) }); </script>
Beyondspace Posted October 30, 2020 Posted October 30, 2020 have you solve it? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Jprood Posted October 30, 2020 Author Posted October 30, 2020 12 hours ago, bangank36 said: have you solve it? Nope not yet 😞
Jprood Posted October 30, 2020 Author Posted October 30, 2020 6 hours ago, Jprood said: Nope not yet 😞 any idea on what or where wrong im placing the code ? ive tried it all in injection and ive tried script in injection and the style in the custom css. all ive acomplished so far is just making the cursor disapear completely lol
creedon Posted October 30, 2020 Posted October 30, 2020 It appears to be functioning to me. What browser are you using? I'm on Chrome on Mac. It also looked OK on Safari. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
Jprood Posted October 31, 2020 Author Posted October 31, 2020 3 hours ago, creedon said: It appears to be functioning to me. What browser are you using? I'm on Chrome on Mac. It also looked OK on Safari. thats not my site. thats just where i borrowed the code from. Im trying to implement it on my site www.fitaf.co but cant seen to get that bit of code to work. when i paste all the code into my code injection and change the color since his site is blk and mine is white all i seem to do is just make the cursor invisable
creedon Posted October 31, 2020 Posted October 31, 2020 3 hours ago, Jprood said: thats not my site. Doh! LOL. Uh ignore my last comment! 🙂 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
Jprood Posted October 31, 2020 Author Posted October 31, 2020 9 hours ago, creedon said: Doh! LOL. Uh ignore my last comment! 🙂 lol I’m that way daily in this pandemic 🙂
Recommended Posts
Archived
This topic is now archived and is closed to further replies.