1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Hover button to reveal another element

Discussion in 'Free Divi Community Forum' started by Yoitsmeagain, Aug 18, 2021.

  1. Yoitsmeagain

    Yoitsmeagain New Member

    Hello everyone !
    I have a 3-column row, each column contains, in this order :
    - a button
    - a hidden image just below it
    I would like to reveal/hide each image (with transitions, so it looks smooth) when the button within the same column is hovered on/out.
    I've been searching and I found ways to do it with css and classes or IDs... but I think somehow my selectors are all wrong and I can't get it to work
    Hope someone will be able to help, thanks in advance !
     
    1. PRO MEMBER PERKS Divi Block Pro - Easy-to-use drag & drop interface to mix & match 456+ premade Divi blocks & export as json file:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

  3. Yoitsmeagain

    Yoitsmeagain New Member

    Thank you for your reply ! Unfortunately, this is not what I am looking for... the crazy thing about this, it's a simple Javascript thing we used to do back in 2001 to give a bit of interactivity to web pages :
    - hover some element to the left of the page
    - another element magically pops up, or changes color, or whatever, to the right of the page, in an entirely different section or div.
    ...no sliding sections, nothing fancy, just a "simple" display:none / display:visible on some element (with smooth transitions would be nice).

    And I can't get it to work, whether I try to use css, js, or jquery.

    This is driving me crazy :-D :-D :-D

    Here's a screenshot of my setup : 3 columns, in each of which the images below the buttons are all hidden, until someone hovers the relevant button to display just the one image directly below this button. Then on "mouse out" the image disappears again. Or changes color, or jumps up... anything really, if I can select it properly then I can probably get it to do whatever I want (I hope ;-)

    Any ideas welcome... I found several tutorials, but my guess is I'm getting those Divi css selectors all wrong.
    Thanks anyway for your time, hope someone will be able to help.

    Cheers !

    button-image-hover.png
     
    1. PRO MEMBER PERKS Divi Powerful Child Theme - Power up your Divi sites with tons of new functionalities & premade elements:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    For that case, kindly share your URL & the code you're using.

    I believe it will be something like the below:
    Code:
    Log In or Sign Up to view this code.
     
  5. Yoitsmeagain

    Yoitsmeagain New Member

    ...aaaaaand it does work ! :-D :-D :-D

    I just had to add a "display:none" to my images so that they wouldn't show on the page at the beginning.

    Thank you so much, wish you the best of days ^_^
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade team carousel design for your Divi site without using any plugins:View Demo