Jump to content

LukasEriksen

Member
  • Posts

    28
  • Joined

  • Last visited

Posts posted by LukasEriksen

  1. 53 minutes ago, PartTwoDesign said:

    Cool site @LukasEriksen 

    The page loading animation of your logo is a nice touch - presumably this is coded? Is your logo carousel also coded? Nice features.

    All the best with your launch! 🙂

    Thank you @PartTwoDesign!

    Yep, I used the code for the loading animation from this post here. Then I whipped up the animation of the logo in After Effects and exported as a gif. 

    The logo carousel was just a tutorial from Will Myers. He explains it all super well in his blog post here

    Thanks for checking out the site! 😀

  2. 33 minutes ago, tuanphan said:

    Hi,

    #1. How did you add text above gallery? 

    #2. Also, try checking on mobile, when clicking burger, I see nothing appear.

    #3. Learn more page: https://www.perthtimelapse.com/learn-more

    Text overflow the box.

    Add this to Design > Custom CSS to fix it

    /* Learn more tablet list items */
    @media screen and (max-width:1024px) and (min-width:768px) {
    body#collection-611e4b3a741c6e57aac1c5b7 .user-items-list-simple .list-item[data-is-card-enabled="true"] {
        min-height: 90% !Important;
    }
    }

    perthtimelapse.com-04-min.png

    @tuanphan Thanks again for taking another look! And thank you for fixing that text overflow issue, was battling with it for some time. For some reason, the mobile menu on my site does not show when you click it on desktop, but on an actual mobile phone it works fine. I am guessing it has something to do with one of the over 1500 lines of Custom CSS I added 😄. If you are referring to the text above the logo carousel, I just repositioned the gallery section up using CSS. That's probably also why it was sliding under the text on extremely small viewports.

    One quick question to you, I have a bit of javascript I would like to implement, but I would like for it to only trigger on desktop. I tried doing something like:

    <script>
    if (window.screen.width > 780) {
      document.write( 
        '<script src="https://www.squarerefresh.xyz/assets/plugins/drag/js/drag.min.js"></script>'
      )
    }
    </script>

    But this doesn't seem to work. Would you know to do this?

    Thank you for being a legend, Tuan!

  3. 7 hours ago, provenform said:

    @LukasEriksen This works when inserted into Settings->Advanced->Code Injection:

    You can test by scrolling with your up/down arrow keys and see how it's smooth vs choppy without it.

    
    <script src="https://code.nath.co/src/jQuery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.10/SmoothScroll.min.js"></script>
    
    <script>SmoothScroll({
          // Scrolling Core
        animationTime    : 2000, // [ms]
        stepSize         : 100, // [px]
    
        // Acceleration
        accelerationDelta : 50,  // 50
        accelerationMax   : 3,   // 3
    
        // Keyboard Settings
        keyboardSupport   : true,  // option
        arrowScroll       : 50,    // [px]
    
        // Pulse (less tweakable)
        // ratio of "tail" to "acceleration"
        pulseAlgorithm   : true,
        pulseScale       : 4,
        pulseNormalize   : 1,
    
        // Other
        touchpadSupport   : false, // ignore touchpad by default
        fixedBackground   : true, 
        excluded          : ''    
    })</script>

     

    Thank you so much!

  4. On 4/12/2021 at 7:25 AM, tuanphan said:

    Hover homepage on Main Navigation or Not Linked >> CLick gear icon to opan Page Header > Advanced > Paste the code

    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/scrollify/1.0.21/jquery.scrollify.min.js" ></script>
    <script>
    $(document).ready(function() {
              $.scrollify({
                	section : ".page-section",
              });
    });
    </script>

     

    Thanks for the reply! I've tried doing this, but it seemingly does nothing. When i put the code in the code injection footer area it works however, just not only on my homepage.

    My site url is lukaseriksen.com

  5. Site URL: https://lukaseriksen.com

    I've implemented a custom cursor into my website (https://lukaseriksen.com) but when scrolling the cursor doesn't seem to move with the screen, it only updates it's position when you move the mouse position again. 

    Is there any way to fix this?

    Here is the code I used:

    <div class="cursor cursor-dot"></div>
    <style>
      @media (hover: none) {
        .cursor {display:none !important;
        }
      }
      * {
        cursor: none !important;
      }
      .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>

     

  6. On 12/28/2020 at 3:43 AM, creedon said:

    That page is using fullPage which uses Javascript. Javascript allows for a wider range of behaviour than CSS.

    @creedon do you know if you're able to implement fullpage in squarespace? I have tried to use to code you wrote earlier, but it seems to not be working properly. I am also on 7.1.

    Site: lukaseriksen.com

  7. @rwpI would like to get the same cursor for my website, but unfortunately the jsfiddle you posted is no longer available. I have found an alternate code on another squarespace website, but I can't seem to integrate into my website https://www.lukaseriksen.com/.

    The code I found is as follows:

    <style>
      @media (hover: none) {
        .cursor {display:none !important;
        }
      }
      * {
        cursor: none;
      }
      .cursor {
        --size: 10px;
        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 .6s, height .6s,
          background-color .6s;
        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>

    Would appreciate any help you could provide!

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