Change Image on Hover in Squarespace

Поділитися
Вставка

КОМЕНТАРІ • 56

  • @RebeccaGraceDesigns
    @RebeccaGraceDesigns  Рік тому

    Get my FREE guide outlining the 41 most popular CSS properties and their value options. 👉 www.rebeccagracedesigns.com/popular-css-properties

  • @PressureGrafix
    @PressureGrafix Місяць тому +1

    Amazing tutorial but squarespace doesn't have that option for me to duplicate an image block. Does this only work on certain templates?

  • @RichardEyers
    @RichardEyers 12 днів тому

    Absolutely brilliant! If only every UA-cam tutorial was as easy to follow.

  • @NadiaEngenheiro
    @NadiaEngenheiro Місяць тому

    I don't have the design option on my side tab, do you know how to do this if that isn't an option?

  • @Harrissarena
    @Harrissarena 3 місяці тому +1

    Sheesh Rebecca just made me a coder! I’m so happy

  • @greatdominions
    @greatdominions Рік тому +1

    Looks like it's not working on mobile (I know you can't hover on mobile, but you mentioned if you click it, it will change. It's not for me.)

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  Рік тому

      Is it working on desktop? Did you click and hold? As an alternative, you could also hide the top image on mobile so that the bottom image displays right away without any clicking.

    • @caelanstokkermans533
      @caelanstokkermans533 10 місяців тому

      @@RebeccaGraceDesigns Could you go a bit more in depth as to how that would work? Trying to figure out how to make it so the mobile site will transition with touch.

  • @chadpoorman
    @chadpoorman Місяць тому

    @RebeccaGraceDesigns thanks so much for this tut. it works perfectly on desktop and mobile for me. have you figured out a way, or do you have a tutorial for doing this same exercise on project tiles inside of a portfolio collection? thanks again!

  • @RedPoppyArtHouse
    @RedPoppyArtHouse 3 місяці тому

    This is great, Rebecca, thanks! Do you happen to know or for-hire to learn how to replace image on a Gallery Grid? Thx!

  • @thefireandtheflowcoaching
    @thefireandtheflowcoaching Рік тому +1

    OMG I am NOT code savvy at all and this worked! You're amazing THANK YOU!!!!!

  • @BeaterBlade
    @BeaterBlade 3 місяці тому

    Rebecca, this is great, however, on the Mobile experience, the hover is just white until you touch the space...then the picture reveals. Customers might not understand to touch the blank space. Is there a workaround so the image alway reveals on Mobile? Thanks

    • @Heisvic
      @Heisvic Місяць тому

      Squarespace sucks when it comes to two completely different designs on different devices (Desktop) - (Mobile). To get around this, I would download (SQUARE-KICKER) and embed it onto the website Via/CSS. What you can do with this extension(Square-Kicker), Have two different page sections on your website, but the difference is that you can choose a certain section to show specifically only for (Laptop) or (Desktop) which ever u choose. You can find that setting under "Visibility" after installing the extension, and get around a lot of problems you might've had before installing that extension. Hopefully this helps and shit.

  • @lindsayobrien8110
    @lindsayobrien8110 5 місяців тому

    Thank you for this excellent video! However, I can only get the code to work as intended when I have my website in EDIT mode. I used your directions exactly as you described. If you have any idea on why I can't do this on the live version, I would love to have your insight.

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  3 місяці тому

      Usually when this happens there is an error in your code somewhere. Try removing all of your code and then add it back in, in small bits to see what part of the code is causing the issue.

  • @thinklindi
    @thinklindi 5 місяців тому

    Amazing fix for desktop! But sadly doesn't work on mobile. I hid the overlay image using CSS and it still creates a big gap of empty space below the first image.

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  3 місяці тому

      Its possible the space underneath is the image that is being hidden for the hover. Mobile's don't have hover. So my suggestion is to either just display the one image (drag the hidden image overtop on mobile so you don't have the space) or turn the code off on mobile and have both images show.

  • @staceybriggs6797
    @staceybriggs6797 10 місяців тому

    Can I still do this with an "Impact" template? I don't seem to have the "fit", "fill" or "duplicate" options for my images...? Thank you!

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  10 місяців тому

      Are you working in Squarespace 7.1? If so, then all the templates have the same options. They just start with different designs. If you are in Squarespace 7.0, then you won't be able to overlap your images like I do in this video.

  • @datokraveishvili7612
    @datokraveishvili7612 6 місяців тому

    hey! thanks for the tutorial, i have an ongoing ecommerce website project where client wants this effect on every product, what should i do then? is there any way to apply this eefect on every product photo?

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  3 місяці тому

      Not automatically. You would have to manually code each one.

  • @AlastairColeUplift
    @AlastairColeUplift 4 місяці тому

    Love this Rebecca! Thanks for making this video - super helpful. In particular great copy-and-paste with the CSS via yr website

  • @MaryMihelic
    @MaryMihelic 5 місяців тому

    This works in desktop mode but th ecode doesn't work in the moblie mode? How do you fix that?

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  3 місяці тому

      Phones don't have a hover option. You have to click and hold. You can either have just the one image or have the code turn off on mobile and then move the images so that you can see both.

  • @gustavosmusic
    @gustavosmusic 10 місяців тому

    Hi Rebecca, thank you for the video, it works great. My "reveal" image is a GIF that doesn't loop, so my idea is that every time you hover over it, the animated GIF plays out and ends frozen on the last frame. I got the Gif wrking, but it doesn't restart every time I hover over. I have to refresh the whole page. Not a major deal breaker, but do you have any idea if this can be implemented somehow? Refreshing the Gif every time we hover off the image so the animation replays once we go over again. Thanks a lot!

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  10 місяців тому

      The GIF will play based on when it loads. As far as I know, there isn't a way to start the gif on hover with this method. You would have to code the static image and gif in a code block instead of using two image blocks.

  • @WaldronDesigns
    @WaldronDesigns 9 місяців тому

    You don't have a tutorial on how to do this for us 7.0 users, do you? Looks like this is for 7.1

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  9 місяців тому

      This will only work on 7.1 because it uses Fluid Engine to overlap the images. For 7.0, you would probably have to custom code the image blocks as well.

  • @OrganicAlchemist
    @OrganicAlchemist 5 місяців тому

    Thank you so much for this very easy and thorough tutorial! Very helpful!☺

  • @thesustainabilityenthusiast
    @thesustainabilityenthusiast 10 місяців тому

    Hi! Desktop worked but then on mobile for me it shows both images. However I can't "hide" the image, just see an option to delete the hover image on mobile - but once I delete the hover image on mobile, it no longer shows on desktop. Do you know what the issue / fix might be here?

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  10 місяців тому

      If you overlap the images, you should only see one on mobile. You can always use code to hide one of the images on mobile. For example,
      @media only screen and (max-width: 640px) {
      #BLOCKID {
      display:none;
      }
      }

    • @cmdluke
      @cmdluke 10 місяців тому

      @@RebeccaGraceDesigns thanks for this. works on desktop. I can hide the rollover on mobile, but it breaks the link. Any fix? much appreciated.

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  9 місяців тому

      Make sure the link is placed in the image that is on top.

  • @proph7099
    @proph7099 Рік тому

    Would this apply to text as well? If i wanted to have a text block shift the image show for the background, could i do that with this CSS?

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  Рік тому

      Because we are using a block id, you should be able to apply this to text and other blocks.

  • @karenvinalay9116
    @karenvinalay9116 Рік тому

    Hello Rebecca! Lovely update. May I know how to add a link to the photo? I want to link it to another page on the website. The setting doesn't work :(

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  Рік тому

      This code should not effect your click through link. Make sure your link is on the top image that shows on hover.

  • @cadiastouch6525
    @cadiastouch6525 Рік тому

    This really helps, can I ask if the transition could be change from fade in and fade out to others

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  11 місяців тому

      This code specifically uses Opacity which gives the fade in and out animation. You would have to add other transitions to create other animations.

  • @TRIUMVIRATEMEDIA
    @TRIUMVIRATEMEDIA Рік тому

    Hello Rebecca, I need some help. how do you do this multiple times on a page I have tried redoing the code under the first and I've tried adding multiple block ids on one code; neither worked. thank you so much.

    • @thefireandtheflowcoaching
      @thefireandtheflowcoaching Рік тому

      I have the same question.

    • @JonH-
      @JonH- Рік тому

      hey - @@thefireandtheflowcoaching I was having this issue, but it's working by including the "/* Description text */ header before the code for each instance. Hope that helps!

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  Рік тому +3

      You can just duplicate the code for each time you want to repeat it. Or you can use a comma between each block id. For example,
      /* Change Image on Hover */
      #BLOCKID, #BLOCKID2 {
      opacity: 0;
      -webkit-transition: opacity 0.5s ease-in-out;
      -moz-transition: opacity 0.5s ease-in-out;
      transition: opacity 0.5s ease-in-out;
      }
      #BLOCKID:hover, #BLOCKID2:hover {
      opacity: 1;
      }

    • @TRIUMVIRATEMEDIA
      @TRIUMVIRATEMEDIA Рік тому

      @@RebeccaGraceDesigns thank you so much

  • @AmySeagraves
    @AmySeagraves 7 місяців тому

    Thank you sooo much, this is fab! Is there a way I can use it on 3 images on the same page? Thank you in advance! Amy

    • @RebeccaGraceDesigns
      @RebeccaGraceDesigns  3 місяці тому

      Yes, you can add a comma in between each block id.

    • @kennyhunte4833
      @kennyhunte4833 Місяць тому

      Hi Rebecca!! Great tutorial!! I have found that when I follow you directions of adding a comma after each block ID, it disables the hover effect for the previous image. Am I doing something wrong?

  • @tovermoran4360
    @tovermoran4360 Рік тому

    Thank you!

  • @claireperkins6038
    @claireperkins6038 Рік тому

    Thank you!

  • @colytv4116
    @colytv4116 10 місяців тому

    THANK YOU!!!