Jump to content

visionsbyfurks

Member
  • Posts

    70
  • Joined

  • Last visited

Posts posted by visionsbyfurks

  1. Hello,

    My website: http://www.furkhaniqbal.com

    I have applied an a hover effect to my images (see below):

    img:hover {transform: scale(1.1); transition: .4s;}
    img{transform: scale(1); transition: .4s;}

    I wanted this hover to appear only on images with hyperlinks, however at the moment it is applying the effect to every image I add onto the website.

    How do I change this so it only applies to hyperlinked images?

    Thanks

  2. Site URL: http://www.furkhaniqbal.com

    Hello,

    I have a piece of code that I've put in the footer injection.

    I wanted to customise it so the back to top symbol is an outline in grey rather than it being filled. At the moment I've only managed to do this on a hover state rather than normal. I wanted to have this look for normal and when the user hovers, the outline and symbol turns white.

     1494587289_Screenshot2022-04-13at09_29_55.png.a4c1cf12301228118672859ba0262324.png

     

    <style>
    	#myBtn {
           width: 40px;
           height: 40px;
           display: none;
           position: fixed;
           bottom: 20px;
           right: 20px;
           z-index: 1;
            border-style: solid;
      		border-width: 1.5px;
           font-size: 13px !important;
           color: #7d7d7d;
           cursor: pointer;
           padding: 10px 10px 10px 10px;
           border-radius: 50%;
           // Change the hex code in the next line to change background color
           background-color: #000000;
        }
    
        #myBtn:hover {
           background-color: #000000;
        }
    </style>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/js/all.min.js" crossorigin="anonymous"></script>
    <button onclick="topFunction()" id="myBtn" title="Go to top">
        <i class="fas fa-chevron-up"></i>
    </button>
    <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 }, 1000);
       }
    </script>

     

     

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