Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #1314115

    Hi, some questions to the portfolio grid:
    1) Is it possible to place the images in porfolio grid like the masonery grid? Different images sizes but set together
    2) Is it possible to slide each images a little from bottom by scrolling down .. effect that it slides up
    Sample for 1 and 2: https://www.stauffacher-belaege.ch/inspiration

    3) Additionaly question to this topic: https://kriesi.at/support/topic/grid-with-html-code-on-overlay/
    This works great but the when the overlay comes over the image, this is overlay is not transparent, i would like to see a little of the image below .. but each setting i take, it has no effect

    • This topic was modified 3 years, 3 months ago by xeovision.
    #1314656

    Hey Sebastian,

    Thank you for the inquiry.

    1.) You can choose the thumbnail size in the Styling > Grid Settings > Portfolio Grid Image Size settings, but you cannot select multiple kinds of thumbnails or image sizes.

    2.) This is possible but you may need to modify the /config-templatebuilder/avia-shortcodes/portfolio/portfolio.js file around line 79.

    imgParent.css({height:'auto'}).each(function(i)
    					{
    						var currentLink = $(this);
    
    						setTimeout(function()
    						{
    							currentLink.animate({opacity:1},1500);
    						}, (100 * i));
    					});
    

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thanks!

    Best regards,
    Ismael

    #1314681

    so why don’t you use then instead masonry ! The Masonry offers to show even Portfolios.
    if you do not like the 3d animation – get rid of it by:

    .avia_desktop.avia_transform3d .av-masonry-entry {
        perspective: none !important;
    }
    #1314952

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

    #1315046

    @guenni007 : I tried the masonery first but i need the category selection on the to for this reference section. And this is just added in the portfolio grid, not in the masonery.

    But most important ist Point 3, the transparence … any idea on that?
    This is my vurrent code:

    
    
    /*** Portfolio overlay with title ***/
    #top .grid-entry .grid-content {  
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        xxxopacity: 0;
        -webkit-transition: opacity 0.5s;
        transition: opacity 0.5s;  
    background: rgba(0,0,0,0.6) !important;  }
    
    #top .main_color .image-overlay, #top .alternate_color .image-overlay, #top .socket_color .image-overlay {background: rgba(0,0,0,0.6) !important;}
    
    #top .grid-entry:hover .grid-content {   opacity: 1; }
    #top .grid-entry .inner-entry a:hover .grid-content { opacity: 1; }
    #top .grid-entry .inner-entry a:hover {   opacity: 0 !important; }
    #top .grid-entry a {  z-index: 1;}
    #top .grid-entry .grid-content { z-index: 0; }
    
    #1315787

    First : what should this do – is an outcommentation for you ?
    xxxopacity: 0;

    Next: the whole overlay story is that the
    overlay-color comes from image-overlay class
    and
    overlay-image comes from image-overlay-inside class

    #1315790

    This have been some test for searching the fix … it seems that the transparecy is working on the image, not on the overlay therefore the image is not visible and the overlay becomes grey (from white background) and does not show the image below.

    from the logic perspective, this should work and set only the overlay as transparent bit it shows only a white background.:

    .image-overlay { background: rgba(0,0,0,0.6) !important; }

    #1315801

    Then grid-content is a sibling ( not a descendent ) to the anchor
    so maybe you had to use the sibling selector for it (a:hover.grid-image + .grid-content)

    #1315804

    see f.e. here: https://webers-testseite.de/xeovision4/

    .grid-entry  .inner-entry {
      overflow: hidden !important
    }
    
    .grid-content {
      display:flex;
      flex-flow: column nowrap;
      justify-content: space-around;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, 50%);
      width: 100%;
      height: 100%;
      padding: 10px;
      background: rgba(255,255,255,0.9) !important;
      z-index: 0;
      opacity: 0;
      transition: 1s all ease;
      pointer-events: none;
    }
    
    .grid-content * {
      background: transparent !important
    }
    
    .image-overlay {
      display: none !important;
    }
    
    .grid-content .avia-arrow {
      display: none;
    }
    
    a:hover.grid-image +  .grid-content {
      opacity: 1;
      transform: translate(-50%, -50%);
      transition: 1s all ease;
    }

    PS : the excerpt should not be too long. If so – you must accept that there will be a cutoff on that. You then had to choose for grid-content
    justify-content: flex-start;

    btw: the pointer-events: none is important – otherwise you will loose link functionality on anchor.

    • This reply was modified 3 years, 3 months ago by Guenni007.
    #1315810

    just for info:
    the general sibling selector is the tilde : ~ ( that means all siblings those before and after the selected element )
    but if we want the adjacent sibling it is the plus sign : +

    you can even influence the transiton for it not synchronized by:

    transition: 0.3s opacity ease, 1s transform ease;
    separated by commas

    #1315814

    PPS : i had to find a solution for much content in small entries … if shifting the content on hover to top
    Edit: done – just set the beginning opacity to zero for grid-content.

    #1315820

    Jesus, thats fantastic…. many thanks.
    But what does the star means (.grid-content *)? is it a shortcur for ground layer?

    #1315826

    all following adjacents
    the heading and the excerpt got background colors – avoiding to have two rules for that – i decided to give to all children that attribute.

    Next way to automatism.
    the excerpt – if it is a long excerpt like on my example on third or fourth entry it will be as mentioned above better to set the justify-content to : flex-start.

    On css the parent selektor does not exist and a selector for “element does not have sibling with a child with class”
    so if you like to make this perfect : we have to have a class that decides if there is an excerpt or not.
    I put this to child-theme funtions.php:

    function add_class_if_excerpt(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$(document).ready(function(){ 
    		$('.grid-entry').each( function() {
    			if($(this).find('.grid-entry-excerpt').length !== 0){
    				$(this).find('.grid-content').addClass('has-excerpt');
    			};
    		});
    	});	
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_class_if_excerpt');

    so if there is an excerpt – the grid-content container got the class: has-excerpt now.

    then we can style it as above ( with justify-content: space-around ) – and have that extra rule:

    .grid-content.has-excerpt {
      justify-content: flex-start;
    }

    => Stand alone Titles will be centered and those with excerpt are placed on top.

    btw: now you can have different settings f.e.:

    .grid-content.has-excerpt {
        transform: translate(-50%, 40%);
        opacity: 1;
    }
    
    .grid-content:not(.has-excerpt) {
        transform: translate(-50%, 50%);
        opacity: 0;
    }

    with excerpt the title is visible and on hover the whole thing is shown

    #1315917

    Hi,

    Thanks again for helping out @guenni007, it’s much appreciated :-)

    Best regards,
    Rikard

    #1316085

    Many thanks @guenni007 .. i like this slowing up, nice gimmick.
    I would like to have this also on the static overlays on images, can you help me with this? I have tried but do not get this animation, i think i usaing always thw wrong Styles…

    /** hover on img ***/
    #top .av-overlay-hover-deactivate:hover .av-caption-image-overlay-bg {
        opacity: 0.6 !important;  background-color: #000000;   }
    #top .av-overlay-hover-deactivate .av-caption-image-overlay-bg {
      opacity: 0 !important; }
    .av-image-caption-overlay-center {opacity:0!important;}
    .av-image-caption-overlay-center:hover  {opacity:1!important; font-size: 20px !important;  }
    
    .btn-blue {background: #0097D7; font-size:50px; height:80px; width:80px; 
    font-weight: 800 !important; margin: 20px auto !important; line-height: 75px; }
    #1316135

    but – sorry then i would like to see your site!
    Always rebuilding the situation on my own sites costs a lot of time.
    __________
    one thing to mention before this to the developers. I do not understand why some of the settings in enfold css are set to !important.
    Each individual change stops working on this.

    F.e.:
    The rule in image.css :

    .av-overlay-hover-deactivate .avia-image-overlay-wrap:hover .av-caption-image-overlay-bg{opacity: 0 !important;}
    

    it will work too without that setting to important. But it is hard to overwrite if we like to change it.

    #1316136

    Well, i use it often because mostly the changes does not take effect on the page if i add them to the quick css.
    I have add the login to PM.

    #1316153

    PM is not for me- i’m participant as you. So when i should help you – you had to be more precise what settings of image alb you set. And the most easiest way is to show me a page where this should work.

    #1316221

    I understand, so let me show the issue:
    This is how the backend is set: https://ibb.co/Jp0kRHJ
    This is the frontend: https://ibb.co/qd94H6y
    It is just an balc overlay that appears when you move the mouse over. The css is the same as above. I can send you the login by email, if this is more helpful

    #1316226

    no login is needed – send me the page it concerns. Screenshots do not help me.

    Maybe I’ll explain what I’m talking about:
    If I have a live page, I can test and examine all css settings in advance using the developer tools that come with such a browser – without ever having to change anything in your source code. The setting as you have created the ALB is then in the DOM as your settings are. Even jQuery scripts can be run in the console. So a screenshot is not really a substitute for the live page.
    It would also be enough for me if you find a page in the demos that is set analogously to yours. For example: if you tell me that you are interested in the images like here: https://kriesi.at/themes/enfold-2017/elements/image/.

    #1316228

    OK, i will deactivate the maintenance for some hours … https://sopratec.ch/cms21/
    I would like to adopt the slide effect on the boxes in the start page

    #1316267

    ok – thanks:
    see here: https://webers-testseite.de/hover-images/

    the trouble with it is – as mentioned above – that in image.css there is a rule set to !important.
    We must avoid that – here is the possibility to have a child-theme image.css. But i hope that developer will prove that standard enfold behavior will work without !important setting – and remove it on next update.

    Basic: Put in the custom css field of your image : hoverstyle2

    First:
    Snippet to have child-theme alb element replacement:
    (for child-theme functions.php ):

    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);

    Second:
    download from pastebin these two files ( the child-theme image alb files ):
    https://pastebin.com/ndewwkx7 or download
    https://pastebin.com/WJTbAxJJ or download

    Third:
    Upload these two files to a child-theme folder named: “shortcodes”

    Fourth
    To preserve the alb setting for overlay color and opacity we store this overlay opacity in a variable and transfer that to a container of our choice:

    
    function style_a_hover_state(){
    ?>
    <script type="text/javascript">
    (function($) {
      $(document).ready(function(){ 
            $('.avia-image-container.hoverstyle2').each( function() {
            var initialOpacity = $(this).find('.av-caption-image-overlay-bg').css('opacity');
    			$(this).find('.avia_image').hover(function() {
    			  $(this).find('.av-caption-image-overlay-bg').css('opacity', initialOpacity );
    			}); 
            });  
      }); 
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'style_a_hover_state');

    Last:
    put this to your child-theme quick css:

    .hoverstyle2 .image-overlay {
      display: none !important;
    }
    
    .hoverstyle2 .avia-image-overlay-wrap .av-image-caption-overlay {
      pointer-events: none;
    }
    
    .hoverstyle2 .avia-image-overlay-wrap .av-image-caption-overlay {
      opacity: 0;
      transform: translateY(100%);
      transition: 0.5s transform cubic-bezier(.77,0,.18,1);
    }
    
    .avia-image-container:not(.av-hover-grow).hoverstyle2 .avia-image-overlay-wrap .av-image-caption-overlay {
      opacity: 1;
      transition: 0.5s all cubic-bezier(.77,0,.18,1);
    }
    
    .hoverstyle2 .avia-image-overlay-wrap a:hover.avia_image .av-image-caption-overlay {
      opacity: 1;
      transform: translateY(0);
      transition: 0.5s transform cubic-bezier(.77,0,.18,1) 0.3s , 0.5s opacity ease 0.5s;
      overflow: visible;
    }
    
    .hoverstyle2 .av-caption-image-overlay-bg {
      width: calc(100% - 50px);
      height: calc(100% - 50px);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    
    .av-hover-grow.hoverstyle2 .av-caption-image-overlay-bg {
      width: calc(90% - 50px);
      height: calc(90% - 50px);
    }
    
    .av-hover-grow:not(.av-hide-overflow).hoverstyle2 .av-caption-image-overlay-bg {
        width: calc(110% - 50px);
        height: calc(110% - 50px);
    }
    
    .av-image-caption-overlay-center p {
        padding: 5px;
    }
    
    .av-hover-grow.hoverstyle2 .avia-image-overlay-wrap:hover a.avia_image::before, 
    .av-hover-grow.hoverstyle2 .avia-image-overlay-wrap:hover a.avia_image::after {
      transform: scale(0.9);
    }
    
    .av-hover-grow:not(.av-hide-overflow).hoverstyle2 .avia-image-overlay-wrap:hover a.avia_image::before, 
    .av-hover-grow:not(.av-hide-overflow).hoverstyle2 .avia-image-overlay-wrap:hover a.avia_image::after {
      transform: scale(1.1);
    }

    PPS: these little frames growing on hover are hoverstyle1:

    .hoverstyle1 .image-overlay {
      display: none !important;
    }
    
    .hoverstyle1 a.avia_image:before, 
    .hoverstyle1 a.avia_image:after {
      content: '';
      position: absolute;
      top: 10px;
      right: 10px;
      bottom: 10px;
      left: 10px;
      -webkit-transition: all 0.5s ease;
      -ms-transition: all 0.5s ease;
      transition: all 0.5s ease;
      pointer-events: none;
      background: transparent;
      width: auto;
      height: auto;
      z-index: 10;
    }
    
    .hoverstyle1 a.avia_image:before {
      border-top: 2px solid #fff;
      border-bottom: 2px solid #fff;
      -webkit-transform: scaleX(0);
      -ms-transform: scaleX(0);
      transform: scaleX(0);
    }
    
    .hoverstyle1 a.avia_image:after {
      border-left: 2px solid #fff;
      border-right: 2px solid #fff;
      -webkit-transform: scaleY(0);
      -ms-transform: scaleY(0);
      transform: scaleY(0);
    }
    
    .hoverstyle1 .avia-image-overlay-wrap:hover a.avia_image:before, 
    .hoverstyle1 .avia-image-overlay-wrap:hover a.avia_image:after {
      -webkit-transform: scale(1);
      -ms-transform: scale(1);
      transform: scale(1);
    }

    Result page: https://webers-testseite.de/hover-images/
    so – if you like both hoverstyles on the image – put in the custom css field: hoverstyle1 hoverstyle2

    #1316268

    PS : i assumed that all images have a link associated with them. If this is not the case, one would have to tinker with it again.

    PPS: I removed title attribute on hover – and bring back title on click or mouseleave. So there are no Tooltips – i do not like them ;)

    #1316410

    Well, thats definitly perfect.
    I think, some users would use this function for their pages as well .. many many thanks for this work.

    #1316654

    and everything is clear on that description? Or are there questions?

    #1316663

    To be honest, the most. Some was e.g. to place selectors in () was new for me .. i have to go depper in that topic

Viewing 26 posts - 1 through 26 (of 26 total)
  • The topic ‘Portfolio grid: Questions’ is closed to new replies.