Jump to content

Wolfsilon

Circle Member
  • Posts

    410
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Wolfsilon

  1. Hi,

    Ghost Plugins is pretty legit, if you have the $20.00, I'd recommend purchasing the plugin. If you're familiar with Javascript, the animation is controlled based on the distance or presence of a section in the view-port. We can't really demo custom scripts on your website without developer access. If you really want to do this on your own. This code should be a good reference 😄

    <script>
    const colors = ["", "lightCyan", "darkSkyBlue", "aquamarine", "electricBlue"];
    
    const sections = [...document.querySelectorAll(".page-section")];
    
    window.addEventListener("scroll", function () {
      const scrollFromTop = window.pageYOffset;
    
      for (let i = 0; sections.length > i; i++) {
        if (scrollFromTop <= sections[i].offsetTop) {
          document.body.className = colors[i];
          break;
        }
      }
    });
    </script>

     

  2. Sup! Are we long lost siblings? DWolf here...

    If it's critical to have them be a specific aspect ratio, you could always just edit each photo and set them at the desired AR using the Squarespace image editor or on external editing software.

    You're absolutely correct that 'hard-coding' the images would impact the dimensions on different screen-sizes.

    If you're familiar with coding, you could try to apply a global max-width and min-height and use relative units like "vw" "vmin"...etc to make this a bit more fluid.

  3. The difficulty is that Squarespace will load everything immediately on render, this means it will also run the script you've shown above. If you're familiar with JS you can try to disable AJAX loading. In my opinion, the result of doing so is almost worse than if you left it on.  The simplest solution is to avoid relying on inputs or interactions to fire an event, especially if we have no control over it.

    Similarly, because we have no control over the Form script, it'd be safe to assume we also can't adjust that code at that level either. I'd suggest building the 'webapp' yourself, if you're comfortable, or seeing if there's a third-party widget that you can use.

     

  4. If you're using the Fluid Engine grid layout, the desktop view and the mobile view can be individually edited. As for the scaling text.

    My suggestion would be to use a code specifically for mobile to prevent the text from scaling. Could trying using something like :

    @media only screen and (max-width: 749px){
    h1 {
    font-size: 48px !important;
    	}
    }

     

  5. Hi!

    I imagine you're likely well-knowledgeable and familiar with Javascript, if not, it will be very difficult to provide you a simple solution without hiring a developer. Have you done any research on widgets or embed-able tools that you could use?

     

    Best,

    Dan

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