Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to use the Anything Slider Reply To: How to use the Anything Slider

#175397
reefclaw
Participant

So, google could not find my issue,

I’m trying to use the anything slider, and so far it’s great, except for one detail:

Scaling images.
What i’m trying to do is letting the images expand as far as possible while retaining their aspect ratio.

So i set the max size for the images, when i use the following:
expand: false,
resizeContents: false,
aspectRatio: true,
i get images that are too large to scale down. But bigger images will not scale up. (as expected).

So, when i then turn true expand, and/or resizeContents, ALL images will just fill the screen.
My video however will scale proportionally.

I also already tried scaling with some custom code, but when i use it before i init anythingslider, it gets overwritten by it. Ans when i fire it after initialization, anything slider get fucked up.

So, how can i do this?
Not all images will have the same size or aspact ratio. Nor will the videos.