• Resolved hebhansen

    (@hebhansen)


    Hey

    I am not sure where to put this, so I will give this a go…

    I have a card grid on my site. I was theming this grid layout and came across this code that I want for my cards.

    I have added some red borders, to try to see myself out of it, but I am a bit stuck right now. I asked Chat GPT, but that made things worth…

    Current layout where I am now. Idea is to make image full background as in the ooriginal example. Title always on the card together with logo. Then display buttons and data on mouse over. Here is the css:

    /******** Store Card - Grid View *******/
    		
    /*#wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper .store-content*/
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0px;
      font-family: 'Roboto', sans-serif;
    	border: 1px solid red;
    }
    
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-content .store-info,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper .store-content {
      width: 100%;
      height: 36rem;
      border-radius: 25px;
      border: 1px red solid;
      overflow: hidden;
      cursor: pointer;
      position: relative;
      color: $color-primary-white;
      box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
    
    #store-info img {
        position: absolute;
        object-fit: cover;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0.9;
        transition: opacity .2s ease-out;
    	border: 3px solid pink;
    }
    
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-data h2 {
        position: absolute;
        inset: auto auto 30px 30px;
        margin: 0;
        transition: inset .3s .3s ease-out;
        font-family: 'Roboto Condensed', sans-serif;
        font-weight: normal;
        text-transform: uppercase;
    	border: 3px solid pink;
      }
      
      p, a {
        position: absolute;
        opacity: 0;
        max-width: 80%;
        transition: opacity .3s ease-out;
      }
      
      p {
        inset: auto auto 80px 30px;
      }
      
      a {
        inset: auto auto 40px 30px;
        color: inherit;
        text-decoration: none;
      }
      
      &:hover h2 {
        inset: auto auto 220px 30px;
        transition: inset .3s ease-out;
      }
      
      &:hover p, &:hover a {
        opacity: 1;
        transition: opacity .5s .1s ease-in;
      }
      
      &:hover img {
        transition: opacity .3s ease-in;
        opacity: 1;
      }
    
    }
    
    .material-symbols-outlined {
      vertical-align: middle;
    }

    I made it to only the beginning which shows on the screen cap. And here is the html from my site I am trying to adapt to with respect for divs and classes:

    <div class="wcfmmp-stores-content">
    	
    	  	
    					<ul class="wcfmmp-store-wrap">
    				
    <li class="wcfmmp-single-store item woocommerce coloum-2">
    	<div class="store-wrapper">
    		<div class="store-content">
    		  									<div class="store-info" style="background-image: url( 'https://svalinnart.local/wp-content/uploads/2023/12/A-Sense-of-Scale.jpg');"></div>
    									</div>
    		<div class="store-footer" style="height: 372.8125px;">
    		
    			<div class="store-avatar lft">
    				<img decoding="async" src="https://svalinnart.local/wp-content/uploads/2023/12/HBH-Works-Logo-W-on-B-S.png" alt="Logo">
    			</div>
    			
    			<div class="store-data-container rgt">
    				<div class="store-data">
    					<h2>
    					  					  	<a href="https://svalinnart.local/gallery/hbhworx?v=dd65ef9a5579">HBH Works</a>
    					  					  				  </h2>
    					
    					<div class="bd_rating">
    									<div style="" class="wcfmmp-store-rating" title="No reviews yet!">
    				<span style="width: 0%">
    					<strong class="rating">0</strong> out of 5				</span>
    							</div>
    								<div class="spacer"></div>
    						<div class="spacer"></div>
    					</div>
    					
    											<p class="store-address">Amaliegade 20b, 3. th., 8000 Aarhus, Denmark</p>
    										
    											<p class="store-phone">
    							<i class="wcfmfa fa-envelope" aria-hidden="true"></i> [email protected]						</p>
    					
    											<p class="store-phone">
    							<i class="wcfmfa fa-phone" aria-hidden="true"></i> +45 93 30 03 04						</p>
    																											<p class="store-phone">
    			<i class="wcfmfa fa-globe" aria-hidden="true"></i>
    			&nbsp;<a href="http://hbhworx.com">hbhworx.com</a>
    		</p>
    					<p class="store-enquiry"><a class="wcfm_catalog_enquiry " data-store="4" data-product="0" href="#"><span class="wcfmfa fa-question-circle fa-question-circle"></span>&nbsp;<span class="add_enquiry_label">Inquiry</span></a></p>
    								
    					<div class="wcfm-clearfix"></div>
    				</div>
    			</div>
    			<div class="spacer"></div>
    			
    						  <a href="https://svalinnart.local/gallery/hbhworx?v=dd65ef9a5579" class="wcfmmp-visit-store">Visit <span>gallery</span></a>
    						
    					</div>
    	</div>
    </li>
    <li class="wcfmmp-single-store item woocommerce coloum-2">
    	<div class="store-wrapper">
    		<div class="store-content">
    		  									<div class="store-info" style="background-image: url( 'https://svalinnart.local/wp-content/uploads/2023/12/2023-12-02-Your-Stains-Are-Everywhere-2048px-101-1.jpg');"></div>
    									</div>
    		<div class="store-footer" style="height: 372.8125px;">
    		
    			<div class="store-avatar lft">
    				<img decoding="async" src="https://svalinnart.local/wp-content/uploads/2023/12/Logo-Square-Svalinn-Art-WonB_S-1.png" alt="Logo">
    			</div>
    			
    			<div class="store-data-container rgt">
    				<div class="store-data">
    					<h2>
    					  					  	<a href="https://svalinnart.local/gallery/svalinn-art?v=dd65ef9a5579">Svalinn Art</a>
    					  					  				  </h2>
    					
    					<div class="bd_rating">
    									<div style="" class="wcfmmp-store-rating" title="No reviews yet!">
    				<span style="width: 0%">
    					<strong class="rating">0</strong> out of 5				</span>
    							</div>
    								<div class="spacer"></div>
    						<div class="spacer"></div>
    					</div>
    					
    										
    					
    											<p class="store-phone">
    							<i class="wcfmfa fa-phone" aria-hidden="true"></i> +45 93 30 03 04						</p>
    																											<p class="store-phone">
    			<i class="wcfmfa fa-globe" aria-hidden="true"></i>
    			&nbsp;<a href="http://hbhworx.com">hbhworx.com</a>
    		</p>
    					<p class="store-enquiry"><a class="wcfm_catalog_enquiry " data-store="3" data-product="0" href="#"><span class="wcfmfa fa-question-circle fa-question-circle"></span>&nbsp;<span class="add_enquiry_label">Inquiry</span></a></p>
    								
    					<div class="wcfm-clearfix"></div>
    				</div>
    			</div>
    			<div class="spacer"></div>
    			
    						  <a href="https://svalinnart.local/gallery/svalinn-art?v=dd65ef9a5579" class="wcfmmp-visit-store">Visit <span>gallery</span></a>
    						
    					</div>
    	</div>
    </li>				<div class="wcfm-clearfix"></div>
    			</ul> <!-- .wcfmmp-store-wrap -->
    
    			
    			</div>

    So if anyone has a word of advice, I would be very thankful. Plugin does not support or answer, so I am hacking my way through.

    Thx

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 29 total)
  • Moderator bcworkz

    (@bcworkz)

    The more complex HTML structure is confusing your results. The main container that’s relative positioned should have its immediate child elements absolute positioned and located with inset. You can further position other inner elements as desired.

    I see the codepen example has an intervening element which seems to contradict what I said, but it has no positioning properties and it inherits static position so it has no impact. To ensure the relation between absolute and relative positioning remains clear, I recommend avoiding intervening elements for this.

    It’d be a lot easier for someone to help you if you could link to a live page that uses your exact HTML. Preferably your actual site, but replicating your HTML in codepen would be an alternative. A static image does little to help anyone help you.

    Thread Starter hebhansen

    (@hebhansen)

    Thx bcw

    Let me give it some more work and I will get back here. Thing is, it’s a local install, so a link has it’s challenges, such as when I turn off my computer 🙂

    In my first post I included more html, than required, simply to provide a bigger picture of the structure. Through css, I am reaching the correct handles, but some things confuse me a lot.

    The classes content and store I think I need to connect to the H1 and P stuff. But in’s original form it’s more of a container.

    Not sure how to explain it better at this time. But I will crack on and get back when I can ask more specifically…

    Thread Starter hebhansen

    (@hebhansen)

    I have now migrated the site to live….

    Here is what CSS does now and here is the code doing it.

    /******** Store Card - Grid View *******/
    
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper .store-content,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0px;
      font-family: inherit;
      border-radius: 25px;
    }
    
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-content .store-info,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper .store-content {
      width: 100%;
      height: 36rem;
      border-radius: 25px;
      border: 1px red solid;
      overflow: hidden;
      cursor: pointer;
      position: relative;
      color: $color-primary-white;
      box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
    }
    
    #store-info img {
        position: absolute;
        object-fit: cover;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0.9;
        transition: opacity .2s ease-out;
    	border: 3px solid pink;
    }
    
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-data h2 {
        position: absolute;
        inset: auto auto 30px 30px;
        margin: 0;
        transition: inset .3s .3s ease-out;
        font-family: 'Roboto Condensed', sans-serif;
        font-weight: normal;
        text-transform: uppercase;
    	border: 3px solid pink;
      }
    /*
      p, a {
        position: absolute;
        opacity: 0;
        max-width: 80%;
        transition: opacity .3s ease-out;
      }
      
      p {
        inset: auto auto 80px 30px;
      }
      
      a {
        inset: auto auto 40px 30px;
        color: inherit;
        text-decoration: none;
      }
      
      &:hover h2 {
        inset: auto auto 220px 30px;
        transition: inset .3s ease-out;
      }
      
      &:hover p, &:hover a {
        opacity: 1;
        transition: opacity .5s .1s ease-in;
      }
      
      &:hover img {
        transition: opacity .3s ease-in;
        opacity: 1;
      }
    
    }
    
    .material-symbols-outlined {
      vertical-align: middle;
    }
    */
    /******** Store Card - Grid View *******/
    
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper .store-content,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0px;
      font-family: inherit;
      border-radius: 25px;
    }
    
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-content .store-info,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-wrapper .store-content {
      width: 100%;
      height: 36rem;
      border-radius: 25px;
      border: 1px red solid;
      overflow: hidden;
      cursor: pointer;
      position: relative;
      color: $color-primary-white;
      box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
    }
    
    #store-info img {
        position: absolute;
        object-fit: cover;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0.9;
        transition: opacity .2s ease-out;
    	border: 3px solid pink;
    }
    
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-data h2 {
        position: absolute;
        inset: auto auto 30px 30px;
        margin: 0;
        transition: inset .3s .3s ease-out;
        font-family: 'Roboto Condensed', sans-serif;
        font-weight: normal;
        text-transform: uppercase;
    	border: 3px solid pink;
      }
    /*
      p, a {
        position: absolute;
        opacity: 0;
        max-width: 80%;
        transition: opacity .3s ease-out;
      }
      
      p {
        inset: auto auto 80px 30px;
      }
      
      a {
        inset: auto auto 40px 30px;
        color: inherit;
        text-decoration: none;
      }
      
      &:hover h2 {
        inset: auto auto 220px 30px;
        transition: inset .3s ease-out;
      }
      
      &:hover p, &:hover a {
        opacity: 1;
        transition: opacity .5s .1s ease-in;
      }
      
      &:hover img {
        transition: opacity .3s ease-in;
        opacity: 1;
      }
    
    }
    
    .material-symbols-outlined {
      vertical-align: middle;
    }
    */

    Container (white) seems out of bounds. Probably cause content is outside ?!

    Image seems to behave quite well. Now I need content to jump on top of image. H2 does not do that. Why? And after that P and a etc.

    Again this is what I try to accomplish. Heading (Pink border always on together with logo) and content slides in nicely on mouse over.

    I would like entire container to link to “visit store” and then remove this button. Inquiry I guess slides in with content…. (not sure)

    Thx. I really appreciate any help…

    Moderator bcworkz

    (@bcworkz)

    You can wrap the entire card (div.store-wrapper) in an anchor link. Then it’ll work regardless of what happens within the card. But if you have buttons within that lead elsewhere, be sure to set appropriate z-index levels so the buttons are above other content.

    I see you want this effect in the store cards just above the page’s footer. Do you want the H2 element to behave like in the codepen example? i.e. always visible, positioned over the image, but slides up with content on hover?

    That’s the extent of my understanding of your goals. What should be initially hidden, then slides in on hover? Everything else in div.store-data? Note that the content in the codepen example does not slide in, it only fades in, keeping its initial position. Only the H2 slides up.

    What about the store avatar? Always visible and stays as currently positioned?

    You ask “Why are the elements not behaving as expected?” Probably because your HTML is much more complicated than in the codepen example. It still should be possible to get what you want, but the example is less useful because its HTML is different. Still, its concept is obviously valid. It’ll take more interpretation to get it working for you though.

    The codepen example has a number of hover animations. You should focus on one thing at a time or else it all becomes rather mind boggling.

    To start with, the elements I think you want to animate are in the wrong relative container. Their absolute positioning will be relative to div.store-footer while you really want them relative to div.store-content. Thus the animated elements should ideally be direct children of div.store-content.

    Thread Starter hebhansen

    (@hebhansen)

    Thx bcworkz

    Wrap the entire card. Is that not what I do? Can you show a code example on what you mean?

    Buttons – Z index, right. I wish the card/container to link to the store, and that would erase the visit store button.

    I want the card to behave as the example I linked to yes. Store Name permanently visible (H2) and also logo not sure where, I guess I will need to get the hooks right and then mess with it, so logo z-index 100 is fine as it is on top of all. Border around the logo may go away. Not sure yet. Maybe a box-shadow for seperation from the background image, that for one can be bright, and for another light….

    Initially hidden will be store data and review. They slide in on mouse over. Also inquiry button slides in with data. I want a clean card initially (Store name and logo).

    Agree html is very much different than the source example. And that’s where I get a bit lost. I hang on to should be possible though.

    I am focusing on one thing at a time. That’s why part of css is set to “don’t read”.

    Animations are not yet done, so yes the are incorrect. I need help to figure this out thx.

    Thread Starter hebhansen

    (@hebhansen)

    I do not understand why the data has collapsed to overlap. Can I throw in width 100% somewhere?

    Why is data not on-top of image?

    • This reply was modified 2 years, 5 months ago by hebhansen.
    Moderator bcworkz

    (@bcworkz)

    A link wrapping the entire store card, as in:

    <li class="wcfmmp-single-store item woocommerce coloum-2">
      <a href="https://example.com/anywhere-you-like/">
        <div class="store-wrapper">
          <div class="store-content">
            ...
          </div>
        </div>
      </a>
    </li>

    To initially get the card’s footer positioned over the image, we need to relative position its container:

    .store-wrapper {
        position: relative;
    }

    Then we can absolute position the footer:

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer {
        position: absolute;
        inset: auto auto 0 2em;
    }

    Position exactly as you like with inset:. Currently bottom is set to 0 and the left spacing is 2em in the above CSS. The store avatar unfortunately moves with the footer, but you can move it back to where it belongs with top: and bottom: distances after you’ve decided upon the final footer positioning.

    You can move the H2 element independent of the rest by making its immediate container relative positioned:

    .store-data {
        position: relative;
    }

    Then modify or override its current inset: distances as desired. You can then animate its inset distances on hover just like in the CodePen example.

    Set the opacity of other elements like the review and email to 0. Remove any elements that you don’t want, or set their display: to none. To match the CodePen styling you would want the background to be transparent. If you do that, you should outline the lettering with narrow, non-blurred, contrasting drop shadows so the text is readable over a variety of images.

    You can then animate the opacity fade in on hover like in the CodePen example.

    To emphasize what I’ve already said, the key point in being able to absolute position elements over another is to make their immediate container relative positioned. Because your HTML doesn’t match the example you’re trying to follow, we need to get a little creative to ensure we comply with this key point.

    Thread Starter hebhansen

    (@hebhansen)

    I have passified the other css. Adding your 3 suggestions, now look like this. Code is as below and color white has no effect:

    .store-wrapper {
        position: relative;
    }
    
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer {
        position: absolute;
        inset: auto auto 0 2em;
    		background: none;
    		color: white;
    }
    
    .store-data {
        position: relative;
    }
    

    Border radius 25 does nothing, so i am lost again.

    How about flex direction, width, height. Animations….

    Thread Starter hebhansen

    (@hebhansen)

    I need to set height of image. Not sure how.

    This seems to have effect:

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-data h2 {
        position: absolute;
        inset: auto auto 30px 30px;
        margin: 0;
        transition: inset .3s .3s ease-out;*/
      /*  font-family: 'Roboto Condensed', sans-serif;*/
        font-weight: normal;
        text-transform: uppercase;
    	border: 3px solid pink;
      }
    Moderator bcworkz

    (@bcworkz)

    The overall card height is set to 320px in wcfmmp-style-stores-list.css. It controls the image height we see. If you want something different you can override it in Addtional CSS with something like:

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-content .store-info {
        height: 640px;
    }

    Because the image is set as a background it’s difficult to get the full picture to fill the card. The source image’s aspect needs to be exactly the same as the card element. Right now the aspects are pretty close. They may not be if you alter the height. Avoid overly large images since they have to be down scaled anyway. Ideally the image would be the same size as the card.

    You cannot set the H2 color to white because of this rule in wcfmmp-style-custom-1705226013.css:

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-data h2 a {
        color: #636363!important;
    }

    You cannot override styles that use the !important modifier. Remove it, only resort to !important when there is absolutely no other way to get the desired style applied. Either edit this same rule to be white or override it in Additional CSS using the same selector.

    Try this for border radius:

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-data h2 {
        border-radius: 25px;
    }

    The currently specified transition for H2 runs on page load. For it to run on hover it needs to be specified with :hover as part of the selector. For example:
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li:hover .store-data h2 {
    inset: auto auto 1px 1px;
    transition: inset 1s linear 0.2s;
    }
    Adjust inset distances and transition timing as desired.

    If you’re not already doing so, use your browser’s element inspector tool to help you see what CSS is applied and to decide what CSS you still need to apply.

    Thread Starter hebhansen

    (@hebhansen)

    Alright – Image filling container is solved

    H2 colour is also solved It has an absolute value, but it’s set from a store styling interface, and I keep it there.

    H2 border radius is not really an issue.

    Hide “Visit Store” button is solved.

    Making the card a link to store is solved adding a snippet to functions.php. But that makes only the top half a link and not the bottom (Footer). Why? and how to fix…. Z index or?

    Placing the Avatar bugs me. Inside the shortcode calling the store cards, I can set column attributes 2 or 3 or 4 or 5 columns, hence, the avatar jumps around since it’s absolute reference is the bottom half (The footer) of the card. That means it goes outside of it’s container. I will place it top right, diagonal to data.

    I have perfected it for 2 columns responsive all screens (inset %) like so:

    /****** Avatar - Placement of store logo ******/
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li.coloum-5 .store-footer .store-avatar,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li.coloum-4 .store-footer .store-avatar,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li.coloum-3 .store-footer .store-avatar,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer .store-avatar {
    	box-shadow: rgba(250, 230, 220, 0.12) 0px 2px 4px 0px, rgba(250, 230, 220, 0.32) 0px 2px 16px 0px;
        position: absolute;
        inset: auto 5% 150% auto;
        margin: 0;
    	padding: 0;
        transition: inset .3s .3s ease-out;
    	border: 0px white solid;
    	background: none;
      }

    Only to screw up when switching to 3, 4 or 5 columns. What I would really want, is top right corner to be the reference and inset with 5% to top and 5% to right. But it refers to the footer.

    If I set footer to 100% height text and content jumps to top of image…. or what’s the solution?

    Any suggestions to placing Avatar correct?

    Moderator bcworkz

    (@bcworkz)

    only the top half a link and not the bottom

    Because the card’s footer “covers” the bottom part of the card, preventing access to the link in that area. If the footer had a background color instead of being transparent you would have seen this right away 🙂 (I’m not suggesting it should not actually be transparent)

    Solution: the link needs to encompass the entire card, footer and all; or add an identical link to the footer. This could interfere with button clicks. To solve that, the button’s z-index needs to be higher than other footer elements.

    To deal with the different column counts you could have a separate inset rule for each different column count. Remove it from the selector group that’s for all different column counts. Then for each count do something like:

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li.coloum-3 .store-footer .store-avatar {
       inset: auto 5% 150% auto;
    }

    Adjust the percentage distance as desired for each column. (odd that “column” is misspelled, but as long as it’s all done consistently it’s fine)

    It might be possible to have one inset rule to rule them all by using calc() distance but if there are not too many different column counts separate rules are likely better. Even with separate inset rules, you might find the need to use calc() anyway once you get around to handling responsiveness. You may also need media queries or some other mechanism for handling varying viewport widths.

    Thread Starter hebhansen

    (@hebhansen)

    2 column

    3 column

    4 column

    5 column

    They are set seperate, thx. first one includes attributes above. The last 3 only have this code:

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li.coloum-3 .store-footer .store-avatar {
    	box-shadow: rgba(250, 230, 220, 0.12) 0px 2px 4px 0px, rgba(250, 230, 220, 0.32) 0px 2px 16px 0px;
        position: absolute;
        inset: auto 5% 190% auto;
       }

    Do I need to repeat box-shadow and position for column 3-5?

    For column 4 and 5 footer data vanish???

    For h2 in footer transition does nothing (the one that’s supposed to slide up on mouse over)

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer h2 {
        position: absolute;
        inset: auto auto 30px 30px;
        margin: 0;
        transition: inset .3s .3s ease-out;
      }

    Now looking at footer. Source code use p and a identifiers. Through inspector I go this way and footer disappears as supposed, but also H2 title dissapears initially…. why?

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer p,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer a {
        position: absolute;
        opacity: 0;
        max-width: 80%;
        transition: opacity .3s ease-out;
      }

    Continuing through to the end is what’s active in the cards now. Part a step in the right direction. Part a mess. Everything keeps moving around.

    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer p {
        inset: auto auto 80px 30px;
      }
      
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer a {
        inset: auto auto 40px 30px;
        color: inherit;
        text-decoration: none;
      }
      
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer:hover h2 {
        inset: auto auto 220px 30px;
        transition: inset .3s ease-out;
      }
      
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer:hover p,
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-footer:hover a {
        opacity: 1;
        transition: opacity .5s .1s ease-in;
      }
      
    #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li .store-content .store-info:hover {
        transition: opacity .3s ease-in;
        opacity: 1;
      }
    
    }

    I will add Z-index to H2, cause I think it hides at the back….

    Thread Starter hebhansen

    (@hebhansen)

    I don’t get why H2 dissapears initially before mouse over???

    I don’t get why it breaks in 2 lines

    I don’t get why all data stacks at bottom on mouse over

    Finally: I need full card to link to store, and I need full card to activate mouse over data thing….

    Thread Starter hebhansen

    (@hebhansen)

    Source code:

      &:hover h2 {
        inset: auto auto 220px 30px;
        transition: inset .3s ease-out;
      }

    What does & do? Do I need it or remove it?

Viewing 15 replies - 1 through 15 (of 29 total)

The topic ‘Match custom css with html ul/li structure’ is closed to new replies.