This code explains how easy it is to run maximage within a containing element.
| /* Basic CSS for FillElement */ | |
| #holder { | |
| height:300px; | |
| overflow: hidden; | |
| width:300px; | |
| } | |
| #maximage { | |
| position:relative !important; | |
| } |
| $(function(){ | |
| $('#maximage').maximage({ | |
| cycleOptions: { | |
| fx: 'scrollHorz', | |
| speed: 1000, | |
| timeout: 5000, | |
| prev: '#arrow_left', | |
| next: '#arrow_right', | |
| pause: 1 | |
| }, | |
| fillElement: '#holder', | |
| backgroundSize: 'contain' | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment