Jump to content

yogacid

Circle Member
  • Posts

    32
  • Joined

  • Last visited

Posts posted by yogacid

  1. 10 hours ago, tuanphan said:

    Can you share link to a page where you use scroll to top arrow? Current I don't see this arrow.

    Hi, I removed the arrow because its in the way of the new nav bar. Here's the code for it:

    <!-- Scroll to the top -->
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
    <button onclick="topFunction()" id="myBtn" title="Go to top"><i class="fas fa-arrow-up"></i></button>
    <!-- End Scroll to the top -->
    
    
    <!-- Scroll to the top JS-->
    <script>
       window.onscroll = function() {scrollFunction()};
    
       function scrollFunction() {
          if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
             document.getElementById("myBtn").style.display = "block";
          } else {
             document.getElementById("myBtn").style.display = "none";
          }
       }
    
       function topFunction() {
          $('html,body').animate({ scrollTop: 0 }, 750);
       }
    </script>
    <!-- End Scroll to the top JS-->

     

  2. Site URL: https://psygaia.org/psychedelic-preparation

    I recently installed a adaptive navagation menu bar on a few of my website pages. However, it doesn't work with the scroll to top arrow. I would like to keep that arrow on every page except the few pages that I am using the adaptive nav bar on.

    Here's the code for the scroll to top arrow:

    <!-- Scroll to the top JS-->
    <script>
       window.onscroll = function() {scrollFunction()};
    
       function scrollFunction() {
          if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
             document.getElementById("myBtn").style.display = "block";
          } else {
             document.getElementById("myBtn").style.display = "none";
          }
       }
    
       function topFunction() {
          $('html,body').animate({ scrollTop: 0 }, 750);
       }
    </script>
    <!-- End Scroll to the top JS-->

    Thank you

  3. Site URL: https://psygaia.org/microdosing-course

    Hi there, I recently found this custom css that adds a little arrow to the button, which is great. However, I am having issues with the colour of the arrow. I need the button to change colour, like the text in the button, so that when hovering, the arrow becomes black and we can see it.

    .sqs-block-button .sqs-button-element--primary:after {
      width: 20px;
      height: 15px;
      margin-left: 15px;
      background: url(https://static1.squarespace.com/static/5ba5e044b10f25cb908c506f/t/66de25785e74a84e10708c23/1725834616316/arrow_icon.png) center center no-repeat;
      filter: invert(1);
      background-size: contain;
      content: "";
      vertical-align: middle;
      transition: ease-in-out all 0.2s;
    }

    Thanks!

  4. On 7/9/2023 at 1:41 AM, tuanphan said:

    You can use this CSS code

    .video-player .plyr .plyr__controls:before
    {display:none!important;}
    
    .plyr__video-wrapper video, .plyr__video-wrapper
    {border-radius:30px !important;}

     

    Thank you, but, this also rounds the corners on background videos, is there a way to make it only for imbedded videos?

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.