nitsud
-
Posts
3 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by nitsud
-
-
Hello there!
Im looking to solve the same issue, I have a horizontal full bleed video within my landing page at https://www.dustinsites.com , I would like to only show a vertical version of that video for mobile devices. I have the vertical version in a section directly below the horizontal greeting video. Can someone please help provide the code for this?Thank you!!
-
On 3/31/2022 at 5:01 AM, tuanphan said:
Try adding to Code Injection > Footer
<div class="cursor"> <div class="cursor__ball cursor__ball--big "> <svg height="30" width="30"> <circle cx="15" cy="15" r="12" stroke-width="0"></circle> </svg> </div> <div class="cursor__ball cursor__ball--small"> <svg height="10" width="10"> <circle cx="5" cy="5" r="4" stroke-width="0"></circle> </svg> </div> </div> <style> body .cursor { pointer-events: none; } body .cursor__ball { position: fixed; top: 0; left: 0; mix-blend-mode: difference; z-index: 1000; } body .cursor__ball circle { fill: #f7f8fa; } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script> <script> const $bigBall = document.querySelector('.cursor__ball--big'); const $smallBall = document.querySelector('.cursor__ball--small'); const $hoverables = document.querySelectorAll('.hoverable'); // Listeners document.body.addEventListener('mousemove', onMouseMove); for (let i = 0; i < $hoverables.length; i++) {if (window.CP.shouldStopExecution(0)) break; $hoverables[i].addEventListener('mouseenter', onMouseHover); $hoverables[i].addEventListener('mouseleave', onMouseHoverOut); } // Move the cursor window.CP.exitedLoop(0);function onMouseMove(e) { TweenMax.to($bigBall, .4, { x: e.pageX - 15, y: e.pageY - 15 }); TweenMax.to($smallBall, .1, { x: e.pageX - 5, y: e.pageY - 7 }); } // Hover an element function onMouseHover() { TweenMax.to($bigBall, .3, { scale: 4 }); } function onMouseHoverOut() { TweenMax.to($bigBall, .3, { scale: 1 }); } </script>
Hello! Is there anyway to achieve the same custom cursor without using Code Injection? I do not have the upgraded version but would love to have this amazing cursor. Thanks so much in advance!
Sticky Sidebar Navigation
in Customize with code
Posted
Hi everyone,
I would love to create a sticky sidebar navigation for my website (https://www.dustinsites.com) , inspired by this great navigation from https://www.omse.co/ . I would love to get some assistance for this while still being on the personal account, preferably without using a costly plugin. Thank you!!