Slider Revolution and aspect ratio

Home Forums Easy FancyBox Pro Slider Revolution and aspect ratio

This topic contains 0 replies, has 2 voices, and was last updated by  Pharéo 1 year, 9 months ago.

  • Author
    Posts
  • #8080

    Massimo Dal Bo
    Participant

    hello, i’m working to the same but with iframe . The code i use ( fron revolution) is

    /* change revapi1 to whatever api number is being used for your slider */
    var api = revapi1;

    /* no need to edit below unless you want to change the default FancyBox settings */
    api.on(‘revolution.slide.onloaded’, function() {

    jQuery(this).find(‘.fancybox’).each(function() {

    var $this = jQuery(this);
    if(!$this.is(‘a’)) $this = $this.removeClass(‘fancybox’).find(‘a’);

    $this.addClass(‘fancybox fancybox.iframe’).attr(‘rel’, ‘gallery’).fancybox({

    /* begin FancyBox options */
    width: ‘auto’,
    height: ‘auto’,
    autoSize: true,
    aspectRatio: true,
    fitToView: true,
    autoCenter: true,
    scrolling: ‘no’,
    type: ‘iframe’,
    onClosed: function() {api.revresume()}

    }).on(‘click’, function() {api.revpause()});

    });

    });

    In my case only Easy FancyBox settings are acepted instead of this. The fancy box is not responsive.I need responsive.
    please visit: http://test2.wp-max.com/lightbox3/
    and click the “camera” bottom left
    otion are 100% width and height
    thank you

  • #8082

    Pharéo
    Participant

    Hi Massimo, the parameters you are using (like aspectRatio) are mostly for FancyBox 2. This plugin integrates FancyBox 1.3 which takes these parameters http://fancybox.net/api

    FancyBox 2 integration is planned but not there yet.

  • #8083

    Massimo Dal Bo
    Participant

    Thanks, do you Know an other plugin for wordpress that integrates fancybox2?
    there is no way to have responsive layout in fancybox 1.3?
    Thanks

  • #8086

    Pharéo
    Participant

    do you Know an other plugin for wordpress that integrates fancybox2?

    Not one of the free ones as Fancybox 2 license is incompatible with GPL so it is not allowed on WordPress.org.

    With responsive you mean that it keeps aspect ratio when resized? No that is not possible with this version. You’ll have to rely on the video player to do that as the Youtube player does. But that then leaves the black bars on the sides.

    You’ll have to wait for Fancybox2 integration into the Pro extension for a better match between the two… I cannot say when it will arrive, sorry.

The topic ‘Slider Revolution and aspect ratio’ is closed to new replies.

Site by Pharéo | Hosted on The Permanently Moving Network