-
AuthorPosts
-
March 12, 2014 at 9:53 pm #236561
Dear friends,
is there a possibility to always display the entire image in the full screen slider, without cutting off parts of the image?
I want the images to display completely no matter what width and height of the image. Scaling the browser will in that case show gaps when using images of various height and width, but that is exactly what I want.THNX in advance
EricMarch 13, 2014 at 3:50 pm #236983Hey station1!
Can you post the link to your website so we can take a look? Which version of Enfold are you using? If not 2.6.1, please update it ( see – http://kriesi.at/documentation/enfold/updating-your-theme-files/ ). You can choose to display Transparent header on selected pages with the latest version
Best regards,
YigitMarch 13, 2014 at 5:20 pm #237048March 13, 2014 at 5:22 pm #237052By the way, I tried to update but on alle pages a gap appeared at the top of the page.
I’m using the page setting NO HEADER NO FOOTER.March 13, 2014 at 5:53 pm #237076March 14, 2014 at 2:51 pm #237641March 14, 2014 at 2:59 pm #237647Hey,
that would work for landscape images, but most of the images don’t fit, because they are different in size.
I’ve seen in another theme (but which one?) that the images always tried to fit the max width or the max height.
In that way images are always displayed complete. As said I don’t mind the gaps that will appear.Eric
March 14, 2014 at 4:58 pm #237735Hi Yigit,
I found an example of what I meen. It’s a plugin from Codecanyon.
Look at this: http://userproplugin.com/gridfx/
If you click on an image, and resize your browser in both ways up and down, the image will be visible no matter what.
I want this behavior in the fullscreen slider from enfold.Hope you can help me and my client
Greetings Eric
March 17, 2014 at 9:38 am #238554Hey!
No, this is currently not possible. You can try to use the lightbox and the “expand” image button to create such an effect.
Cheers!
PeterApril 4, 2020 at 2:34 pm #1200797Since i stumbled over this thread while searching for the same functionality, i will leave my solution here. Not sure, wether there might be an even easier solution, since it is 2020 already and the post is 6 years old. At least this works for me:
Request:
“is there a possibility to always display the entire image in the full screen slider, without cutting off parts of the image?”Solution:
add a custom css name to your fullscreen slider element, e.g. “custom_fs_slider” (under edit > advanced > developer settings > custom css class).Add this code to quick css:
.custom_fs_slider .avia-slideshow > ul > li { background-size: contain !important; /* resizes the background image to the size, where it fills the container in one direction, but without cropping the image on the other direction. aspect ratio is being maintained */ background-repeat: no-repeat !important; /* makes sure, that only one instance of the picture is visible */ /* general note: this makes most sense, when the background color of your picture is either transparent or has the same color of the background, so that you do not see borders of the background image */ }
Hope this helps someone. Cheers, Stefan
- This reply was modified 4 years, 8 months ago by thatsmyname.
April 6, 2020 at 3:27 am #1201074 -
AuthorPosts
- You must be logged in to reply to this topic.