-
AuthorPosts
-
August 3, 2021 at 11:19 am #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/inspiration3) 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.
August 5, 2021 at 12:56 pm #1314656Hey 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,
IsmaelAugust 5, 2021 at 3:10 pm #1314681so 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; }
August 7, 2021 at 5:50 am #1314952August 7, 2021 at 5:23 pm #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; }
August 9, 2021 at 8:41 am #1315787First : 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 classAugust 9, 2021 at 9:19 am #1315790This 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; }
August 9, 2021 at 10:09 am #1315801Then 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
)August 9, 2021 at 10:18 am #1315804see 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.
August 9, 2021 at 10:37 am #1315810just 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 commasAugust 9, 2021 at 10:44 am #1315814PPS : 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.August 9, 2021 at 11:15 am #1315820Jesus, thats fantastic…. many thanks.
But what does the star means (.grid-content *)? is it a shortcur for ground layer?August 9, 2021 at 11:54 am #1315826all 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
August 10, 2021 at 4:18 am #1315917August 10, 2021 at 3:25 pm #1316085Many 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; }
August 10, 2021 at 7:50 pm #1316135but – 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.
August 10, 2021 at 8:17 pm #1316136Well, 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.August 11, 2021 at 12:18 am #1316153PM 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.
August 11, 2021 at 9:01 am #1316221I 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 helpfulAugust 11, 2021 at 9:40 am #1316226no 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/.August 11, 2021 at 9:50 am #1316228OK, 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 pageAugust 11, 2021 at 1:38 pm #1316267ok – 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 downloadThird:
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 hoverstyle2August 11, 2021 at 1:47 pm #1316268PS : 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 ;)
August 12, 2021 at 10:53 am #1316410Well, thats definitly perfect.
I think, some users would use this function for their pages as well .. many many thanks for this work.August 13, 2021 at 4:46 pm #1316654and everything is clear on that description? Or are there questions?
August 13, 2021 at 5:41 pm #1316663To be honest, the most. Some was e.g. to place selectors in () was new for me .. i have to go depper in that topic
-
AuthorPosts
- The topic ‘Portfolio grid: Questions’ is closed to new replies.