Hover image over Text (html/css for Cargo Collective)

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024

ความคิดเห็น • 83

  • @michaelmordecai7195
    @michaelmordecai7195 2 ปีที่แล้ว +11

    Finally found someone to help with Cargo. Fantastic!

    • @xiuweb
      @xiuweb  2 ปีที่แล้ว

      💕

  • @user-uk7mj6gg7w
    @user-uk7mj6gg7w ปีที่แล้ว

    I think your tutorial is cool and very helpful. Non coder here, this helps a lot. Thank you.

  • @flat9074
    @flat9074 ปีที่แล้ว +1

    You sir, are truly my life savior

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      💕

  • @yazzinna
    @yazzinna 6 หลายเดือนก่อน +4

    Would love a tutorial on this for Cargo 3 😭

  • @Yuwdy
    @Yuwdy 6 หลายเดือนก่อน +1

    Hey just want to say thank you for this!
    I've subscribed. You're dope

  • @yoma.emptylands
    @yoma.emptylands ปีที่แล้ว +1

    thanks you for this tutorial, I would really appreciate a mini tutorial on how to add the grid - thanks in advance

  • @sergiolego2001
    @sergiolego2001 2 ปีที่แล้ว +1

    Great video, love your worrrkkkkk

  • @olaolastudio
    @olaolastudio ปีที่แล้ว +2

    THANK YOU SOOOO MUCH!!!!

  • @estelles.4020
    @estelles.4020 ปีที่แล้ว +2

    @XIU WEB really amazing tutorial. I wonder if it can works for changing the background image of an only one circle with a fixed position at the right ? I don't know if I'm clear. TYVM for this tuto

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      It's possible, but the code will a bit different. you need to specify css of this image a lot, and preload it somehow. I guess I can make a video of similar effect, but not in the nearest time

  • @samuelsabastine
    @samuelsabastine ปีที่แล้ว +2

    Thank you

  • @dabzvapelord
    @dabzvapelord 10 หลายเดือนก่อน

    this is so helpful. hopefully i can make it work.

  • @nayraaly9731
    @nayraaly9731 7 หลายเดือนก่อน +1

    amazing guide but I have a question, How can I make the image stay after unhovering?

    • @xiuweb
      @xiuweb  7 หลายเดือนก่อน

      it's not possible with css only, you need some js, which is out if this video scope. but if you really want to know: you need to listen a mouseenter event on each element, which will trigger a function that adds a new class to the target element. this class will reset the style that was hiding the image.

    • @nayraaly9731
      @nayraaly9731 7 หลายเดือนก่อน

      @@xiuweb Is there a possibility to provide that in code? I have tried everything and can't get it to work, and cargo doesn't allow me to add js :/, it cancels it out everytime I try to add it. THANK YOU!!!

  • @JOEYXU3790
    @JOEYXU3790 7 หลายเดือนก่อน +1

    hi there, thank you for this tutorial. But it seems that cargo 2 Show an Image on Hover code is no longer working on cargo 3? can you please have a tutorial for cargo 3? thank you so much

  • @ChaeYeonPark-ns5ok
    @ChaeYeonPark-ns5ok ปีที่แล้ว +1

    Is there a way to center image in the page?

    • @xanthecopeland9257
      @xanthecopeland9257 6 หลายเดือนก่อน

      yes I am wondering the same. I want to set a fixed position of my hover images rather than in relation to the word link.

  • @george_mowlam
    @george_mowlam 5 หลายเดือนก่อน

    Hey thanks so much for the tutorial, Im just wondering if you'd be able to help me out with creating this effect but the images would be a full screen width background? And also the image will disappear when the cursor is off the word.

    • @xiuweb
      @xiuweb  5 หลายเดือนก่อน

      you can set position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;

  • @franciscaamorimalves8148
    @franciscaamorimalves8148 ปีที่แล้ว +1

    thank you so much for the video, that was very helpful, and exactly what I was looking for! In my case, I would like to make a variation for the mobile version-is it possible to make the images show while pressing the text? or make them just visible on responsive?

    • @xiuweb
      @xiuweb  ปีที่แล้ว +1

      Yes, you can achieve it using @media screen (I have another video about mobile adaptation here, you will find some info of how to use it there). You just need to make this images invisible (using display: none; or opacity: 0;), and then change these CSS on mobile using @media screen, like: @media screen and (max-width: 770px) { .element {display: block;}}

  • @madsvagnjacobsen2799
    @madsvagnjacobsen2799 หลายเดือนก่อน

    Hey, thx for the great tutorials! It works all wellfor me when im editing in cargo, but when i view it on the actual websites the images pop up with a delay and a transistion, which is really annoying. Any clue on making it appear instant?

    • @xiuweb
      @xiuweb  หลายเดือนก่อน

      You can try to compress the image to be lighter, so it can be loaded faster. Try any online image compressor and use jpg or jpeg instead of png. Try to keep it under 500kb per image. You also can try to find some preloading scripts for the images, yet it can be a bit tricky to explain or implement

  • @aliciaanliliu
    @aliciaanliliu ปีที่แล้ว +1

    Love this one! I was wondering if you could do a tutorial on revealing a text while hovering on an image? (the text caption would follow with mouse) I was trying to figure it out but it was hard and I used gallery template for images..

    • @xiuweb
      @xiuweb  ปีที่แล้ว +1

      Sometimes it's not possible to add new tags to gallery elements, so only one solution is to recreate the gallery manually. But it's possible to apply code to tables. So if they can be used instead of gallery, the principal will be the same as in this video. Anyway, thanks for an idea, I think I definitely should share this thing

    • @aliciaanliliu
      @aliciaanliliu ปีที่แล้ว +2

      @@xiuweb Really look forward to see your new contents!

  • @sarasmokrovich3550
    @sarasmokrovich3550 ปีที่แล้ว +1

    Hi thanks so much for your help! It works perfectly and is exactly what I was looking for. I do have one question - is it possible to keep the text on the same line but have it linked to different images? Right now when I try to copy and paste the effect it only allows for it to work with a line break.

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      Hi! Yes, add a new class to each link (let's say class="inline"). And then add these lines to your CSS panel: .inline { display: inline-block !important; } It should work. If not - text me again :)

    • @sarasmokrovich3550
      @sarasmokrovich3550 ปีที่แล้ว +1

      @@xiuweb works perfectly thank you!

    • @kristenchon1174
      @kristenchon1174 ปีที่แล้ว

      Hi this was really helpful and I'm so close to getting it working like this, but am having trouble knowing where to add the (class="inline") if my text is under a tag then a tag, do I just add another class to contain both of them? Thank you so much

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      @@kristenchon1174 I need to see the whole structure to say for sure, but you can try to add it to first, and to next and see which one works :)

  • @claireyuanzhuang3710
    @claireyuanzhuang3710 ปีที่แล้ว

    Hi XIU! Thank you very much for making this tutorial! SUPER HELPFUL!
    I was wondering how I can make the image appear in the middle of the screen so it will be a dynamic web page.

    • @xiuweb
      @xiuweb  ปีที่แล้ว +1

      try to use "position:fixed;" instead of absolute for an image. You also can control it's placement using "calc", like: "top: calc(50% - 200px);" (if your image height is 400px)

    • @claireyuanzhuang3710
      @claireyuanzhuang3710 ปีที่แล้ว

      @@xiuweb Good idea👍👍👍

    • @claireyuanzhuang3710
      @claireyuanzhuang3710 ปีที่แล้ว

      @@xiuweb very smart 👍👍👍

  • @cristinaguerrero4681
    @cristinaguerrero4681 2 ปีที่แล้ว

    Hi! Thanks for the video tutorial, it was super helpful!!!
    I have used "the image of a text" as a hover image of another text and appears next to a photo gallery. So, at the start and without coding, the image appears at the bottom of the page.
    The problem is that when adjusting to screen sizes, it hovers in wrong places where is not visible and scales which makes it not readable.
    Is there any way to avoid that it scales. Also, can I place it in relation to the center of the screen instead of the original position? I hope it makes sense!
    Thank you so much

  • @siathomas4807
    @siathomas4807 11 หลายเดือนก่อน

    Hi there, thank you so much for such a helpful tutorial! I am having an issue where my hover image is displayed over the text rather than under like in your video - do you know of any solutions? thanks again :))

  • @Eelis-rc6ho
    @Eelis-rc6ho ปีที่แล้ว

    Hey hey, super nice tutorial! thank you so much for uploading! do you also have experience with png (with transparent parts) and mix-blend-mode in cargo? I am stuck with this atm.

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      I have a video about "mix-blend-mode", but it covers only some particular tricks. But what's about png?

  • @jonathanbrioschi
    @jonathanbrioschi ปีที่แล้ว

    Hey, great tutorial! how would you add a text hover effect over thumbnail images?

  • @emanuelepesa578
    @emanuelepesa578 2 ปีที่แล้ว

    How could you apply that to the 3 columns layout you've designed in the last second of the video? If I do that and I apply it to a grid it doesn't work!

    • @xiuweb
      @xiuweb  2 ปีที่แล้ว

      Because you add classes to wrong elements obviously. Check the structure of your code, there should be the same logic. Or try creating the first column of elements first, add this hover effect, then select it all and press "grid" button to create other columns. Or you can create each row as a new grid (also creating the first element first, and then copy it multiple times).

  • @lenny5666
    @lenny5666 ปีที่แล้ว +1

    Hey ! I tried it and it work when im in editing mode but when i close it it seems not to work. Do you have an idea why it is not working ? Love your work !

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      Hi! Most likely there is some syntax mistakes. Check your code here: validator.w3.org/nu/#textarea
      Check html as well, you might forget to close some tags

  • @PaolaRodriguezMunoz
    @PaolaRodriguezMunoz ปีที่แล้ว

    Hi, thank you for the help!
    I used the codes to hover over a button and an image will appear but it also appears on the white space on the left and right of the button. Is there a way to only make it appear only on top the button and not on the whole column?

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      Hi! I need to see this html part to say for sure

  • @3seater
    @3seater ปีที่แล้ว

    Great tutorial! How do I do this so when I open it on mobile the image is responsive. Right now the image is huge and off the screen on mobile version.

    • @xiuweb
      @xiuweb  ปีที่แล้ว +1

      I have another videos about resizing images and mobile adaptations. It's hard to explain in 2 words, but you may find these videos helpful.

    • @3seater
      @3seater ปีที่แล้ว

      @@xiuweb Okay thank you!

  • @mateotevamartinand1638
    @mateotevamartinand1638 ปีที่แล้ว

    Hi, I'm interested in having a tutorial on how to do this but on a grid as you said.
    It is the same grid as in the exemple, my grid is all set but I'm struggling in editing the code, everything looks different.
    Thank you.

    • @xiuweb
      @xiuweb  ปีที่แล้ว +1

      I can recommend to create an empty grid and found the place where you need to paste smth to fill in a certain column. Grids usually have very simple structure: one tag for a wrapper and one tag for each column. So all you need is to paste the code from this tutorial into a column (inside of this column tag).

  • @aidaalvarez5209
    @aidaalvarez5209 ปีที่แล้ว

    Hi! I was able to do this but my images are animating in instead of the instant pop up effect that you have in the video. Any help?

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      That sounds weird. I can have a look if you want. Text me in Instagram (@xiu_web)

    • @aidaalvarez5209
      @aidaalvarez5209 ปีที่แล้ว

      @@xiuweb just sent. thank you so so much

  • @xaviermadden4076
    @xaviermadden4076 ปีที่แล้ว

    Hey, thanks for your tutorials! I have follow a few now for my website :) I was just wondering if it is possible to scale the images from their centre point? At the moment the images always see to scale from their top left corner . Thank you!!

    • @xaviermadden4076
      @xaviermadden4076 ปีที่แล้ว

      I started using the image structure from this as it gave more control over the image th-cam.com/video/74zbOxwzwDU/w-d-xo.html (your other tutorial)

    • @xiuweb
      @xiuweb  ปีที่แล้ว +1

      There are different ways of how to achieve what you want, but all of them a bit complex and depends on a particular situation. In short: there is no easy way how to do that just with some lines of code. Maybe it's even better to change your page layout settings, or to recreate this page as a stack of pages (using cargo sets). In this case you will be able to set layout for each part regardless of other parts of this page.

    • @xaviermadden4076
      @xaviermadden4076 ปีที่แล้ว +1

      @@xiuweb Thank you for the reply!

  • @comfyyyboyyy
    @comfyyyboyyy ปีที่แล้ว

    Hi Xiu thank you for the tutorial, but it's possible make the hover responsible ?

    • @xiuweb
      @xiuweb  ปีที่แล้ว +1

      Hi! You mean change its position on mobile devices or something?

    • @comfyyyboyyy
      @comfyyyboyyy ปีที่แล้ว

      ​@@xiuwebYes because in the mobile version the position of the image doesn't change and go out from the view.
      Example
      drive.google.com/drive/folders/1rBdT5cJZ5WlgBAXkY2LFaKUTvmSsL1CN?usp=share_link

  • @HedvigAgren
    @HedvigAgren ปีที่แล้ว

    Hiii thank you so much, how do ypu make this in a grid? super helpful tutorial

    • @HedvigAgren
      @HedvigAgren ปีที่แล้ว

      I got it!! 😍 but wondering how I get the images to go over ALL the text in a grid and not only over the one that is hovering? thank youuuu❤‍🔥

  • @emmakentzinger6897
    @emmakentzinger6897 ปีที่แล้ว

    hey thanks for the video ! I just have a question. When I try to link my text, the hover image effect doesn't work anymore :( really annoying bc I'd like to make an index... do you know how to fix it ? thanks a lot

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      It happens because Cargo adds tag and it can ruin the structure. When I add a link to each element, the hover works. Here is how it's supposed to be (so you need tag to be placed the same way):
      MBZ 2021
      {image 1 scale="28"}

  • @nicolegarcia4963
    @nicolegarcia4963 2 ปีที่แล้ว

    hi. Is it possible to have continuous text and do this? meaning within a paragraph the hover would work for different words?

    • @xiuweb
      @xiuweb  2 ปีที่แล้ว +1

      Yes, it is possible, but with some corrections. First of all you need to use tag to select your word. the image you should put inside this tag as well (like aside of the word). The principal remains the same.

    • @nicolegarcia4963
      @nicolegarcia4963 2 ปีที่แล้ว +1

      @@xiuweb it worked! thank you so much

    • @kaitselu529
      @kaitselu529 8 หลายเดือนก่อน

      Thanks for the tutorial! I have the same issue, but I just couldn't quite figure it out. Is it possible for you to write a short demonstrating code, @xiuweb?

  • @remigatteaux7393
    @remigatteaux7393 ปีที่แล้ว

    Hey nice tutorial but i've tried maybe 15 time to make the same things that you and the image never appear... I search since 5 hours where is the problem but i've no response, could you help me please ?
    I can moove the image of place in CSS, can make disappear the image but never reappear and i've tried in 2 white page different to be sure that's note the white page the problem

    • @xiuweb
      @xiuweb  ปีที่แล้ว

      It's hard to tell what the problem is. Probably some synthesis error. Show me the code and I'll try to help (inst: xiu_web)

  • @emmatremoulet4715
    @emmatremoulet4715 2 ปีที่แล้ว

    Hi, thank you for the video it helped me a lot, I have one question, this text is like a list, how do you make the titles form a "line" ? I don't know if that is clear :) thank you

    • @xiuweb
      @xiuweb  2 ปีที่แล้ว +1

      Hi! There are several ways how to do that. The most close to this video is adding "display: inline-block;" to your im_wrapper css :)

    • @emmatremoulet4715
      @emmatremoulet4715 2 ปีที่แล้ว +1

      @@xiuweb thank you very much for your answer ! I am going to try it :)

    • @emmatremoulet4715
      @emmatremoulet4715 2 ปีที่แล้ว

      @@xiuweb Last question, how do you make the images to stay at the exact same place ?

    • @xiuweb
      @xiuweb  2 ปีที่แล้ว

      @@emmatremoulet4715 try to remove "position: relative;" property from im_wrapper

  • @wildbageloo
    @wildbageloo 2 ปีที่แล้ว

    Hi thanks for the tutorial!!!! 🥰
    I have one question, how can I see the name of the image, "image 1""image 2""image 3",when I hover the image nothing come out😅Is there other way to see the name? Otherwise I can't change the image name in the code...

    • @wildbageloo
      @wildbageloo 2 ปีที่แล้ว +1

      I got it. haha😄

  • @nicolamitchell9590
    @nicolamitchell9590 ปีที่แล้ว

    hello do you know if it possible to make the image a link on hover?

    • @xiuweb
      @xiuweb  ปีที่แล้ว +1

      you can use Cargo tools for that. Just select an image and click "link" button on the right bottom corner. If you add a link at the end (after all other things like this animation are done), it shouldn't ruin the structure.