Jump to content

tuanphan

Circle Member
  • Posts

    64,819
  • Joined

  • Last visited

  • Days Won

    517

Posts posted by tuanphan

  1. On 4/12/2023 at 1:20 AM, Chrystele said:

    Hi Tuan, I'm sorry for the confusion. I want this kind of mini audio player only for SOME posts, not all.

    You can edit the page where you want to apply > Add a Code Block (anywhere) > Paste this code

    <style>
      .sqs-audio-player {
        background-color: unset !important;
        box-shadow: unset !important;
        border: none !important;
    }
    .sqs-audio-player .controls {
        border: 1px solid black;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(0,0,0,.8);
    }
    </style>

     

  2. Don't remove any code in your current code

    Add this to Design > Custom CSS

    /* Ghost - hide title */
    .custom-gallery-inner-wrapper .sqs-gallery.sqs-gallery-design-grid .slide h3 {
        opacity: 0 !important;
    }
    .custom-gallery-inner-wrapper .sqs-gallery.sqs-gallery-design-grid .slide:hover h3 {
        opacity: 1 !important;
    }

     

  3. On 4/11/2023 at 9:20 PM, bitsst said:

    Hey tuanphan - thank you so much!

    I did discover the same problem in three other places on my website, and am not sure how to edit the code to align texts in another content block than the footer. Could you explain how I can adjust it, to also use it for other parts of my website? 

    The other places are:
    - 'About': under services, the lower three paragraphs
    - 'Contact': the lower two paragraphs ('interested in a lecture?')
    - On my projectpages:
          - Work > Happy Hybrid: the text left underneath the first image
          - Work > Hek Yes: the text left underneath the first image

     

     

    Hi,

    It looks fine to me

    image.thumb.png.bc52efcdfd484be7cf47b273e99fea45.png

  4. 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, 0.4, {
        x: e.pageX - 15,
        y: e.pageY - 15 });
    
      TweenMax.to($smallBall, 0.1, {
        x: e.pageX - 5,
        y: e.pageY - 7 });
    
    }
    
    // Hover an element
    function onMouseHover() {
      TweenMax.to($bigBall, 0.3, {
        scale: 4 });
    
    }
    function onMouseHoverOut() {
      TweenMax.to($bigBall, 0.3, {
        scale: 1 });
    
    }
    </script>

     

  5. On 4/11/2023 at 3:48 PM, lina1570047784 said:

    Thank you! The duplicate site is https://nectarine-salamander-dztm.squarespace.com and pw is rainyday. I've added a custom CSS from this forum (maybe yours), and changed some of the numbers in it. Without that CSS, my header just disappears when scrolling. But what I want is the header to disappear when scrolling down, and reappear when starting to scroll up (or a second later or so).

    Hi,

    Did you solve?

  6. On 4/11/2023 at 4:09 PM, Dilon said:

    @tuanphan with the help of your code and Chat GPT, we are able to somewhat get the below code, what it does is that, it removes the clickable function for mobile. I and with the help of gpt (past 1 day trying different prompt) failed to get the click and drag function to still work. I think click and drag to move through the carousel is very intuitive and important, would be amazing if you could help!

     

    // Make carousel image clickable, disables in mobile
    li.list-item {
      position: relative;
    }

    .list-item-content__button-container {
      position: static;
    }

    @media (min-width: 768px) {
      a.list-item-content__button.sqs-block-button-element {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        color: transparent !important;
        background-color: transparent !important;
      }

      .user-items-list-carousel__slide {
        pointer-events: initial !important;
        user-select: unset !important;
      }
    }

    @media (max-width: 767px) {
      .list-item-content__button-container {
        position: static !important;
      }

      .user-items-list-carousel__slide {
        pointer-events: none !important;
        user-select: none !important;
      }
    }

    Did you solve or still need help?

  7. On 4/11/2023 at 3:47 PM, FTWSGEM said:

    Thank you @tuanphan How would I get the icon/menu button to be either at the very top of the page or to the very right of the page and sticky?

    Add this code under

    div.burger-inner {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99999;
        left: unset;
    }
    .burger-inner:after {
        background-position: right !important;
        margin-right: 0 !important;
        margin-left: auto !important;
    }

     

  8. On 4/11/2023 at 3:21 PM, JonnyIlsley said:

    Hi @tuanphan,

    When I try this, the animation seems to stop however now I cannot press the next or previous button on the carousel which allows me to move to the next items in the summary block.

    Try this new code

    div#block-yui_3_17_2_1_1680602460829_8673 .summary-item-list * {
        transform: unset !important;
        opacity: 1 !important;
        transition-delay: unset !important;
        transition: unset !important;
    }

     

  9. On 4/11/2023 at 10:16 AM, SupaJ said:

    Hi, actually, I didn't solve it. I had a client meeting and was showing them an option for the logo. This is just one image edited to be on top of the other and then saved as one image. We'd still like to do what I mentioned in the initial post. Thanks!

    Add to Design > Custom CSS

    body.homepage .gallery-fullscreen-slideshow-list:after {
        content: "";
        background-image: url(https://content.invisioncic.com/p289038/monthly_2023_03/q25logo-removebg-preview.png.e677dab68841dca73c318bc3bcf5df03.png);
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        z-index: 9999;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 250px !important;
        height: 250px !important;
    }

    image.thumb.png.a2314ec6b8daed1e1c3d80f833905ba0.png

  10. On 4/11/2023 at 6:10 AM, shelbyodom said:

    One more follow-up question, this code worked great, but the images are getting cut on the hover. Is there a way to fix this with code or should i upload specific images for this? They are getting cut to fit into the circle shape, but I would like to show the whole image and not the cut circles.

    Screen Shot 2023-04-10 at 7.08.57 PM.png

    Screen Shot 2023-04-10 at 7.09.04 PM.png

    Try adding this code under

    .user-items-list-item-container[data-section-id="64206f28e6cce449d506a051"] li:hover img {
        object-fit: contain !important;
        height: auto !important;
        min-height: unset !important;
        width: 90% !important;
    }

     

×
×
  • 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.