Jprood Posted October 29, 2020 Share 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> Link to comment
Beyondspace Posted October 30, 2020 Share Posted October 30, 2020 have you solve it? Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
Jprood Posted October 30, 2020 Author Share Posted October 30, 2020 12 hours ago, bangank36 said: have you solve it? Nope not yet 😞 Link to comment
Jprood Posted October 30, 2020 Author Share 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 Link to comment
creedon Posted October 30, 2020 Share 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 best , and see my profile. Thanks for your support! Link to comment
Jprood Posted October 31, 2020 Author Share 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 Link to comment
creedon Posted October 31, 2020 Share 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 best , and see my profile. Thanks for your support! Link to comment
Jprood Posted October 31, 2020 Author Share 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 🙂 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment